author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
Mon, 17 Jul 2006 01:58:50 +0200 | |
changeset 2641 | 156fb1feab62 |
parent 2629 | a49534aac47d |
child 2642 | 6414ee2eb688 |
--- a/mercurial/revlog.py Sun Jul 16 16:40:24 2006 +0200 +++ b/mercurial/revlog.py Mon Jul 17 01:58:50 2006 +0200 @@ -746,10 +746,7 @@ if id in self.nodemap: return id if type(id) == type(0): - rev = id - if rev < 0: rev = self.count() + rev - if rev < 0 or rev >= self.count(): return None - return self.node(rev) + return self.node(id) try: rev = int(id) if str(rev) != id: raise ValueError