equal
deleted
inserted
replaced
2931 |
2931 |
2932 Use --verbose to print the parsed tree before and after aliases |
2932 Use --verbose to print the parsed tree before and after aliases |
2933 expansion. |
2933 expansion. |
2934 """ |
2934 """ |
2935 if ui.verbose: |
2935 if ui.verbose: |
2936 tree = revset.parse(expr) |
2936 tree = revset.parse(expr, lookup=repo.__contains__) |
2937 ui.note(revset.prettyformat(tree), "\n") |
2937 ui.note(revset.prettyformat(tree), "\n") |
2938 newtree = revset.findaliases(ui, tree) |
2938 newtree = revset.findaliases(ui, tree) |
2939 if newtree != tree: |
2939 if newtree != tree: |
2940 ui.note(revset.prettyformat(newtree), "\n") |
2940 ui.note(revset.prettyformat(newtree), "\n") |
2941 tree = newtree |
2941 tree = newtree |
2943 if newtree != tree: |
2943 if newtree != tree: |
2944 ui.note(revset.prettyformat(newtree), "\n") |
2944 ui.note(revset.prettyformat(newtree), "\n") |
2945 if opts["optimize"]: |
2945 if opts["optimize"]: |
2946 weight, optimizedtree = revset.optimize(newtree, True) |
2946 weight, optimizedtree = revset.optimize(newtree, True) |
2947 ui.note("* optimized:\n", revset.prettyformat(optimizedtree), "\n") |
2947 ui.note("* optimized:\n", revset.prettyformat(optimizedtree), "\n") |
2948 func = revset.match(ui, expr) |
2948 func = revset.match(ui, expr, repo) |
2949 revs = func(repo) |
2949 revs = func(repo) |
2950 if ui.verbose: |
2950 if ui.verbose: |
2951 ui.note("* set:\n", revset.prettyformatset(revs), "\n") |
2951 ui.note("* set:\n", revset.prettyformatset(revs), "\n") |
2952 for c in revs: |
2952 for c in revs: |
2953 ui.write("%s\n" % c) |
2953 ui.write("%s\n" % c) |