##// END OF EJS Templates
tests: unify test-rebuildstate
Nicolas Dumazet -
r12121:8f258dd4 default
parent child Browse files
Show More
@@ -1,19 +1,29 b''
1 #!/bin/sh
1 basic test for hg debugrebuildstate
2 # basic test for hg debugrebuildstate
2
3 $ hg init repo
4 $ cd repo
3
5
4 hg init repo
6 $ touch foo bar
5 cd repo
7 $ hg ci -Am 'add foo bar'
8 adding bar
9 adding foo
6
10
7 touch foo bar
11 $ touch baz
8 hg ci -Am 'add foo bar'
12 $ hg add baz
13 $ hg rm bar
9
14
10 touch baz
15 $ hg debugrebuildstate
11 hg add baz
16
12 hg rm bar
17 state dump after
18
19 $ hg debugstate --nodates | sort
20 n 666 -1 bar
21 n 666 -1 foo
13
22
14 hg debugrebuildstate
23 status
15 echo '% state dump after'
16 hg debugstate --nodates | sort
17 echo '% status'
18 hg st -A
19
24
25 $ hg st -A
26 ! bar
27 ? baz
28 C foo
29
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