Patchwork [1,of,2] revlog: correct comment about size of v0 index format

login
register
mail settings
Submitter Yuya Nishihara
Date Aug. 2, 2015, 7:35 a.m.
Message ID <4a526db25dcac847aa3a.1438500910@mimosa>
Download mbox | patch
Permalink /patch/10080/
State Accepted
Headers show

Comments

Yuya Nishihara - Aug. 2, 2015, 7:35 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1438445651 -32400
#      Sun Aug 02 01:14:11 2015 +0900
# Node ID 4a526db25dcac847aa3add1886c591a334601abf
# Parent  79f0cb97d7537a7c2948f8f9b0a89148825a3a1d
revlog: correct comment about size of v0 index format

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -100,9 +100,9 @@  def decompress(bin):
 #  4 bytes: compressed length
 #  4 bytes: base rev
 #  4 bytes: link rev
-# 32 bytes: parent 1 nodeid
-# 32 bytes: parent 2 nodeid
-# 32 bytes: nodeid
+# 20 bytes: parent 1 nodeid
+# 20 bytes: parent 2 nodeid
+# 20 bytes: nodeid
 indexformatv0 = ">4l20s20s20s"
 v0shaoffset = 56