Patchwork D6143: context: use wdirhex constant instead of calculating it

login
register
mail settings
Submitter phabricator
Date March 16, 2019, 11:57 p.m.
Message ID <d92b910801daefaa52e4578838556c83@localhost.localdomain>
Download mbox | patch
Permalink /patch/39299/
State Not Applicable
Headers show

Comments

phabricator - March 16, 2019, 11:57 p.m.
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




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

Patch

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):