diff mercurial/revlog.py @ 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 4fe41a9e4591
children 9061613c1593
line wrap: on
line diff
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -751,7 +751,7 @@ class revlog(object):
             - 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: