##// END OF EJS Templates
Add a forget command for easily untracking files....
Add a forget command for easily untracking files. This command does exactly what 'hg remove -Af [FILES]' does. The reason for creating a new command is that the options for 'hg remove' are confusing (-A removes only deleted files, -f forces deletion, and using both means *the exact opposite of both*). [mpm: simplified help text, code, and updated tests]

File last commit:

r8902:b9a8b616 default
r8902:b9a8b616 default
Show More
test-add.out
40 lines | 604 B | text/plain | TextLexer
Benoit Boissinot
make hg add of a removed file unremove the file...
r5207 adding a
? a
adding a
A a
Steve Losh
Add a forget command for easily untracking files....
r8902 adding a
A a
Benoit Boissinot
make hg add of a removed file unremove the file...
r5207 A a
? b
A a
A b
% should fail
b already tracked!
A a
A b
% should fail
a already tracked!
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
Dirkjan Ochtman
warn about new heads on commit (issue842)
r6336 created new head
Matt Mackall
merge: allow smarter tool configuration...
r6004 merging a
Benoit Boissinot
make hg add of a removed file unremove the file...
r5207 warning: conflicts during merge.
merging a failed!
0 files updated, 0 files merged, 0 files removed, 1 files unresolved
Augie Fackler
merge: better error messages to lead users to hg update --clean to abandon merges....
r7821 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
Benoit Boissinot
make hg add of a removed file unremove the file...
r5207 M a
Matt Mackall
merge: allow smarter tool configuration...
r6004 ? a.orig
Benoit Boissinot
make hg add of a removed file unremove the file...
r5207 % should fail
a already tracked!
M a
Matt Mackall
merge: allow smarter tool configuration...
r6004 ? a.orig
Benoit Boissinot
make hg add of a removed file unremove the file...
r5207 % issue683
Steve Losh
Add a forget command for easily untracking files....
r8902 ? a.orig
Benoit Boissinot
make hg add of a removed file unremove the file...
r5207 R a
Matt Mackall
merge: allow smarter tool configuration...
r6004 ? a.orig
Benoit Boissinot
make hg add of a removed file unremove the file...
r5207 M a
Matt Mackall
merge: allow smarter tool configuration...
r6004 ? a.orig
Matt Mackall
add: use match.bad callback more effectively
r8679 c: No such file or directory
d: No such file or directory
Patrick Mezard
commands: add exits(1) if a specified file cannot be added (issue 891)
r5688 M a
A c
Matt Mackall
merge: allow smarter tool configuration...
r6004 ? a.orig