Patchwork D3987: context: use hex nodeid in error about filtered node

login
register
mail settings
Submitter phabricator
Date July 31, 2018, 12:05 p.m.
Message ID <6720ec94782a9a4cd927a4ecddc82613@localhost.localdomain>
Download mbox | patch
Permalink /patch/32978/
State Not Applicable
Headers show

Comments

phabricator - July 31, 2018, 12:05 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG545a3e6650cd: context: use hex nodeid in error about filtered node (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3987?vs=9672&id=9673

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

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -411,6 +411,7 @@ 
                     self._rev = repo.changelog.rev(changeid)
                     return
                 except error.FilteredLookupError:
+                    changeid = hex(changeid) # for the error message
                     raise
                 except LookupError:
                     # check if it might have come from damaged dirstate