Details
Details
- Reviewers
durin42 - Group Reviewers
hg-reviewers - Commits
- rHG306a8604741f: rebaseruntime: raise InMemoryMergeConflictsError on merge conflicts
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
durin42 |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | hgext/rebase.py (9 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Closed | phillco | ||
Abandoned | phillco |
repo.ui.debug('resuming interrupted rebase\n') | repo.ui.debug('resuming interrupted rebase\n') | ||||
else: | else: | ||||
try: | try: | ||||
ui.setconfig('ui', 'forcemerge', opts.get('tool', ''), | ui.setconfig('ui', 'forcemerge', opts.get('tool', ''), | ||||
'rebase') | 'rebase') | ||||
stats = rebasenode(repo, rev, p1, base, self.state, | stats = rebasenode(repo, rev, p1, base, self.state, | ||||
self.collapsef, dest) | self.collapsef, dest) | ||||
if stats and stats[3] > 0: | if stats and stats[3] > 0: | ||||
if self.wctx.isinmemory(): | |||||
raise error.InMemoryMergeConflictsError() | |||||
else: | |||||
raise error.InterventionRequired( | raise error.InterventionRequired( | ||||
_('unresolved conflicts (see hg ' | _('unresolved conflicts (see hg ' | ||||
'resolve, then hg rebase --continue)')) | 'resolve, then hg rebase --continue)')) | ||||
finally: | finally: | ||||
ui.setconfig('ui', 'forcemerge', '', 'rebase') | ui.setconfig('ui', 'forcemerge', '', 'rebase') | ||||
if not self.collapsef: | if not self.collapsef: | ||||
merging = p2 != nullrev | merging = p2 != nullrev | ||||
editform = cmdutil.mergeeditform(merging, 'rebase') | editform = cmdutil.mergeeditform(merging, 'rebase') | ||||
editor = cmdutil.getcommiteditor(editform=editform, **opts) | editor = cmdutil.getcommiteditor(editform=editform, **opts) | ||||
newnode = concludenode(repo, rev, p1, p2, | newnode = concludenode(repo, rev, p1, p2, | ||||
extrafn=_makeextrafn(self.extrafns), | extrafn=_makeextrafn(self.extrafns), |