Patchwork D7320: revlog: clean up the node of all revision stripped in the C code

login
register
mail settings
Submitter phabricator
Date Nov. 9, 2019, 1:56 a.m.
Message ID <1fc358b7e92f0c465e24a03efad37fd2@localhost.localdomain>
Download mbox | patch
Permalink /patch/43013/
State Not Applicable
Headers show

Comments

phabricator - Nov. 9, 2019, 1:56 a.m.
Closed by commit rHG67e15214213b: revlog: clean up the node of all revision stripped in the C code (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7320?vs=17736&id=17833

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7320/new/

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

AFFECTED FILES
  mercurial/cext/revlog.c

CHANGE DETAILS




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

Patch

diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c
--- a/mercurial/cext/revlog.c
+++ b/mercurial/cext/revlog.c
@@ -2489,7 +2489,7 @@ 
 		if (self->ntinitialized) {
 			Py_ssize_t i;
 
-			for (i = start + 1; i < self->length; i++) {
+			for (i = start; i < self->length; i++) {
 				const char *node = index_node_existing(self, i);
 				if (node == NULL)
 					return -1;