Reporting "nearly-exact" adds (Was: Windows test suite state)

Paul Moore p.f.moore at gmail.com
Fri Jun 6 08:04:16 UTC 2008


2008/6/6 Paul Moore <p.f.moore at gmail.com>:
> 2008/6/6 Adrian Buehlmann <adrian at cadifra.com>:
>> Sigh. It seems we have some more serious issues with hg add
>> than just test output differences:
> [...]
>> last output looks like there is some serious confusion
>> in the dirstate (same file both "unkown" and "added").
>
> Ack. I think you're right.

On second thought, no you aren't. I've just run some tests of my own,
and this does not happen. This may be because I've modified fspath to
preserve separators, but I don't think so...

Here's my test script:

>type add_tests.cmd
@echo off

setlocal
echo Testing version:
hg version

hg init test-repo
cd test-repo
mkdir x
echo a>x\a.txt
echo See ? x\a.txt
hg sta
echo See nothing
hg add x\a.txt
echo See A x\a.txt
hg sta

cd ..
rd /s /q test-repo
endlocal

08:48 C:\Data\Devel\hg-devel\new-crew
>add_tests.cmd
Testing version:
Mercurial Distributed SCM (version df50f66edcf4)

Copyright (C) 2005-2008 Matt Mackall <mpm at selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See ? x\a.txt
? x\a.txt
See nothing
See A x\a.txt
A x\a.txt

Paul.


More information about the Mercurial-devel mailing list