##// END OF EJS Templates
debugrename: don't require at least one path...
Martin von Zweigbergk -
r41839:ea72da71 default
parent child Browse files
Show More
@@ -2010,13 +2010,13 b' def debugrebuildfncache(ui, repo):'
2010
2010
2011 @command('debugrename',
2011 @command('debugrename',
2012 [('r', 'rev', '', _('revision to debug'), _('REV'))],
2012 [('r', 'rev', '', _('revision to debug'), _('REV'))],
2013 _('[-r REV] FILE'))
2013 _('[-r REV] [FILE]...'))
2014 def debugrename(ui, repo, file1, *pats, **opts):
2014 def debugrename(ui, repo, *pats, **opts):
2015 """dump rename information"""
2015 """dump rename information"""
2016
2016
2017 opts = pycompat.byteskwargs(opts)
2017 opts = pycompat.byteskwargs(opts)
2018 ctx = scmutil.revsingle(repo, opts.get('rev'))
2018 ctx = scmutil.revsingle(repo, opts.get('rev'))
2019 m = scmutil.match(ctx, (file1,) + pats, opts)
2019 m = scmutil.match(ctx, pats, opts)
2020 for abs in ctx.walk(m):
2020 for abs in ctx.walk(m):
2021 fctx = ctx[abs]
2021 fctx = ctx[abs]
2022 o = fctx.filelog().renamed(fctx.filenode())
2022 o = fctx.filelog().renamed(fctx.filenode())
General Comments 0
You need to be logged in to leave comments. Login now