Mercurial > hg-stable
comparison tests/test-phases-exchange.t @ 15484:a44446ff9ad8
phases: marked content of a changegroup as published
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Fri, 11 Nov 2011 00:19:00 +0100 |
parents | |
children | fa47291b3f1f |
comparison
equal
deleted
inserted
replaced
15483:9ae766f2f452 | 15484:a44446ff9ad8 |
---|---|
1 $ cat >> $HGRCPATH <<EOF | |
2 > [extensions] | |
3 > graphlog= | |
4 > EOF | |
5 $ alias hgph='hg log --template "{rev} {phase} {desc}\n"' | |
6 | |
7 $ mkcommit() { | |
8 > echo "$1" > "$1" | |
9 > hg add "$1" | |
10 > hg ci -m "$1" | |
11 > } | |
12 | |
13 $ hg init alpha | |
14 $ cd alpha | |
15 $ mkcommit a-A | |
16 $ mkcommit a-B | |
17 $ mkcommit a-C | |
18 $ mkcommit a-D | |
19 $ hgph | |
20 3 1 a-D | |
21 2 1 a-C | |
22 1 1 a-B | |
23 0 1 a-A | |
24 | |
25 $ hg init ../beta | |
26 $ hg push -r 1 ../beta | |
27 pushing to ../beta | |
28 searching for changes | |
29 adding changesets | |
30 adding manifests | |
31 adding file changes | |
32 added 2 changesets with 2 changes to 2 files | |
33 $ cd ../beta | |
34 $ hgph | |
35 1 0 a-B | |
36 0 0 a-A | |
37 $ hg up -q | |
38 $ mkcommit b-A | |
39 $ hgph | |
40 2 1 b-A | |
41 1 0 a-B | |
42 0 0 a-A | |
43 $ hg pull ../alpha | |
44 pulling from ../alpha | |
45 searching for changes | |
46 adding changesets | |
47 adding manifests | |
48 adding file changes | |
49 added 2 changesets with 2 changes to 2 files (+1 heads) | |
50 (run 'hg heads' to see heads, 'hg merge' to merge) | |
51 $ hgph | |
52 4 0 a-D | |
53 3 0 a-C | |
54 2 1 b-A | |
55 1 0 a-B | |
56 0 0 a-A | |
57 | |
58 |