correctly find the type of 'id' in revlog.lookup
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sat, 30 Sep 2006 15:15:59 +0200
changeset 3210 7240f9e47144
parent 3209 9e8dd6114a4e
child 3211 9a478efc16cc
child 3233 3fd098e0902d
correctly find the type of 'id' in revlog.lookup
mercurial/revlog.py
--- 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: