Show More
@@ -797,6 +797,11 def _histedit(ui, repo, state, *freeargs | |||
|
797 | 797 | break |
|
798 | 798 | else: |
|
799 | 799 | pass |
|
800 | if supportsmarkers: | |
|
801 | obsolete.createmarkers(repo, | |
|
802 | ((repo[t],()) for t in sorted(tmpnodes))) | |
|
803 | obsolete.createmarkers(repo, ((repo[t],()) for t in sorted(leafs))) | |
|
804 | else: | |
|
800 | 805 | cleanupnode(ui, repo, 'created', tmpnodes) |
|
801 | 806 | cleanupnode(ui, repo, 'temp', leafs) |
|
802 | 807 | state.clear() |
@@ -893,7 +898,9 def _histedit(ui, repo, state, *freeargs | |||
|
893 | 898 | obsolete.createmarkers(repo, markers) |
|
894 | 899 | else: |
|
895 | 900 | cleanupnode(ui, repo, 'replaced', mapping) |
|
896 | ||
|
901 | if supportsmarkers: | |
|
902 | obsolete.createmarkers(repo, ((repo[t],()) for t in sorted(tmpnodes))) | |
|
903 | else: | |
|
897 | 904 | cleanupnode(ui, repo, 'temp', tmpnodes) |
|
898 | 905 | state.clear() |
|
899 | 906 | if os.path.exists(repo.sjoin('undo')): |
@@ -64,12 +64,16 Enable obsolete | |||
|
64 | 64 | > fold e860deea161a 4 e |
|
65 | 65 | > pick 652413bf663e 5 f |
|
66 | 66 | > EOF |
|
67 | saved backup bundle to $TESTTMP/base/.hg/strip-backup/96e494a2d553-3c6c5d92-backup.hg (glob) | |
|
67 | [1] | |
|
68 | 68 | $ hg log --graph --hidden |
|
69 |
@ |
|
|
69 | @ 10:cacdfd884a93 f | |
|
70 | | | |
|
71 | o 9:59d9f330561f d | |
|
70 | 72 | | |
|
71 | o 7:59d9f330561f d | |
|
72 | | | |
|
73 | | x 8:b558abc46d09 fold-temp-revision e860deea161a | |
|
74 | | | | |
|
75 | | x 7:96e494a2d553 d | |
|
76 | |/ | |
|
73 | 77 | o 6:b346ab9a313d c |
|
74 | 78 | | |
|
75 | 79 | | x 5:652413bf663e f |
@@ -90,6 +94,8 Enable obsolete | |||
|
90 | 94 | 055a42cdd88768532f9cf79daa407fc8d138de9b 59d9f330561fd6c88b1a6b32f0e45034d88db784 0 (*) {'user': 'test'} (glob) |
|
91 | 95 | e860deea161a2f77de56603b340ebbb4536308ae 59d9f330561fd6c88b1a6b32f0e45034d88db784 0 (*) {'user': 'test'} (glob) |
|
92 | 96 | 652413bf663ef2a641cab26574e46d5f5a64a55a cacdfd884a9321ec4e1de275ef3949fa953a1f83 0 (*) {'user': 'test'} (glob) |
|
97 | 96e494a2d553dd05902ba1cee1d94d4cb7b8faed 0 {b346ab9a313db8537ecf96fca3ca3ca984ef3bd7} (*) {'user': 'test'} (glob) | |
|
98 | b558abc46d09c30f57ac31e85a8a3d64d2e906e4 0 {96e494a2d553dd05902ba1cee1d94d4cb7b8faed} (*) {'user': 'test'} (glob) | |
|
93 | 99 | |
|
94 | 100 | |
|
95 | 101 | Ensure hidden revision does not prevent histedit |
@@ -105,7 +111,7 create an hidden revision | |||
|
105 | 111 | 0 files updated, 0 files merged, 3 files removed, 0 files unresolved |
|
106 | 112 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
107 | 113 | $ hg log --graph |
|
108 |
@ |
|
|
114 | @ 11:c13eb81022ca f | |
|
109 | 115 | | |
|
110 | 116 | o 6:b346ab9a313d c |
|
111 | 117 | | |
@@ -127,7 +133,7 Test that rewriting leaving instability | |||
|
127 | 133 | $ hg up '.^' |
|
128 | 134 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
129 | 135 | $ hg log -r 'children(.)' |
|
130 |
|
|
|
136 | 11:c13eb81022ca f (no-eol) | |
|
131 | 137 | $ hg histedit -r '.' --commands - <<EOF |
|
132 | 138 | > edit b346ab9a313d 6 c |
|
133 | 139 | > EOF |
@@ -141,12 +147,12 Test that rewriting leaving instability | |||
|
141 | 147 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
142 | 148 | |
|
143 | 149 | $ hg log -r 'unstable()' |
|
144 |
|
|
|
150 | 11:c13eb81022ca f (no-eol) | |
|
145 | 151 | |
|
146 | 152 | stabilise |
|
147 | 153 | |
|
148 | 154 | $ hg rebase -r 'unstable()' -d . |
|
149 |
rebasing |
|
|
155 | rebasing 11:c13eb81022ca "f" | |
|
150 | 156 | $ hg up tip -q |
|
151 | 157 | |
|
152 | 158 | Test dropping of changeset on the top of the stack |
@@ -166,7 +172,7 dropped changeset to be hidden. | |||
|
166 | 172 | > EOF |
|
167 | 173 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
168 | 174 | $ hg log -G |
|
169 |
@ 1 |
|
|
175 | @ 12:40db8afa467b c | |
|
170 | 176 | | |
|
171 | 177 | o 0:cb9a9f314b8b a |
|
172 | 178 | |
@@ -188,9 +194,9 With rewritten ancestors | |||
|
188 | 194 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
189 | 195 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
190 | 196 | $ hg log -G |
|
191 |
@ 1 |
|
|
197 | @ 17:ee6544123ab8 c | |
|
192 | 198 | | |
|
193 |
o 1 |
|
|
199 | o 16:269e713e9eae g | |
|
194 | 200 | | |
|
195 | 201 | o 0:cb9a9f314b8b a |
|
196 | 202 | |
@@ -212,9 +218,9 Check that histedit respect immutability | |||
|
212 | 218 | $ hg ph -pv '.^' |
|
213 | 219 | phase changed for 2 changesets |
|
214 | 220 | $ hg log -G |
|
215 |
@ 1 |
|
|
221 | @ 13:b449568bf7fc (draft) f | |
|
216 | 222 | | |
|
217 |
o 1 |
|
|
223 | o 12:40db8afa467b (public) c | |
|
218 | 224 | | |
|
219 | 225 | o 0:cb9a9f314b8b (public) a |
|
220 | 226 | |
@@ -234,19 +240,19 Prepare further testing | |||
|
234 | 240 | > done |
|
235 | 241 | $ hg phase --force --secret .~2 |
|
236 | 242 | $ hg log -G |
|
237 |
@ 1 |
|
|
243 | @ 18:ee118ab9fa44 (secret) k | |
|
238 | 244 | | |
|
239 |
o 1 |
|
|
245 | o 17:3a6c53ee7f3d (secret) j | |
|
240 | 246 | | |
|
241 |
o 1 |
|
|
247 | o 16:b605fb7503f2 (secret) i | |
|
242 | 248 | | |
|
243 |
o 1 |
|
|
249 | o 15:7395e1ff83bd (draft) h | |
|
244 | 250 | | |
|
245 |
o 1 |
|
|
251 | o 14:6b70183d2492 (draft) g | |
|
246 | 252 | | |
|
247 |
o 1 |
|
|
253 | o 13:b449568bf7fc (draft) f | |
|
248 | 254 | | |
|
249 |
o 1 |
|
|
255 | o 12:40db8afa467b (public) c | |
|
250 | 256 | | |
|
251 | 257 | o 0:cb9a9f314b8b (public) a |
|
252 | 258 | |
@@ -284,19 +290,19 New-commit as draft (default) | |||
|
284 | 290 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
285 | 291 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
286 | 292 | $ hg log -G |
|
287 |
@ 2 |
|
|
293 | @ 24:12e89af74238 (secret) k | |
|
288 | 294 | | |
|
289 |
o 2 |
|
|
295 | o 23:636a8687b22e (secret) j | |
|
290 | 296 | | |
|
291 |
o 2 |
|
|
297 | o 22:ccaf0a38653f (secret) i | |
|
292 | 298 | | |
|
293 |
o 1 |
|
|
299 | o 21:11a89d1c2613 (draft) h | |
|
294 | 300 | | |
|
295 |
o |
|
|
301 | o 20:c1dec7ca82ea (draft) g | |
|
296 | 302 | | |
|
297 |
o 1 |
|
|
303 | o 19:087281e68428 (draft) f | |
|
298 | 304 | | |
|
299 |
o 1 |
|
|
305 | o 12:40db8afa467b (public) c | |
|
300 | 306 | | |
|
301 | 307 | o 0:cb9a9f314b8b (public) a |
|
302 | 308 | |
@@ -333,19 +339,19 New-commit as draft (default) | |||
|
333 | 339 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
334 | 340 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
335 | 341 | $ hg log -G |
|
336 |
@ 2 |
|
|
342 | @ 24:12e89af74238 (secret) k | |
|
337 | 343 | | |
|
338 |
o 2 |
|
|
344 | o 23:636a8687b22e (secret) j | |
|
339 | 345 | | |
|
340 |
o 2 |
|
|
346 | o 22:ccaf0a38653f (secret) i | |
|
341 | 347 | | |
|
342 |
o 1 |
|
|
348 | o 21:11a89d1c2613 (draft) h | |
|
343 | 349 | | |
|
344 |
o |
|
|
350 | o 20:c1dec7ca82ea (draft) g | |
|
345 | 351 | | |
|
346 |
o 1 |
|
|
352 | o 19:087281e68428 (draft) f | |
|
347 | 353 | | |
|
348 |
o 1 |
|
|
354 | o 12:40db8afa467b (public) c | |
|
349 | 355 | | |
|
350 | 356 | o 0:cb9a9f314b8b (public) a |
|
351 | 357 | |
@@ -375,19 +381,19 It seems more important to present the s | |||
|
375 | 381 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
376 | 382 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
377 | 383 | $ hg log -G |
|
378 |
@ 2 |
|
|
384 | @ 23:558246857888 (secret) k | |
|
379 | 385 | | |
|
380 |
o 2 |
|
|
386 | o 22:28bd44768535 (secret) h | |
|
381 | 387 | | |
|
382 |
o 1 |
|
|
388 | o 21:d5395202aeb9 (secret) i | |
|
383 | 389 | | |
|
384 |
o |
|
|
390 | o 20:21edda8e341b (secret) g | |
|
385 | 391 | | |
|
386 |
o 1 |
|
|
392 | o 19:5ab64f3a4832 (secret) j | |
|
387 | 393 | | |
|
388 |
o 1 |
|
|
394 | o 13:b449568bf7fc (draft) f | |
|
389 | 395 | | |
|
390 |
o 1 |
|
|
396 | o 12:40db8afa467b (public) c | |
|
391 | 397 | | |
|
392 | 398 | o 0:cb9a9f314b8b (public) a |
|
393 | 399 | |
@@ -428,33 +434,30 Note that there is a few reordering in t | |||
|
428 | 434 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
429 | 435 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
430 | 436 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
431 | saved backup bundle to $TESTTMP/folding/.hg/strip-backup/58019c66f35f-96092fce-backup.hg (glob) | |
|
432 | saved backup bundle to $TESTTMP/folding/.hg/strip-backup/83d1858e070b-f3469cf8-backup.hg (glob) | |
|
433 | saved backup bundle to $TESTTMP/folding/.hg/strip-backup/859969f5ed7e-d89a19d7-backup.hg (glob) | |
|
434 | 437 | $ hg log -G |
|
435 |
@ |
|
|
438 | @ 27:f9daec13fb98 (secret) i | |
|
436 | 439 | | |
|
437 |
o |
|
|
440 | o 24:49807617f46a (secret) g | |
|
438 | 441 | | |
|
439 |
o 1 |
|
|
442 | o 21:050280826e04 (draft) h | |
|
440 | 443 | | |
|
441 |
o 1 |
|
|
444 | o 12:40db8afa467b (public) c | |
|
442 | 445 | | |
|
443 | 446 | o 0:cb9a9f314b8b (public) a |
|
444 | 447 | |
|
445 |
$ hg co |
|
|
448 | $ hg co 24 | |
|
446 | 449 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
447 | 450 | $ echo wat >> wat |
|
448 | 451 | $ hg add wat |
|
449 | 452 | $ hg ci -m 'add wat' |
|
450 | 453 | created new head |
|
451 |
$ hg merge |
|
|
454 | $ hg merge 27 | |
|
452 | 455 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
453 | 456 | (branch merge, don't forget to commit) |
|
454 | 457 | $ hg ci -m 'merge' |
|
455 | 458 | $ echo not wat > wat |
|
456 | 459 | $ hg ci -m 'modify wat' |
|
457 |
$ hg histedit 1 |
|
|
460 | $ hg histedit 21 | |
|
458 | 461 | abort: cannot edit history that contains merges |
|
459 | 462 | [255] |
|
460 | 463 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now