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

login
register
mail settings
Submitter phabricator
Date May 10, 2018, 1:05 p.m.
Message ID <f7729a668bbad7b8e30f6caee318fba9@localhost.localdomain>
Download mbox | patch
Permalink /patch/31452/
State Not Applicable
Headers show

Comments

phabricator - May 10, 2018, 1:05 p.m.
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




To: martinvonz, #hg-reviewers
Cc: 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
@@ -1243,7 +1243,7 @@ 
 			if (nt_insert(self, n, rev) == -1)
 				return -1;
 		}
-		self->ntrev = rev;
+		self->ntrev = -1;
 	}
 	return 0;
 }