##// END OF EJS Templates
debugrevspec: add option to suppress list of computed revisions...
Yuya Nishihara -
r32796:bcca357b default
parent child Browse files
Show More
@@ -1901,6 +1901,7 b' def debugrevlog(ui, repo, file_=None, **'
1901 1901 @command('debugrevspec',
1902 1902 [('', 'optimize', None,
1903 1903 _('print parsed tree after optimizing (DEPRECATED)')),
1904 ('', 'show-revs', True, _('print list of result revisions (default)')),
1904 1905 ('s', 'show-set', None, _('print internal representation of result set')),
1905 1906 ('p', 'show-stage', [],
1906 1907 _('print parsed tree at the given stage'), _('NAME')),
@@ -1914,6 +1915,9 b' def debugrevspec(ui, repo, expr, **opts)'
1914 1915 Use -p/--show-stage option to print the parsed tree at the given stages.
1915 1916 Use -p all to print tree at every stage.
1916 1917
1918 Use --no-show-revs option with -s or -p to print only the set
1919 representation or the parsed tree respectively.
1920
1917 1921 Use --verify-optimized to compare the optimized result with the unoptimized
1918 1922 one. Returns 1 if the optimized result differs.
1919 1923 """
@@ -1989,6 +1993,8 b' def debugrevspec(ui, repo, expr, **opts)'
1989 1993 revs = func(repo)
1990 1994 if opts['show_set'] or (opts['show_set'] is None and ui.verbose):
1991 1995 ui.write(("* set:\n"), smartset.prettyformat(revs), "\n")
1996 if not opts['show_revs']:
1997 return
1992 1998 for c in revs:
1993 1999 ui.write("%s\n" % c)
1994 2000
@@ -281,7 +281,7 b' Show all commands + options'
281 281 debugrebuildfncache:
282 282 debugrename: rev
283 283 debugrevlog: changelog, manifest, dir, dump
284 debugrevspec: optimize, show-set, show-stage, no-optimized, verify-optimized
284 debugrevspec: optimize, show-revs, show-set, show-stage, no-optimized, verify-optimized
285 285 debugsetparents:
286 286 debugsub: rev
287 287 debugsuccessorssets:
General Comments 0
You need to be logged in to leave comments. Login now