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

login
register
mail settings
Submitter phabricator
Date March 16, 2019, 5:21 a.m.
Message ID <differential-rev-PHID-DREV-kshsmdlncsbjxnrl4zzl-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/39281/
State Superseded
Headers show

Comments

phabricator - March 16, 2019, 5:21 a.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
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):