D3530: revlog: handle error from node lookup
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Fri May 11 22:54:28 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG312d7d14d44e: revlog: handle error from node lookup (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3530?vs=8636&id=8647
REVISION DETAIL
https://phab.mercurial-scm.org/D3530
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
@@ -1285,7 +1285,9 @@
if (v < 0) {
const char *n;
v = -(v + 1);
- n = index_node(self, v);
+ n = index_node_existing(self, v);
+ if (n == NULL)
+ return -3;
if (memcmp(node, n, 20) != 0)
/*
* Found a unique prefix, but it wasn't for the
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list