Mercurial > hg-stable
changeset 3210:7240f9e47144
correctly find the type of 'id' in revlog.lookup
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sat, 30 Sep 2006 15:15:59 +0200 |
parents | 9e8dd6114a4e |
children | 3fd098e0902d 9a478efc16cc |
files | mercurial/revlog.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Sat Sep 30 12:34:31 2006 +0200 +++ b/mercurial/revlog.py Sat Sep 30 15:15:59 2006 +0200 @@ -751,7 +751,7 @@ - revision number or str(revision number) - nodeid or subset of hex nodeid """ - if type(id) == type(0): + if isinstance(id, (long, int)): # rev return self.node(id) try: