# HG changeset patch # User Benoit Boissinot # Date 1159622159 -7200 # Node ID 7240f9e47144bfa5f844ddd7dd6aee7d72c72cb6 # Parent 9e8dd6114a4e210e71c5f6ace4a9e4aee5818a0e correctly find the type of 'id' in revlog.lookup diff -r 9e8dd6114a4e -r 7240f9e47144 mercurial/revlog.py --- 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: