comparison tests/test-phases.t @ 15694:1e4e49c58b94

phases: add a bit more test for local phase movement.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Sun, 18 Dec 2011 23:15:12 +0100
parents 9ae766f2f452
children 06b8b74720d6
comparison
equal deleted inserted replaced
15693:54f2205d8ea9 15694:1e4e49c58b94
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
8 13
9 $ hglog 14 $ hglog
10 0 1 first 15 0 1 A
16
17 Following commit are draft too
18
19 $ mkcommit B
20
21 $ hglog
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