Show More
@@ -433,8 +433,9 b' def getrevstofix(ui, repo, opts):' | |||||
433 | if not (len(revs) == 1 and wdirrev in revs): |
|
433 | if not (len(revs) == 1 and wdirrev in revs): | |
434 | cmdutil.checkunfinished(repo) |
|
434 | cmdutil.checkunfinished(repo) | |
435 | rewriteutil.precheck(repo, revs, b'fix') |
|
435 | rewriteutil.precheck(repo, revs, b'fix') | |
436 | if wdirrev in revs and list( |
|
436 | if ( | |
437 | mergestatemod.mergestate.read(repo).unresolved() |
|
437 | wdirrev in revs | |
|
438 | and mergestatemod.mergestate.read(repo).unresolvedcount() | |||
438 | ): |
|
439 | ): | |
439 | raise error.Abort(b'unresolved conflicts', hint=b"use 'hg resolve'") |
|
440 | raise error.Abort(b'unresolved conflicts', hint=b"use 'hg resolve'") | |
440 | if not revs: |
|
441 | if not revs: |
@@ -6082,7 +6082,7 b' def resolve(ui, repo, *pats, **opts):' | |||||
6082 | if hint: |
|
6082 | if hint: | |
6083 | ui.warn(hint) |
|
6083 | ui.warn(hint) | |
6084 |
|
6084 | |||
6085 |
unresolvedf = |
|
6085 | unresolvedf = ms.unresolvedcount() | |
6086 | if not unresolvedf: |
|
6086 | if not unresolvedf: | |
6087 | ui.status(_(b'(no more unresolved files)\n')) |
|
6087 | ui.status(_(b'(no more unresolved files)\n')) | |
6088 | cmdutil.checkafterresolved(repo) |
|
6088 | cmdutil.checkafterresolved(repo) |
@@ -1920,7 +1920,7 b' def _update(' | |||||
1920 | if len(pl) > 1: |
|
1920 | if len(pl) > 1: | |
1921 | raise error.Abort(_(b"outstanding uncommitted merge")) |
|
1921 | raise error.Abort(_(b"outstanding uncommitted merge")) | |
1922 | ms = wc.mergestate() |
|
1922 | ms = wc.mergestate() | |
1923 |
if |
|
1923 | if ms.unresolvedcount(): | |
1924 | raise error.Abort( |
|
1924 | raise error.Abort( | |
1925 | _(b"outstanding merge conflicts"), |
|
1925 | _(b"outstanding merge conflicts"), | |
1926 | hint=_(b"use 'hg resolve' to resolve"), |
|
1926 | hint=_(b"use 'hg resolve' to resolve"), |
@@ -13,7 +13,7 b' from . import error' | |||||
13 |
|
13 | |||
14 |
|
14 | |||
15 | def checkunresolved(ms): |
|
15 | def checkunresolved(ms): | |
16 |
if |
|
16 | if ms.unresolvedcount(): | |
17 | raise error.StateError( |
|
17 | raise error.StateError( | |
18 | _(b"unresolved merge conflicts (see 'hg help resolve')") |
|
18 | _(b"unresolved merge conflicts (see 'hg help resolve')") | |
19 | ) |
|
19 | ) |
@@ -812,7 +812,7 b' def unshelvecontinue(ui, repo, state, op' | |||||
812 | with repo.lock(): |
|
812 | with repo.lock(): | |
813 | checkparents(repo, state) |
|
813 | checkparents(repo, state) | |
814 | ms = mergestatemod.mergestate.read(repo) |
|
814 | ms = mergestatemod.mergestate.read(repo) | |
815 |
if |
|
815 | if ms.unresolvedcount(): | |
816 | raise error.Abort( |
|
816 | raise error.Abort( | |
817 | _(b"unresolved conflicts, can't continue"), |
|
817 | _(b"unresolved conflicts, can't continue"), | |
818 | hint=_(b"see 'hg resolve', then 'hg unshelve --continue'"), |
|
818 | hint=_(b"see 'hg resolve', then 'hg unshelve --continue'"), |
General Comments 0
You need to be logged in to leave comments.
Login now