Show More
@@ -24,6 +24,7 b' from . import (' | |||
|
24 | 24 | exchange, |
|
25 | 25 | obsolete, |
|
26 | 26 | obsutil, |
|
27 | phases, | |
|
27 | 28 | pycompat, |
|
28 | 29 | util, |
|
29 | 30 | ) |
@@ -276,7 +277,8 b' def safestriproots(ui, repo, nodes):' | |||
|
276 | 277 | # orphaned = affected - wanted |
|
277 | 278 | # affected = descendants(roots(wanted)) |
|
278 | 279 | # wanted = revs |
|
279 | tostrip = set(repo.revs('%ld-(::((roots(%ld)::)-%ld))', revs, revs, revs)) | |
|
280 | revset = '%ld - ( ::( (roots(%ld):: and not _phase(%s)) -%ld) )' | |
|
281 | tostrip = set(repo.revs(revset, revs, revs, phases.internal, revs)) | |
|
280 | 282 | notstrip = revs - tostrip |
|
281 | 283 | if notstrip: |
|
282 | 284 | nodestr = ', '.join(sorted(short(repo[n].node()) for n in notstrip)) |
@@ -669,19 +669,10 b' shelve should leave dirstate clean (issu' | |||
|
669 | 669 | shelved as default |
|
670 | 670 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
671 | 671 | |
|
672 | #if phasebased | |
|
673 | 672 | $ hg rebase -d 6c103be8f4e4 --config extensions.rebase= |
|
674 | rebasing 2:323bfa07f744 "xyz" | |
|
673 | rebasing 2:323bfa07f744 "xyz"( \(tip\))? (re) | |
|
675 | 674 | merging x |
|
676 | warning: orphaned descendants detected, not stripping 323bfa07f744 (?) | |
|
677 | #endif | |
|
678 | ||
|
679 | #if stripbased | |
|
680 | $ hg rebase -d 6c103be8f4e4 --config extensions.rebase= | |
|
681 | rebasing 2:323bfa07f744 "xyz" (tip) | |
|
682 | merging x | |
|
683 | saved backup bundle to $TESTTMP/shelverebase/.hg/strip-backup/323bfa07f744-78114325-rebase.hg | |
|
684 | #endif | |
|
675 | saved backup bundle to \$TESTTMP/shelverebase/.hg/strip-backup/323bfa07f744-(78114325|7ae538ef)-rebase.hg (re) | |
|
685 | 676 | $ hg unshelve |
|
686 | 677 | unshelving change 'default' |
|
687 | 678 | rebasing shelved changes |
General Comments 0
You need to be logged in to leave comments.
Login now