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

login
register
mail settings
Submitter Augie Fackler
Date March 12, 2017, 7:49 p.m.
Message ID <9b0c4bba327a1c1809fc.1489348194@augie-macbookair2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/19219/
State Accepted
Headers show

Comments

Augie Fackler - March 12, 2017, 7:49 p.m.
# HG changeset patch
# User Augie Fackler <augie@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.

Patch

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