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