[Request] [+ ] D8606: context: fix creation of a ProgrammingError to not use non-existent field
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Thu Jun 4 04:53:22 UTC 2020
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
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
@@ -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: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200604/174bd436/attachment.html>
More information about the Mercurial-patches
mailing list