context: use wdirhex constant instead of calculating it
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 15 Mar 2019 22:18:35 -0700
changeset 41967 21cc92fea2aa
parent 41966 42e2c7c52e1b
child 41968 57264906a996
context: use wdirhex constant instead of calculating it Differential Revision: https://phab.mercurial-scm.org/D6143
mercurial/context.py
--- a/mercurial/context.py	Wed Mar 13 11:30:04 2019 -0700
+++ b/mercurial/context.py	Fri Mar 15 22:18:35 2019 -0700
@@ -21,7 +21,7 @@
     nullrev,
     short,
     wdirfilenodeids,
-    wdirid,
+    wdirhex,
 )
 from . import (
     dagop,
@@ -1324,7 +1324,7 @@
         return self._repo.dirstate[key] not in "?r"
 
     def hex(self):
-        return hex(wdirid)
+        return wdirhex
 
     @propertycache
     def _parents(self):