# HG changeset patch # User Martin von Zweigbergk # Date 2019-03-16 05:18:35 # Node ID 21cc92fea2aaf6f36f79a45446ce0e9d1347902c # Parent 42e2c7c52e1b0c4f506885e5d9ecab1e13edcf18 context: use wdirhex constant instead of calculating it Differential Revision: https://phab.mercurial-scm.org/D6143 diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -21,7 +21,7 @@ from .node import ( nullrev, short, wdirfilenodeids, - wdirid, + wdirhex, ) from . import ( dagop, @@ -1324,7 +1324,7 @@ class workingctx(committablectx): return self._repo.dirstate[key] not in "?r" def hex(self): - return hex(wdirid) + return wdirhex @propertycache def _parents(self):