Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 16104:5535e66b3016
debugrevspec: mention --verbose to print the parsed tree
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Fri, 10 Feb 2012 13:50:13 +0100 |
parents | 8dc573a9c5e5 |
children | cb756482c1aa |
comparison
equal
deleted
inserted
replaced
16102:50682c07a8d0 | 16104:5535e66b3016 |
---|---|
2152 ui.write('deltas against p2 : ' + fmt % pcfmt(nump2, numdeltas)) | 2152 ui.write('deltas against p2 : ' + fmt % pcfmt(nump2, numdeltas)) |
2153 ui.write('deltas against other : ' + fmt % pcfmt(numother, numdeltas)) | 2153 ui.write('deltas against other : ' + fmt % pcfmt(numother, numdeltas)) |
2154 | 2154 |
2155 @command('debugrevspec', [], ('REVSPEC')) | 2155 @command('debugrevspec', [], ('REVSPEC')) |
2156 def debugrevspec(ui, repo, expr): | 2156 def debugrevspec(ui, repo, expr): |
2157 '''parse and apply a revision specification''' | 2157 """parse and apply a revision specification |
2158 | |
2159 Use --verbose to print the parsed tree before and after aliases | |
2160 expansion. | |
2161 """ | |
2158 if ui.verbose: | 2162 if ui.verbose: |
2159 tree = revset.parse(expr)[0] | 2163 tree = revset.parse(expr)[0] |
2160 ui.note(tree, "\n") | 2164 ui.note(tree, "\n") |
2161 newtree = revset.findaliases(ui, tree) | 2165 newtree = revset.findaliases(ui, tree) |
2162 if newtree != tree: | 2166 if newtree != tree: |