Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG073bb7563931: shelve: clear merge state after partial shelve
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
| hg-reviewers |
| No Linters Available |
| No Unit Test Coverage |
| Path | Packages | |||
|---|---|---|---|---|
| M | mercurial/shelve.py (4 lines) | |||
| M | tests/test-shelve.t (3 lines) |
| Commit | Parents | Author | Summary | Date |
|---|---|---|---|---|
| 3cb8d7c9444e | 144dc66c922b | Martin von Zweigbergk | Nov 17 2020, 12:28 AM |
| Status | Author | Revision | |
|---|---|---|---|
| Closed | martinvonz | ||
| Closed | martinvonz |
| _shelvecreatedcommit(repo, node, name, match) | _shelvecreatedcommit(repo, node, name, match) | ||||
| ui.status(_(b'shelved as %s\n') % name) | ui.status(_(b'shelved as %s\n') % name) | ||||
| if opts[b'keep']: | if opts[b'keep']: | ||||
| with repo.dirstate.parentchange(): | with repo.dirstate.parentchange(): | ||||
| scmutil.movedirstate(repo, parent, match) | scmutil.movedirstate(repo, parent, match) | ||||
| else: | else: | ||||
| hg.update(repo, parent.node()) | hg.update(repo, parent.node()) | ||||
| ms = mergestatemod.mergestate.read(repo) | |||||
| if not ms.unresolvedcount(): | |||||
| ms.reset() | |||||
| if origbranch != repo[b'.'].branch() and not _isbareshelve(pats, opts): | if origbranch != repo[b'.'].branch() and not _isbareshelve(pats, opts): | ||||
| repo.dirstate.setbranch(origbranch) | repo.dirstate.setbranch(origbranch) | ||||
| _finishshelve(repo, tr) | _finishshelve(repo, tr) | ||||
| finally: | finally: | ||||
| _restoreactivebookmark(repo, activebookmark) | _restoreactivebookmark(repo, activebookmark) | ||||
| lockmod.release(tr, lock) | lockmod.release(tr, lock) | ||||
| $ cat foo/foo | $ cat foo/foo | ||||
| foo | foo | ||||
| a | a | ||||
| $ hg st | $ hg st | ||||
| M a/a | M a/a | ||||
| ? foo/foo | ? foo/foo | ||||
| $ hg bookmark | $ hg bookmark | ||||
| \* test (4|13):33f7f61e6c5e (re) | \* test (4|13):33f7f61e6c5e (re) | ||||
| BROKEN: there shouldn't be a merge state | there shouldn't be a merge state | ||||
| $ hg resolve -l | $ hg resolve -l | ||||
| R a/a | |||||
| $ hg unshelve | $ hg unshelve | ||||
| unshelving change 'test' | unshelving change 'test' | ||||
| temporarily committing pending changes (restore with 'hg unshelve --abort') | temporarily committing pending changes (restore with 'hg unshelve --abort') | ||||
| rebasing shelved changes | rebasing shelved changes | ||||
| merging a/a | merging a/a | ||||
| $ hg bookmark | $ hg bookmark | ||||
| \* test (4|13):33f7f61e6c5e (re) | \* test (4|13):33f7f61e6c5e (re) | ||||
| $ cat a/a | $ cat a/a | ||||