Mercurial > public > mercurial-scm > hg-stable
diff mercurial/debugcommands.py @ 32816:bcca357bb792
debugrevspec: add option to suppress list of computed revisions
Test will be added later.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 10 Jun 2017 20:14:23 +0900 |
parents | f78d210f599d |
children | 50586a0a946f |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Sat Jun 10 20:03:35 2017 +0900 +++ b/mercurial/debugcommands.py Sat Jun 10 20:14:23 2017 +0900 @@ -1901,6 +1901,7 @@ @command('debugrevspec', [('', 'optimize', None, _('print parsed tree after optimizing (DEPRECATED)')), + ('', 'show-revs', True, _('print list of result revisions (default)')), ('s', 'show-set', None, _('print internal representation of result set')), ('p', 'show-stage', [], _('print parsed tree at the given stage'), _('NAME')), @@ -1914,6 +1915,9 @@ Use -p/--show-stage option to print the parsed tree at the given stages. Use -p all to print tree at every stage. + Use --no-show-revs option with -s or -p to print only the set + representation or the parsed tree respectively. + Use --verify-optimized to compare the optimized result with the unoptimized one. Returns 1 if the optimized result differs. """ @@ -1989,6 +1993,8 @@ revs = func(repo) if opts['show_set'] or (opts['show_set'] is None and ui.verbose): ui.write(("* set:\n"), smartset.prettyformat(revs), "\n") + if not opts['show_revs']: + return for c in revs: ui.write("%s\n" % c)