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