diff -r 9f840d99054c -r af854b1b36f8 mercurial/node.py --- a/mercurial/node.py Sat Aug 20 18:15:19 2016 +0900 +++ b/mercurial/node.py Fri Aug 19 18:26:04 2016 +0900 @@ -29,6 +29,7 @@ # (they are experimental, so don't add too many dependencies on them) wdirrev = 0x7fffffff wdirid = b"\xff" * 20 +wdirhex = hex(wdirid) def short(node): return hex(node[:6])