##// END OF EJS Templates
repo.status: also compare flags for files in the lookup list....
repo.status: also compare flags for files in the lookup list. We might be able to do something smarter about this in dirstate.status for files in normallookup state, but that would require some extra care to keep backwards compatibility.

File last commit:

r5688:883d887c default
r6158:23ffe826 default
Show More
test-add
48 lines | 520 B | text/plain | TextLexer
Benoit Boissinot
make hg add of a removed file unremove the file...
r5207 #!/bin/sh
hg init a
cd a
echo a > a
hg add -n
hg st
hg add
hg st
echo b > b
hg add -n b
hg st
Patrick Mezard
commands: add exits(1) if a specified file cannot be added (issue 891)
r5688 hg add b || echo "failed to add b"
Benoit Boissinot
make hg add of a removed file unremove the file...
r5207 hg st
echo % should fail
hg add b
hg st
hg ci -m 0
echo % should fail
hg add a
echo aa > a
hg ci -m 1
hg up 0
echo aaa > a
hg ci -m 2
hg merge
hg st
echo % should fail
hg add a
hg st
hg ci -m merge
echo % issue683
hg rm a
hg st
echo a > a
hg add a
hg st
Patrick Mezard
commands: add exits(1) if a specified file cannot be added (issue 891)
r5688
hg add c && echo "unexpected addition of missing file"
echo c > c
hg add d c && echo "unexpected addition of missing file"
hg st