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/hg.py (3 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
06f0df82939c | e3e722398c1b | Augie Fackler | May 18 2020, 4:46 PM |
exchange, | exchange, | ||||
extensions, | extensions, | ||||
httppeer, | httppeer, | ||||
localrepo, | localrepo, | ||||
lock, | lock, | ||||
logcmdutil, | logcmdutil, | ||||
logexchange, | logexchange, | ||||
merge as mergemod, | merge as mergemod, | ||||
mergestate as mergestatemod, | |||||
narrowspec, | narrowspec, | ||||
node, | node, | ||||
phases, | phases, | ||||
pycompat, | pycompat, | ||||
requirements, | requirements, | ||||
scmutil, | scmutil, | ||||
sshpeer, | sshpeer, | ||||
statichttprepo, | statichttprepo, | ||||
) | ) | ||||
) | ) | ||||
elif remind: | elif remind: | ||||
repo.ui.status(_(b"(branch merge, don't forget to commit)\n")) | repo.ui.status(_(b"(branch merge, don't forget to commit)\n")) | ||||
return stats.unresolvedcount > 0 | return stats.unresolvedcount > 0 | ||||
def abortmerge(ui, repo): | def abortmerge(ui, repo): | ||||
ms = mergestatemod.mergestate.read(repo) | ms = repo[None].mergestate() | ||||
if ms.active(): | if ms.active(): | ||||
# there were conflicts | # there were conflicts | ||||
node = ms.localctx.hex() | node = ms.localctx.hex() | ||||
else: | else: | ||||
# there were no conficts, mergestate was not stored | # there were no conficts, mergestate was not stored | ||||
node = repo[b'.'].hex() | node = repo[b'.'].hex() | ||||
repo.ui.status(_(b"aborting the merge, updating back to %s\n") % node[:12]) | repo.ui.status(_(b"aborting the merge, updating back to %s\n") % node[:12]) |