Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/localrepo.py @ 3578:3b4e00cba57a
Define and use nullrev (revision of nullid) instead of -1.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 29 Oct 2006 10:53:51 +0100 |
parents | 7f7425306925 |
children | 5be434785317 |
line wrap: on
line diff
--- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -332,10 +332,10 @@ class localrepository(repo.repository): node, label = l.rstrip().split(" ", 1) partial[label] = bin(node) else: # invalidate the cache - last, lrev = nullid, -1 + last, lrev = nullid, nullrev f.close() except IOError: - last, lrev = nullid, -1 + last, lrev = nullid, nullrev return partial, last, lrev def _writebranchcache(self, branches, tip, tiprev):