changeset 16762:93f8b9565257

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.
author Matt Mackall <mpm@selenic.com>
date Mon, 21 May 2012 16:36:09 -0500
parents 07741a5d6608
children c38f96ab63cb
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: