Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.py @ 3582:9fb7d3a05882
revlog.size() fix handling of rev == -1
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sun, 29 Oct 2006 14:41:14 +0100 |
parents | 3b4e00cba57a |
children | 8dbbe4dadb48 |
line wrap: on
line diff
--- a/mercurial/revlog.py Sun Oct 29 14:18:55 2006 +0100 +++ b/mercurial/revlog.py Sun Oct 29 14:41:14 2006 +0100 @@ -500,6 +500,8 @@ def size(self, rev): """return the length of the uncompressed text for a given revision""" + if rev == nullrev: + return 0 l = -1 if self.version != REVLOGV0: l = self.index[rev][2]