[PATCH 05 of 12 py3] manifest: now that node.bin is available, use it directly

Augie Fackler raf at durin42.com
Sun Mar 12 15:49:54 EDT 2017


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1489303815 14400
#      Sun Mar 12 03:30:15 2017 -0400
# Node ID 9b0c4bba327a1c1809fc5e7da184c695561e272c
# Parent  65576cf9d641ace0f86c3b359cf9baa07c8a100d
manifest: now that node.bin is available, use it directly

Previously we were getting it through revlog, which is a little unusual.

diff --git a/mercurial/manifest.py b/mercurial/manifest.py
--- a/mercurial/manifest.py
+++ b/mercurial/manifest.py
@@ -38,9 +38,9 @@ def _parsev1(data):
         prev = l
         f, n = l.split('\0')
         if len(n) > 40:
-            yield f, revlog.bin(n[:40]), n[40:]
+            yield f, bin(n[:40]), n[40:]
         else:
-            yield f, revlog.bin(n), ''
+            yield f, bin(n), ''
 
 def _parsev2(data):
     metadataend = data.find('\n')


More information about the Mercurial-devel mailing list