##// END OF EJS Templates
tests: unify test-addremove
Martin Geisler -
r11850:54dbf16b default
parent child Browse files
Show More
@@ -1,27 +1,47 b''
1 #!/bin/sh
1 $ hg init rep
2
2 $ cd rep
3 hg init rep
3 $ mkdir dir
4 cd rep
4 $ touch foo dir/bar
5 mkdir dir
5 $ hg -v addremove
6 touch foo dir/bar
6 adding dir/bar
7 hg -v addremove
7 adding foo
8 hg -v commit -m "add 1" -d "1000000 0"
8 $ hg -v commit -m "add 1" -d "1000000 0"
9 cd dir/
9 dir/bar
10 touch ../foo_2 bar_2
10 foo
11 hg -v addremove
11 committed changeset 0:d44511117907
12 hg -v commit -m "add 2" -d "1000000 0"
12 $ cd dir/
13 $ touch ../foo_2 bar_2
14 $ hg -v addremove
15 adding dir/bar_2
16 adding foo_2
17 $ hg -v commit -m "add 2" -d "1000000 0"
18 dir/bar_2
19 foo_2
20 committed changeset 1:a85812e0561a
13
21
14 cd ..
22 $ cd ..
15 hg init sim
23 $ hg init sim
16 cd sim
24 $ cd sim
17 echo a > a
25 $ echo a > a
18 echo a >> a
26 $ echo a >> a
19 echo a >> a
27 $ echo a >> a
20 echo c > c
28 $ echo c > c
21 hg commit -Ama
29 $ hg commit -Ama
22 mv a b
30 adding a
23 rm c
31 adding c
24 echo d > d
32 $ mv a b
25 hg addremove -n -s 50 # issue 1696
33 $ rm c
26 hg addremove -s 50
34 $ echo d > d
27 hg commit -mb
35 $ hg addremove -n -s 50 # issue 1696
36 removing a
37 adding b
38 removing c
39 adding d
40 recording removal of a as rename to b (100% similar)
41 $ hg addremove -s 50
42 removing a
43 adding b
44 removing c
45 adding d
46 recording removal of a as rename to b (100% similar)
47 $ hg commit -mb
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now