changeset 25738:04d26a3c96fd

workingctx: use node.wdirid constant
author Yuya Nishihara <yuya@tcha.org>
date Mon, 22 Jun 2015 22:05:10 +0900
parents 1a5211f2f87f
children 3dabc9b7494a
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Mon Jun 22 22:01:33 2015 +0900
+++ b/mercurial/context.py	Mon Jun 22 22:05:10 2015 +0900
@@ -5,7 +5,7 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-from node import nullid, nullrev, short, hex, bin
+from node import nullid, nullrev, wdirid, short, hex, bin
 from i18n import _
 import mdiff, error, util, scmutil, subrepo, patch, encoding, phases
 import match as matchmod
@@ -1339,7 +1339,7 @@
         return self._repo.dirstate[key] not in "?r"
 
     def hex(self):
-        return "ff" * 20
+        return hex(wdirid)
 
     @propertycache
     def _parents(self):