revlog: don't handle long for revision matching
authorMatt Mackall <mpm@selenic.com>
Mon, 21 May 2012 16:36:09 -0500
changeset 16762 93f8b9565257
parent 16761 07741a5d6608
child 16763 c38f96ab63cb
revlog: don't handle long for revision matching The underlying C code doesn't support indexing by longs, there are no legitimate reasons to use a long, and longs should generally be converted to ints at a higher level by context's constructor.
mercurial/revlog.py
--- a/mercurial/revlog.py	Mon May 21 16:35:27 2012 -0500
+++ b/mercurial/revlog.py	Mon May 21 16:36:09 2012 -0500
@@ -722,7 +722,7 @@
         return self.node(c)
 
     def _match(self, id):
-        if isinstance(id, (long, int)):
+        if isinstance(id, int):
             # rev
             return self.node(id)
         if len(id) == 20: