##// END OF EJS Templates
phases: add a bit more test for local phase movement.
Pierre-Yves David -
r15694:1e4e49c5 default
parent child Browse files
Show More
@@ -1,10 +1,39 b''
1 $ alias hglog='hg log --template "{rev} {phase} {desc}\n"'
1 $ alias hglog='hg log --template "{rev} {phase} {desc}\n"'
2 $ mkcommit() {
3 > echo "$1" > "$1"
4 > hg add "$1"
5 > hg ci -m "$1"
6 > }
2
7
3 $ hg init initialrepo
8 $ hg init initialrepo
4 $ cd initialrepo
9 $ cd initialrepo
5 $ touch sam
10 $ mkcommit A
6 $ hg add sam
11
7 $ hg ci -m 'first'
12 New commit are draft by default
13
14 $ hglog
15 0 1 A
16
17 Following commit are draft too
18
19 $ mkcommit B
8
20
9 $ hglog
21 $ hglog
10 0 1 first
22 1 1 B
23 0 1 A
24
25 Draft commit are properly created over public one:
26
27 $ hg pull -q . # XXX use the dedicated phase command once available
28 $ hglog
29 1 0 B
30 0 0 A
31
32 $ mkcommit C
33 $ mkcommit D
34
35 $ hglog
36 3 1 D
37 2 1 C
38 1 0 B
39 0 0 A
General Comments 0
You need to be logged in to leave comments. Login now