mercurial/cmdutil.py
changeset 12925 6eab8f0df2ca
parent 12900 4ff61287bde2
child 12973 6e0a9f9227bd
--- a/mercurial/cmdutil.py	Thu Nov 04 18:19:10 2010 +0100
+++ b/mercurial/cmdutil.py	Thu Nov 04 16:21:28 2010 -0500
@@ -147,6 +147,11 @@
         # attempt to parse old-style ranges first to deal with
         # things like old-tag which contain query metacharacters
         try:
+            if isinstance(spec, int):
+                seen.add(spec)
+                l.append(spec)
+                continue
+
             if revrangesep in spec:
                 start, end = spec.split(revrangesep, 1)
                 start = revfix(repo, start, 0)