# HG changeset patch # User Matt Mackall # Date 1337636169 18000 # Node ID 93f8b956525705d3c8253ff280d3ff877731afa7 # Parent 07741a5d6608dcd606696473f8e23a26467a2380 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. diff -r 07741a5d6608 -r 93f8b9565257 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: