Mercurial > evolve
annotate tests/test-userguide.t @ 3419:1e2f683e11e7 mercurial-4.2
test-compat: merge mercurial-4.3 into mercurial-4.2
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 16 Jan 2018 04:38:04 +0100 |
parents | 9c9c8c1eeb93 85cdce113c2c |
children | b21a3753255f 7a5c3175015e |
rev | line source |
---|---|
978 | 1 ensure that all the scenarios in the user guide work as documented |
2 | |
3 basic repo | |
4 $ hg init t | |
5 $ cd t | |
6 $ touch file1.c file2.c | |
7 $ hg -q commit -A -m init | |
8 | |
9 example 1: commit creates a changeset in draft phase | |
10 (this is nothing to do with evolve, but it's mentioned in the user guide) | |
11 $ echo 'feature Y' >> file1.c | |
12 $ hg commit -u alice -d '0 0' -m 'implement feature X' | |
13 $ hg phase -r . | |
14 1: draft | |
15 $ hg identify -in | |
16 6e725fd2be6f 1 | |
17 | |
18 example 2: unsafe amend with plain vanilla Mercurial: the original | |
19 commit is stripped | |
20 $ hg commit --amend -u alice -d '1 0' -m 'implement feature Y' | |
2798
2280461343e5
test-compat: merge mercurial-4.2 with the new stable branch content
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
2723
diff
changeset
|
21 saved backup bundle to $TESTTMP/t/.hg/strip-backup/6e725fd2be6f-42cc74d4-amend-backup.hg (glob) |
978 | 22 $ hg log -r 23fe4ac6d3f1 |
23 abort: unknown revision '23fe4ac6d3f1'! | |
24 [255] | |
25 $ hg identify -in | |
26 fe0ecd3bd2a4 1 | |
27 | |
28 enable evolve for safe history modification | |
29 $ cat >> $HGRCPATH <<EOF | |
30 > [alias] | |
31 > shortlog = log --template '{rev}:{node|short} {phase} {desc|firstline}\n' | |
32 > [extensions] | |
33 > rebase = | |
34 > EOF | |
1806
9f42f819267b
evolve: move the extensions to 'hgext3rd'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1782
diff
changeset
|
35 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH |
978 | 36 |
37 example 3: safe amend with "hg commit --amend" (figure 2) | |
38 $ echo 'tweak feature Y' >> file1.c | |
39 $ hg commit --amend -u alice -d '2 0' -m 'implement feature Y' | |
40 $ hg shortlog -q -r fe0ecd3bd2a4 | |
1133
8b3b0549a4b6
test: adapt to new hidden-changeset message
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1110
diff
changeset
|
41 abort: hidden revision 'fe0ecd3bd2a4'! |
2290
a36a8c6a09ac
ui: change the hidden revision error message
Boris Feld <boris.feld@octobus.net>
parents:
1806
diff
changeset
|
42 (use --hidden to access hidden revisions; successor: 934359450037) |
978 | 43 [255] |
44 $ hg --hidden shortlog -G | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
45 @ 3:934359450037 draft implement feature Y |
978 | 46 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
47 | x 2:6c5f78d5d467 draft temporary amend commit for fe0ecd3bd2a4 |
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
48 | | |
978 | 49 | x 1:fe0ecd3bd2a4 draft implement feature Y |
50 |/ | |
51 o 0:08c4b6f4efc8 draft init | |
52 | |
53 example 3 redux: repeat safe amend, this time with "hg amend" | |
54 $ hg rollback -q | |
55 $ hg amend -u alice -d '2 0' -m 'implement feature Y' | |
56 $ hg --hidden shortlog -G | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
57 @ 3:934359450037 draft implement feature Y |
978 | 58 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
59 | x 2:6c5f78d5d467 draft temporary amend commit for fe0ecd3bd2a4 |
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
60 | | |
978 | 61 | x 1:fe0ecd3bd2a4 draft implement feature Y |
62 |/ | |
63 o 0:08c4b6f4efc8 draft init | |
64 | |
65 example 4: prune at head (figure 3) | |
66 $ echo 'debug hack' >> file1.c | |
67 $ hg commit -m 'debug hack' | |
68 $ hg prune . | |
69 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
70 working directory now at 934359450037 | |
1239
8a06b32061ce
evolve: apply prune update before creating obsolescence markers
Laurent Charignon <lcharignon@fb.com>
parents:
1195
diff
changeset
|
71 1 changesets pruned |
978 | 72 $ hg parents --template '{rev}:{node|short} {desc|firstline}\n' |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
73 3:934359450037 implement feature Y |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
74 $ hg --hidden shortlog -G -r 934359450037: |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
75 x 4:a3e0ef24aaf0 draft debug hack |
978 | 76 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
77 @ 3:934359450037 draft implement feature Y |
978 | 78 | |
1641
27445da063b7
tests: adapt output to the new graphlog style
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1422
diff
changeset
|
79 ~ |
978 | 80 |
81 example 5: uncommit files at head (figure 4) | |
82 $ echo 'relevant' >> file1.c | |
83 $ echo 'irrelevant' >> file2.c | |
84 $ hg commit -u dan -d '10 0' -m 'fix bug 234' | |
85 $ hg uncommit file2.c | |
86 $ hg status | |
87 M file2.c | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
88 $ hg --hidden shortlog -G -r 'descendants(934359450037) - a3e0ef24aaf0' |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
89 @ 6:c8defeecf7a4 draft fix bug 234 |
978 | 90 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
91 | x 5:da4331967f5f draft fix bug 234 |
978 | 92 |/ |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
93 o 3:934359450037 draft implement feature Y |
978 | 94 | |
1641
27445da063b7
tests: adapt output to the new graphlog style
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1422
diff
changeset
|
95 ~ |
978 | 96 $ hg parents --template '{rev}:{node|short} {desc|firstline}\n{files}\n' |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
97 6:c8defeecf7a4 fix bug 234 |
978 | 98 file1.c |
99 $ hg revert --no-backup file2.c | |
100 | |
101 example 6: fold multiple changesets together into one (figure 5) | |
102 $ echo step1 >> file1.c | |
103 $ hg commit -m 'step 1' | |
104 $ echo step2 >> file1.c | |
105 $ hg commit -m 'step 2' | |
106 $ echo step3 >> file2.c | |
107 $ hg commit -m 'step 3' | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
108 $ hg log --template '{rev}:{node|short} {desc|firstline}\n' -r 05e61aab8294:: |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
109 7:05e61aab8294 step 1 |
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
110 8:be6d5bc8e4cc step 2 |
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
111 9:35f432d9f7c1 step 3 |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
112 $ hg fold -d '0 0' -m 'fix bug 64' --from -r 05e61aab8294:: |
978 | 113 3 changesets folded |
114 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
115 $ hg --hidden shortlog -G -r c8defeecf7a4:: |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
116 @ 10:171c6a79a27b draft fix bug 64 |
978 | 117 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
118 | x 9:35f432d9f7c1 draft step 3 |
978 | 119 | | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
120 | x 8:be6d5bc8e4cc draft step 2 |
978 | 121 | | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
122 | x 7:05e61aab8294 draft step 1 |
978 | 123 |/ |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
124 o 6:c8defeecf7a4 draft fix bug 234 |
978 | 125 | |
1641
27445da063b7
tests: adapt output to the new graphlog style
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1422
diff
changeset
|
126 ~ |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
127 $ hg --hidden log -q -r 'successors(05e61aab8294) | successors(be6d5bc8e4cc) | successors(35f432d9f7c1)' |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
128 10:171c6a79a27b |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
129 $ hg --hidden log -q -r 'precursors(171c6a79a27b)' |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
130 7:05e61aab8294 |
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
131 8:be6d5bc8e4cc |
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
132 9:35f432d9f7c1 |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
133 $ hg diff -c 171c6a79a27b -U 0 |
978 | 134 diff -r c8defeecf7a4 -r 171c6a79a27b file1.c |
135 --- a/file1.c Thu Jan 01 00:00:10 1970 +0000 | |
136 +++ b/file1.c Thu Jan 01 00:00:00 1970 +0000 | |
137 @@ -3,0 +4,2 @@ | |
138 +step1 | |
139 +step2 | |
140 diff -r c8defeecf7a4 -r 171c6a79a27b file2.c | |
141 --- a/file2.c Thu Jan 01 00:00:10 1970 +0000 | |
142 +++ b/file2.c Thu Jan 01 00:00:00 1970 +0000 | |
143 @@ -0,0 +1,1 @@ | |
144 +step3 | |
145 | |
146 setup for example 7: amend an older changeset | |
147 $ echo 'fix fix oops fix' > file2.c | |
148 $ hg commit -u bob -d '3 0' -m 'fix bug 17' | |
149 $ echo 'cleanup' >> file1.c | |
150 $ hg commit -u bob -d '4 0' -m 'cleanup' | |
151 $ echo 'new feature' >> file1.c | |
152 $ hg commit -u bob -d '5 0' -m 'feature 23' | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
153 $ hg --hidden shortlog -G -r 171c6a79a27b:: |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
154 @ 13:dadcbba2d606 draft feature 23 |
978 | 155 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
156 o 12:debd46bb29dc draft cleanup |
978 | 157 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
158 o 11:3e1cb8f70c02 draft fix bug 17 |
978 | 159 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
160 o 10:171c6a79a27b draft fix bug 64 |
978 | 161 | |
1641
27445da063b7
tests: adapt output to the new graphlog style
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1422
diff
changeset
|
162 ~ |
978 | 163 |
164 example 7: amend an older changeset (figures 6, 7) | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
165 $ hg update -q -r 3e1cb8f70c02 |
978 | 166 $ echo 'fix fix fix fix' > file2.c |
167 $ hg amend -u bob -d '6 0' | |
3106
a867d59ea97a
test-compat: revert output changes from phase renaming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3105
diff
changeset
|
168 2 new unstable changesets |
978 | 169 $ hg shortlog -r 'obsolete()' |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
170 11:3e1cb8f70c02 draft fix bug 17 |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
171 $ hg shortlog -r "orphan()" |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
172 12:debd46bb29dc draft cleanup |
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
173 13:dadcbba2d606 draft feature 23 |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
174 $ hg --hidden shortlog -G -r 171c6a79a27b:: |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
175 @ 15:395cbeda3a06 draft fix bug 17 |
978 | 176 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
177 | x 14:f7fab707e247 draft temporary amend commit for 3e1cb8f70c02 |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
178 | | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
179 | | o 13:dadcbba2d606 draft feature 23 |
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
180 | | | |
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
181 | | o 12:debd46bb29dc draft cleanup |
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
182 | |/ |
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
183 | x 11:3e1cb8f70c02 draft fix bug 17 |
978 | 184 |/ |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
185 o 10:171c6a79a27b draft fix bug 64 |
978 | 186 | |
1641
27445da063b7
tests: adapt output to the new graphlog style
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1422
diff
changeset
|
187 ~ |
978 | 188 $ hg evolve -q --all |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
189 $ hg shortlog -G -r 171c6a79a27b:: |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
190 @ 17:91b4b0f8b5c5 draft feature 23 |
978 | 191 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
192 o 16:fe8858bd9bc2 draft cleanup |
978 | 193 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
194 o 15:395cbeda3a06 draft fix bug 17 |
978 | 195 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
196 o 10:171c6a79a27b draft fix bug 64 |
978 | 197 | |
1641
27445da063b7
tests: adapt output to the new graphlog style
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1422
diff
changeset
|
198 ~ |
978 | 199 |
200 setup for example 8: prune an older changeset (figure 8) | |
201 $ echo 'useful' >> file1.c | |
202 $ hg commit -u carl -d '7 0' -m 'useful work' | |
203 $ echo 'debug' >> file2.c | |
204 $ hg commit -u carl -d '8 0' -m 'debug hack' | |
205 $ echo 'more useful' >> file1.c | |
206 $ hg commit -u carl -d '9 0' -m 'more work' | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
207 $ hg shortlog -G -r 91b4b0f8b5c5:: |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
208 @ 20:ea8fafca914b draft more work |
978 | 209 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
210 o 19:b23d06b457a8 draft debug hack |
978 | 211 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
212 o 18:1f33e68b18b9 draft useful work |
978 | 213 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
214 o 17:91b4b0f8b5c5 draft feature 23 |
978 | 215 | |
1641
27445da063b7
tests: adapt output to the new graphlog style
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1422
diff
changeset
|
216 ~ |
978 | 217 |
218 example 8: prune an older changeset (figures 8, 9) | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
219 $ hg prune b23d06b457a8 |
978 | 220 1 changesets pruned |
3106
a867d59ea97a
test-compat: revert output changes from phase renaming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3105
diff
changeset
|
221 1 new unstable changesets |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
222 $ hg --hidden shortlog -G -r b23d06b457a8:: |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
223 @ 20:ea8fafca914b draft more work |
978 | 224 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
225 x 19:b23d06b457a8 draft debug hack |
978 | 226 | |
1641
27445da063b7
tests: adapt output to the new graphlog style
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1422
diff
changeset
|
227 ~ |
1422
c868a69c29c5
evolve: distinct between '--all' and '--all --any'
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1239
diff
changeset
|
228 $ hg evolve -q --all --any |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
229 $ hg --hidden shortlog -G -r 1f33e68b18b9:: |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
230 @ 21:4393e5877437 draft more work |
978 | 231 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
232 | x 20:ea8fafca914b draft more work |
978 | 233 | | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
234 | x 19:b23d06b457a8 draft debug hack |
978 | 235 |/ |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
236 o 18:1f33e68b18b9 draft useful work |
978 | 237 | |
1641
27445da063b7
tests: adapt output to the new graphlog style
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1422
diff
changeset
|
238 ~ |
978 | 239 |
240 example 9: uncommit files from an older changeset (discard changes) | |
241 (figure 10) | |
242 $ echo 'this fixes bug 53' >> file1.c | |
243 $ echo 'debug hack' >> file2.c | |
244 $ hg commit -u dan -d '11 0' -m 'fix bug 53' | |
245 $ echo 'and this handles bug 67' >> file1.c | |
246 $ hg commit -u dan -d '12 0' -m 'fix bug 67' | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
247 $ hg update -r f84357446753 |
978 | 248 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
249 $ hg shortlog -G -r 4393e5877437:: |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
250 o 23:4db2428c8ae3 draft fix bug 67 |
978 | 251 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
252 @ 22:f84357446753 draft fix bug 53 |
978 | 253 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
254 o 21:4393e5877437 draft more work |
978 | 255 | |
1641
27445da063b7
tests: adapt output to the new graphlog style
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1422
diff
changeset
|
256 ~ |
978 | 257 $ hg uncommit file2.c |
3106
a867d59ea97a
test-compat: revert output changes from phase renaming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3105
diff
changeset
|
258 1 new unstable changesets |
978 | 259 $ hg status |
260 M file2.c | |
261 $ hg revert file2.c | |
1422
c868a69c29c5
evolve: distinct between '--all' and '--all --any'
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1239
diff
changeset
|
262 $ hg evolve --all --any |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
263 move:[23] fix bug 67 |
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
264 atop:[24] fix bug 53 |
1099
bac4e0bc9f6a
evolve: write a status message when the working directory changes
David Soria Parra <davidsp@fb.com>
parents:
978
diff
changeset
|
265 working directory is now at 0d972d6888e6 |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
266 $ hg --hidden shortlog -G -r 4393e5877437:: |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
267 @ 25:0d972d6888e6 draft fix bug 67 |
978 | 268 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
269 o 24:71bb83d674c5 draft fix bug 53 |
978 | 270 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
271 | x 23:4db2428c8ae3 draft fix bug 67 |
978 | 272 | | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
273 | x 22:f84357446753 draft fix bug 53 |
978 | 274 |/ |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
275 o 21:4393e5877437 draft more work |
978 | 276 | |
1641
27445da063b7
tests: adapt output to the new graphlog style
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1422
diff
changeset
|
277 ~ |
978 | 278 $ rm file2.c.orig |
279 | |
280 example 10: uncommit files from an older changeset (keep changes) | |
281 (figures 11, 12) | |
282 $ echo 'fix a bug' >> file1.c | |
283 $ echo 'useful but unrelated' >> file2.c | |
284 $ hg commit -u dan -d '11 0' -m 'fix a bug' | |
285 $ echo 'new feature' >> file1.c | |
286 $ hg commit -u dan -d '12 0' -m 'new feature' | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
287 $ hg update 5b31a1239ab9 |
978 | 288 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
289 $ hg --hidden shortlog -G -r 0d972d6888e6:: |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
290 o 27:fbb3c6d50427 draft new feature |
978 | 291 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
292 @ 26:5b31a1239ab9 draft fix a bug |
978 | 293 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
294 o 25:0d972d6888e6 draft fix bug 67 |
978 | 295 | |
1641
27445da063b7
tests: adapt output to the new graphlog style
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1422
diff
changeset
|
296 ~ |
978 | 297 $ hg uncommit file2.c |
3106
a867d59ea97a
test-compat: revert output changes from phase renaming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3105
diff
changeset
|
298 1 new unstable changesets |
978 | 299 $ hg status |
300 M file2.c | |
301 $ hg commit -m 'useful tweak' | |
2929
06844693bb21
tests: update after removing of redundant amend commit
Boris Feld <boris.feld@octobus.net>
parents:
2854
diff
changeset
|
302 $ hg --hidden shortlog -G -r 0d972d6888e6:: |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
303 @ 29:51e0d8c0a922 draft useful tweak |
978 | 304 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
305 o 28:2594e98553a9 draft fix a bug |
978 | 306 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
307 | o 27:fbb3c6d50427 draft new feature |
978 | 308 | | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
309 | x 26:5b31a1239ab9 draft fix a bug |
978 | 310 |/ |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
311 o 25:0d972d6888e6 draft fix bug 67 |
978 | 312 | |
1641
27445da063b7
tests: adapt output to the new graphlog style
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1422
diff
changeset
|
313 ~ |
1422
c868a69c29c5
evolve: distinct between '--all' and '--all --any'
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1239
diff
changeset
|
314 $ hg evolve --all --any |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
315 move:[27] new feature |
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
316 atop:[28] fix a bug |
1099
bac4e0bc9f6a
evolve: write a status message when the working directory changes
David Soria Parra <davidsp@fb.com>
parents:
978
diff
changeset
|
317 working directory is now at 166c1c368ab6 |
2929
06844693bb21
tests: update after removing of redundant amend commit
Boris Feld <boris.feld@octobus.net>
parents:
2854
diff
changeset
|
318 $ hg --hidden shortlog -G -r 0d972d6888e6:: |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
319 @ 30:166c1c368ab6 draft new feature |
978 | 320 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
321 | o 29:51e0d8c0a922 draft useful tweak |
978 | 322 |/ |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
323 o 28:2594e98553a9 draft fix a bug |
978 | 324 | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
325 | x 27:fbb3c6d50427 draft new feature |
978 | 326 | | |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
327 | x 26:5b31a1239ab9 draft fix a bug |
978 | 328 |/ |
3105
f5d472b7e800
test-compat: revert output changes related to temporary amend commit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
329 o 25:0d972d6888e6 draft fix bug 67 |
978 | 330 | |
1641
27445da063b7
tests: adapt output to the new graphlog style
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1422
diff
changeset
|
331 ~ |