Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 24458:7d87f672d069
debugrevspec: show nesting structure of smartsets if verbose
This shows how smartsets are constructed from the query. It will be somewhat
useful to track problems such as stack overflow.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 16 Mar 2015 18:36:53 +0900 |
parents | a05c6b400616 |
children | 0142b59f5743 |
comparison
equal
deleted
inserted
replaced
24457:c5022f3579b9 | 24458:7d87f672d069 |
---|---|
2927 ui.note(revset.prettyformat(newtree), "\n") | 2927 ui.note(revset.prettyformat(newtree), "\n") |
2928 if opts["optimize"]: | 2928 if opts["optimize"]: |
2929 weight, optimizedtree = revset.optimize(newtree, True) | 2929 weight, optimizedtree = revset.optimize(newtree, True) |
2930 ui.note("* optimized:\n", revset.prettyformat(optimizedtree), "\n") | 2930 ui.note("* optimized:\n", revset.prettyformat(optimizedtree), "\n") |
2931 func = revset.match(ui, expr) | 2931 func = revset.match(ui, expr) |
2932 for c in func(repo): | 2932 revs = func(repo) |
2933 if ui.verbose: | |
2934 ui.note("* set:\n", revset.prettyformatset(revs), "\n") | |
2935 for c in revs: | |
2933 ui.write("%s\n" % c) | 2936 ui.write("%s\n" % c) |
2934 | 2937 |
2935 @command('debugsetparents', [], _('REV1 [REV2]')) | 2938 @command('debugsetparents', [], _('REV1 [REV2]')) |
2936 def debugsetparents(ui, repo, rev1, rev2=None): | 2939 def debugsetparents(ui, repo, rev1, rev2=None): |
2937 """manually set the parents of the current working directory | 2940 """manually set the parents of the current working directory |