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.
--- 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: