D12105: merge: break up a not-so-one-liner for readability
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sat Jan 29 14:14:11 UTC 2022
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D12105
AFFECTED FILES
mercurial/merge.py
CHANGE DETAILS
diff --git a/mercurial/merge.py b/mercurial/merge.py
--- a/mercurial/merge.py
+++ b/mercurial/merge.py
@@ -537,9 +537,8 @@
hint = _(b'merging in the other direction may work')
raise error.Abort(msg % f, hint=hint)
else:
- raise error.StateError(
- _(b'conflict in file \'%s\' is outside narrow clone') % f
- )
+ msg = _(b'conflict in file \'%s\' is outside narrow clone')
+ raise error.StateError(msg % f)
class mergeresult(object):
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list