author | Eric Hopper <hopper@omnifarious.org> |
Tue, 18 Oct 2005 20:05:54 -0700 | |
changeset 1403 | bc3e66edb04c |
parent 1402 | 9d2c2e6b32b5 |
child 1404 | 67e20e27d8df |
--- a/mercurial/revlog.py Tue Oct 18 18:38:39 2005 -0700 +++ b/mercurial/revlog.py Tue Oct 18 20:05:54 2005 -0700 @@ -98,6 +98,8 @@ def __len__(self): return len(self.p.index) def load(self, pos): + if pos < 0: + pos += len(self.p.index) self.p.load(pos) return self.p.index[pos] def __getitem__(self, pos):