D3453: revlog: use radix tree also for matching keys shorter than 4 hex digits

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Mon May 7 08:54:21 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG92ed344a9e64: revlog: use radix tree also for matching keys shorter than 4 hex digits (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3453?vs=8470&id=8479

REVISION DETAIL
  https://phab.mercurial-scm.org/D3453

AFFECTED FILES
  mercurial/cext/revlog.c

CHANGE DETAILS

diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c
--- a/mercurial/cext/revlog.c
+++ b/mercurial/cext/revlog.c
@@ -1251,7 +1251,7 @@
 	if (!PyArg_ParseTuple(args, PY23("s#", "y#"), &node, &nodelen))
 		return NULL;
 
-	if (nodelen < 4) {
+	if (nodelen < 1) {
 		PyErr_SetString(PyExc_ValueError, "key too short");
 		return NULL;
 	}



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list