[Updated] D10924: dirstate: split a not-so-one-liner
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sat Jul 3 19:28:07 UTC 2021
Closed by commit rHGf93298a48da1: dirstate: split a not-so-one-liner (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/D10924?vs=28725&id=28756
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10924/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10924
AFFECTED FILES
mercurial/dirstate.py
CHANGE DETAILS
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -433,9 +433,9 @@
if state == b'a' or oldstate == b'r':
scmutil.checkfilename(f)
if self._map.hastrackeddir(f):
- raise error.Abort(
- _(b'directory %r already in dirstate') % pycompat.bytestr(f)
- )
+ msg = _(b'directory %r already in dirstate')
+ msg %= pycompat.bytestr(f)
+ raise error.Abort(msg)
# shadows
for d in pathutil.finddirs(f):
if self._map.hastrackeddir(d):
To: marmoute, #hg-reviewers, SimonSapin, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210703/9972f8f0/attachment-0002.html>
More information about the Mercurial-patches
mailing list