D6143: context: use wdirhex constant instead of calculating it

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Sat Mar 16 19:57:35 EDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG21cc92fea2aa: context: use wdirhex constant instead of calculating it (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6143?vs=14519&id=14526

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

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -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):



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


More information about the Mercurial-devel mailing list