[Updated] D8606: context: fix creation of ProgrammingError to not use non-existent field
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Thu Jun 4 15:03:18 UTC 2020
martinvonz retitled this revision from "context: fix creation of a ProgrammingError to not use non-existent field" to "context: fix creation of ProgrammingError to not use non-existent field".
martinvonz updated this revision to Diff 21551.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8606?vs=21549&id=21551
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8606/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8606
AFFECTED FILES
mercurial/context.py
CHANGE DETAILS
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -2322,7 +2322,7 @@
return self._cache[path][b'flags']
else:
raise error.ProgrammingError(
- b"No such file or directory: %s" % self._path
+ b"No such file or directory: %s" % path
)
else:
return self._wrappedctx[path].flags()
@@ -2439,7 +2439,7 @@
return len(self._cache[path][b'data'])
else:
raise error.ProgrammingError(
- b"No such file or directory: %s" % self._path
+ b"No such file or directory: %s" % path
)
return self._wrappedctx[path].size()
To: martinvonz, #hg-reviewers
Cc: mjacob, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200604/b50433ff/attachment-0002.html>
More information about the Mercurial-patches
mailing list