make debugrename work on p1, not tip
authorMatt Mackall <mpm@selenic.com>
Thu, 26 Jun 2008 14:35:50 -0500
changeset 6748 c6cc35a3d1de
parent 6747 f6c00b17387c
child 6749 51b0e799352f
make debugrename work on p1, not tip
mercurial/commands.py
--- a/mercurial/commands.py	Thu Jun 26 14:35:46 2008 -0500
+++ b/mercurial/commands.py	Thu Jun 26 14:35:50 2008 -0500
@@ -910,7 +910,7 @@
 def debugrename(ui, repo, file1, *pats, **opts):
     """dump rename information"""
 
-    ctx = repo[opts.get('rev', 'tip')]
+    ctx = repo[opts.get('rev')]
     m = cmdutil.match(repo, (file1,) + pats, opts)
     for abs in repo.walk(m, ctx.node()):
         fctx = ctx.filectx(abs)