mercurial/cext/revlog.c
changeset 37858 92ed344a9e64
parent 36623 a472a897c340
child 37860 a91f31a1e281
--- a/mercurial/cext/revlog.c	Fri Apr 06 12:55:32 2018 -0700
+++ b/mercurial/cext/revlog.c	Sun Apr 29 14:29:09 2018 -0700
@@ -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;
 	}