# HG changeset patch # User Pierre-Yves David # Date 2022-01-28 13:23:49 # Node ID 10407e8e3807838a95204bee6a00d012611f5ac5 # Parent 937998e43e93d844f55c470f504d9daa1afcac31 merge: break up a not-so-one-liner for readability Differential Revision: https://phab.mercurial-scm.org/D12102 diff --git a/mercurial/merge.py b/mercurial/merge.py --- a/mercurial/merge.py +++ b/mercurial/merge.py @@ -336,10 +336,9 @@ def _checkcollision(repo, wmf, mresult): for f in pmmf: fold = util.normcase(f) if fold in foldmap: - raise error.StateError( - _(b"case-folding collision between %s and %s") - % (f, foldmap[fold]) - ) + msg = _(b"case-folding collision between %s and %s") + msg %= (f, foldmap[fold]) + raise error.StateError(msg) foldmap[fold] = f # check case-folding of directories