# HG changeset patch # User Martin von Zweigbergk # Date 2018-05-05 04:31:34 # Node ID 8925924750942e596c30062a74eb32db9267412d # Parent 9c6d1d41b3e61117aeb920c3b5669205787f7b15 revlog: use literal -1 instead of variable that always has that value We were setting "ntrev" to "rev", but "rev" was always -1 at the end of the loop, so it's clearer to use a literal -1. Differential Revision: https://phab.mercurial-scm.org/D3498 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 @@ static int nt_populate(indexObject *self if (nt_insert(self, n, rev) == -1) return -1; } - self->ntrev = rev; + self->ntrev = -1; } return 0; }