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 3fd098e0902d
child 3219 9a478efc16cc
correctly find the type of 'id' in revlog.lookup
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: