# HG changeset patch # User Benoit Boissinot # Date 1159622159 -7200 # Node ID 7240f9e47144bfa5f844ddd7dd6aee7d72c72cb6 # Parent 9e8dd6114a4e210e71c5f6ace4a9e4aee5818a0e correctly find the type of 'id' in revlog.lookup diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -751,7 +751,7 @@ class revlog(object): - 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: