Show More
@@ -564,6 +564,10 b' def _docreatecmd(ui, repo, pats, opts):' | |||||
564 | scmutil.movedirstate(repo, parent, match) |
|
564 | scmutil.movedirstate(repo, parent, match) | |
565 | else: |
|
565 | else: | |
566 | hg.update(repo, parent.node()) |
|
566 | hg.update(repo, parent.node()) | |
|
567 | ms = mergestatemod.mergestate.read(repo) | |||
|
568 | if not ms.unresolvedcount(): | |||
|
569 | ms.reset() | |||
|
570 | ||||
567 | if origbranch != repo[b'.'].branch() and not _isbareshelve(pats, opts): |
|
571 | if origbranch != repo[b'.'].branch() and not _isbareshelve(pats, opts): | |
568 | repo.dirstate.setbranch(origbranch) |
|
572 | repo.dirstate.setbranch(origbranch) | |
569 |
|
573 |
@@ -810,9 +810,8 b' Test interactive shelve' | |||||
810 | ? foo/foo |
|
810 | ? foo/foo | |
811 | $ hg bookmark |
|
811 | $ hg bookmark | |
812 | \* test (4|13):33f7f61e6c5e (re) |
|
812 | \* test (4|13):33f7f61e6c5e (re) | |
813 |
|
|
813 | there shouldn't be a merge state | |
814 | $ hg resolve -l |
|
814 | $ hg resolve -l | |
815 | R a/a |
|
|||
816 | $ hg unshelve |
|
815 | $ hg unshelve | |
817 | unshelving change 'test' |
|
816 | unshelving change 'test' | |
818 | temporarily committing pending changes (restore with 'hg unshelve --abort') |
|
817 | temporarily committing pending changes (restore with 'hg unshelve --abort') |
General Comments 0
You need to be logged in to leave comments.
Login now