[Updated] D8606: context: fix creation of ProgrammingError to not use non-existent field

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Jun 9 10:10:29 UTC 2020


Closed by commit rHGb2e5ec0c596b: context: fix creation of ProgrammingError to not use non-existent field (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8606?vs=21551&id=21575

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, mjacob, pulkit
Cc: mjacob, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200609/8af95a04/attachment-0002.html>


More information about the Mercurial-patches mailing list