Mercurial > public > mercurial-scm > hg
diff mercurial/debugcommands.py @ 45107:4a28f5e8408e
debugcommands: introduce new debugrequirements command
This for now just prints out the list of current requirements. In future this
will be helpful in reading requirements from couple of sources, and checking
which requirement comes from where.
Differential Revision: https://phab.mercurial-scm.org/D8632
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 14 Apr 2020 17:06:11 +0530 |
parents | d50d922ca02b |
children | 87047efbc6a6 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Tue Apr 14 16:43:54 2020 +0530 +++ b/mercurial/debugcommands.py Tue Apr 14 17:06:11 2020 +0530 @@ -2651,6 +2651,13 @@ ui.write(_(b"%s not renamed\n") % rel) +@command(b'debugrequires|debugrequirements', [], b'') +def debugrequirements(ui, repo): + """ print the current repo requirements """ + for r in sorted(repo.requirements): + ui.write(b"%s\n" % r) + + @command( b'debugrevlog', cmdutil.debugrevlogopts + [(b'd', b'dump', False, _(b'dump index data'))],