[Updated] D12103: merge: break up a not-so-one-liner for readability
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Fri Feb 4 10:28:47 UTC 2022
Closed by commit rHGd8577d00c023: 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/D12103?vs=31999&id=32061
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12103/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12103
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
@@ -346,10 +346,9 @@
for fold, f in sorted(foldmap.items()):
if fold.startswith(foldprefix) and not f.startswith(unfoldprefix):
# the folded prefix matches but actual casing is different
- raise error.StateError(
- _(b"case-folding collision between %s and directory of %s")
- % (lastfull, f)
- )
+ msg = _(b"case-folding collision between %s and directory of %s")
+ msg %= (lastfull, f)
+ raise error.StateError(msg)
foldprefix = fold + b'/'
unfoldprefix = f + b'/'
lastfull = f
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/416d46e5/attachment-0002.html>
More information about the Mercurial-patches
mailing list