D3498: revlog: use literal -1 instead of variable that always has that value

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Thu May 10 09:05:06 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG892592475094: revlog: use literal -1 instead of variable that always has that value (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3498?vs=8551&id=8610

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

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
@@ -1243,7 +1243,7 @@
 			if (nt_insert(self, n, rev) == -1)
 				return -1;
 		}
-		self->ntrev = rev;
+		self->ntrev = -1;
 	}
 	return 0;
 }



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


More information about the Mercurial-devel mailing list