Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 6748:c6cc35a3d1de
make debugrename work on p1, not tip
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 26 Jun 2008 14:35:50 -0500 |
parents | f6c00b17387c |
children | 51b0e799352f |
comparison
equal
deleted
inserted
replaced
6747:f6c00b17387c | 6748:c6cc35a3d1de |
---|---|
908 return problems | 908 return problems |
909 | 909 |
910 def debugrename(ui, repo, file1, *pats, **opts): | 910 def debugrename(ui, repo, file1, *pats, **opts): |
911 """dump rename information""" | 911 """dump rename information""" |
912 | 912 |
913 ctx = repo[opts.get('rev', 'tip')] | 913 ctx = repo[opts.get('rev')] |
914 m = cmdutil.match(repo, (file1,) + pats, opts) | 914 m = cmdutil.match(repo, (file1,) + pats, opts) |
915 for abs in repo.walk(m, ctx.node()): | 915 for abs in repo.walk(m, ctx.node()): |
916 fctx = ctx.filectx(abs) | 916 fctx = ctx.filectx(abs) |
917 o = fctx.filelog().renamed(fctx.filenode()) | 917 o = fctx.filelog().renamed(fctx.filenode()) |
918 rel = m.rel(abs) | 918 rel = m.rel(abs) |