[Updated] D12108: merge: break up a not-so-one-liner for readability
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Fri Feb 4 10:29:42 UTC 2022
Closed by commit rHGbca57b01518f: merge: break up a not-so-one-liner for readability (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12108?vs=32004&id=32066
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12108/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12108
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
@@ -1927,10 +1927,9 @@
raise error.Abort(m_a)
elif pas == [p1]:
if not mergeancestor and wc.branch() == p2.branch():
- raise error.Abort(
- _(b"nothing to merge"),
- hint=_(b"use 'hg update' or check 'hg heads'"),
- )
+ msg = _(b"nothing to merge")
+ hint = _(b"use 'hg update' or check 'hg heads'")
+ raise error.Abort(msg, hint=hint)
if not force and (wc.files() or wc.deleted()):
raise error.StateError(
_(b"uncommitted changes"),
To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220204/9bae4956/attachment-0002.html>
More information about the Mercurial-patches
mailing list