Details
Details
- Reviewers
marmoute indygreg - Group Reviewers
hg-reviewers
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
marmoute | |
indygreg |
hg-reviewers |
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/shelve.py (3 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
7fc2d99b99b2 | 06f0df82939c | Augie Fackler | May 18 2020, 4:47 PM |
cmdutil, | cmdutil, | ||||
discovery, | discovery, | ||||
error, | error, | ||||
exchange, | exchange, | ||||
hg, | hg, | ||||
lock as lockmod, | lock as lockmod, | ||||
mdiff, | mdiff, | ||||
merge, | merge, | ||||
mergestate as mergestatemod, | |||||
node as nodemod, | node as nodemod, | ||||
patch, | patch, | ||||
phases, | phases, | ||||
pycompat, | pycompat, | ||||
repair, | repair, | ||||
scmutil, | scmutil, | ||||
templatefilters, | templatefilters, | ||||
util, | util, | ||||
def unshelvecontinue(ui, repo, state, opts): | def unshelvecontinue(ui, repo, state, opts): | ||||
"""subcommand to continue an in-progress unshelve""" | """subcommand to continue an in-progress unshelve""" | ||||
# We're finishing off a merge. First parent is our original | # We're finishing off a merge. First parent is our original | ||||
# parent, second is the temporary "fake" commit we're unshelving. | # parent, second is the temporary "fake" commit we're unshelving. | ||||
interactive = state.interactive | interactive = state.interactive | ||||
basename = state.name | basename = state.name | ||||
with repo.lock(): | with repo.lock(): | ||||
checkparents(repo, state) | checkparents(repo, state) | ||||
ms = mergestatemod.mergestate.read(repo) | ms = repo[None].mergestate() | ||||
if list(ms.unresolved()): | if list(ms.unresolved()): | ||||
raise error.Abort( | raise error.Abort( | ||||
_(b"unresolved conflicts, can't continue"), | _(b"unresolved conflicts, can't continue"), | ||||
hint=_(b"see 'hg resolve', then 'hg unshelve --continue'"), | hint=_(b"see 'hg resolve', then 'hg unshelve --continue'"), | ||||
) | ) | ||||
shelvectx = repo[state.parents[1]] | shelvectx = repo[state.parents[1]] | ||||
pendingctx = state.pendingctx | pendingctx = state.pendingctx |