comparison tests/test-add @ 8902:b9a8b616521d

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]
author Steve Losh <steve@stevelosh.com>
date Sun, 31 May 2009 03:09:00 -0400
parents 7c36a4fb05a3
children e6162b854ed5
comparison
equal deleted inserted replaced
8901:94319ae527cf 8902:b9a8b616521d
3 hg init a 3 hg init a
4 cd a 4 cd a
5 echo a > a 5 echo a > a
6 hg add -n 6 hg add -n
7 hg st 7 hg st
8 hg add
9 hg st
10 hg forget a
8 hg add 11 hg add
9 hg st 12 hg st
10 13
11 echo b > b 14 echo b > b
12 hg add -n b 15 hg add -n b
34 hg st 37 hg st
35 hg resolve -m a 38 hg resolve -m a
36 hg ci -m merge 39 hg ci -m merge
37 40
38 echo % issue683 41 echo % issue683
42 hg forget a
43 hg add a
44 hg st
39 hg rm a 45 hg rm a
40 hg st 46 hg st
41 echo a > a 47 echo a > a
42 hg add a 48 hg add a
43 hg st 49 hg st