Mercurial > evolve
comparison tests/test-evolve.t @ 296:c3ff47e6bd36
test-evolve: extend output and exhibit an amend bug
The extended section shows the parent revision stabilizing itself on
another revision, without --any. In theory, only descendants of the
parent predecessors or of its descendants should be stabilized, and be
stabilized in parent subtree. Unfortunately, stabilize implementation
correctly picks the changesets to stabilize but not their target.
This problem is aggravated by amend registering too many obsolete
markers which prevents the stabilize selection heuristic to prune
several changesets.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Thu, 21 Jun 2012 18:00:32 +0200 |
parents | 6c6bb7a23bb5 |
children | d68ccae92d52 |
comparison
equal
deleted
inserted
replaced
295:a5894bb97909 | 296:c3ff47e6bd36 |
---|---|
21 > echo "$1" > "$1" | 21 > echo "$1" > "$1" |
22 > hg add "$1" | 22 > hg add "$1" |
23 > hg ci -m "add $1" | 23 > hg ci -m "add $1" |
24 > } | 24 > } |
25 | 25 |
26 $ glog() { | |
27 > hg glog --template '{rev}:{node|short}@{branch}({phase}) {desc|firstline}\n' "$@" | |
28 > } | |
29 | |
26 various init | 30 various init |
27 | 31 |
28 $ hg init local | 32 $ hg init local |
29 $ cd local | 33 $ cd local |
30 $ mkcommit a | 34 $ mkcommit a |
209 4 feature-B: another feature - test | 213 4 feature-B: another feature - test |
210 1 : a nifty feature - test | 214 1 : a nifty feature - test |
211 0 : base - test | 215 0 : base - test |
212 $ hg up -q 1 | 216 $ hg up -q 1 |
213 Working directory parent is obsolete | 217 Working directory parent is obsolete |
218 $ glog --hidden | |
219 o 6:23409eba69a0@default(draft) a nifty feature | |
220 | | |
221 | o 5:e416e48b2742@default(secret) french looks better | |
222 | | | |
223 | | o 4:f8111a076f09@default(draft) another feature | |
224 | |/ | |
225 | | o 3:524e478d4811@default(secret) fix spelling of Zwei | |
226 | | | | |
227 | | o 2:7b36850622b2@default(secret) another feature | |
228 | |/ | |
229 | @ 1:568a468b60fc@default(draft) a nifty feature | |
230 |/ | |
231 o 0:e55e0562ee93@default(draft) base | |
232 | |
233 $ hg debugsuccessors | |
234 524e478d4811 f8111a076f09 | |
235 568a468b60fc 23409eba69a0 | |
236 568a468b60fc e416e48b2742 | |
237 7b36850622b2 524e478d4811 | |
238 7b36850622b2 f8111a076f09 | |
239 e416e48b2742 23409eba69a0 | |
214 $ hg stabilize | 240 $ hg stabilize |
215 move:[4] another feature | 241 move:[4] another feature |
216 atop:[6] a nifty feature | 242 atop:[6] a nifty feature |
217 merging main-file-1 | 243 merging main-file-1 |
218 $ hg log | 244 $ hg log |