mercurial/commands.py
changeset 12618 0ae35296fbf4
parent 12613 f365aed7cc5b
child 12688 8c034a825cfe
--- a/mercurial/commands.py	Thu Oct 07 18:05:04 2010 -0500
+++ b/mercurial/commands.py	Thu Oct 07 18:24:29 2010 -0500
@@ -634,7 +634,7 @@
 
     Returns 0 on success.
     """
-    ctx = repo[opts.get('rev')]
+    ctx = cmdutil.revsingle(repo, opts.get('rev'))
     err = 1
     m = cmdutil.match(repo, (file1,) + pats, opts)
     for abs in ctx.walk(m):