D5117: storageutil: convert fileid to bytes to avoid cast to %s

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Tue Oct 16 12:11:22 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6994a8be3663: storageutil: convert fileid to bytes to avoid cast to %s (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5117?vs=12165&id=12169

REVISION DETAIL
  https://phab.mercurial-scm.org/D5117

AFFECTED FILES
  mercurial/utils/storageutil.py

CHANGE DETAILS

diff --git a/mercurial/utils/storageutil.py b/mercurial/utils/storageutil.py
--- a/mercurial/utils/storageutil.py
+++ b/mercurial/utils/storageutil.py
@@ -182,7 +182,8 @@
         try:
             return store.node(fileid)
         except IndexError:
-            raise error.LookupError(fileid, identifier, _('no match found'))
+            raise error.LookupError('%d' % fileid, identifier,
+                                    _('no match found'))
 
     if len(fileid) == 20:
         try:



To: indygreg, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list