changeset 41967:21cc92fea2aa

context: use wdirhex constant instead of calculating it Differential Revision: https://phab.mercurial-scm.org/D6143
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 15 Mar 2019 22:18:35 -0700
parents 42e2c7c52e1b
children 57264906a996
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):