diff mercurial/cmdutil.py @ 12925:6eab8f0df2ca

commands: add revset support to most commands
author Matt Mackall <mpm@selenic.com>
date Thu, 04 Nov 2010 16:21:28 -0500
parents 4ff61287bde2
children 6e0a9f9227bd
line wrap: on
line diff
--- 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)