Mercurial > hg
changeset 41690:ea72da71ad69
debugrename: don't require at least one path
I don't see a reason that it needs to require a path. Most commands
match everything when no paths are given, but here you have to do
something like `hg debugrename -r . .` (from the repo root) to match
everything.
Differential Revision: https://phab.mercurial-scm.org/D5948
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 12 Feb 2019 13:42:42 -0800 |
parents | f63ba0b9d06f |
children | 09814946cc6a |
files | mercurial/debugcommands.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Tue Feb 12 11:27:27 2019 -0800 +++ b/mercurial/debugcommands.py Tue Feb 12 13:42:42 2019 -0800 @@ -2010,13 +2010,13 @@ @command('debugrename', [('r', 'rev', '', _('revision to debug'), _('REV'))], - _('[-r REV] FILE')) -def debugrename(ui, repo, file1, *pats, **opts): + _('[-r REV] [FILE]...')) +def debugrename(ui, repo, *pats, **opts): """dump rename information""" opts = pycompat.byteskwargs(opts) ctx = scmutil.revsingle(repo, opts.get('rev')) - m = scmutil.match(ctx, (file1,) + pats, opts) + m = scmutil.match(ctx, pats, opts) for abs in ctx.walk(m): fctx = ctx[abs] o = fctx.filelog().renamed(fctx.filenode())