comparison tests/test-revset.t @ 36582:27911e0fb50e

tests: add missing b prefixes and fix a %s to %d in test-revset.t # skip-blame just b prefixes and a %d instead of %s Differential Revision: https://phab.mercurial-scm.org/D2558
author Augie Fackler <augie@google.com>
date Fri, 02 Mar 2018 11:38:16 -0500
parents 28551d4c5ee8
children edf736c3c064
comparison
equal deleted inserted replaced
36581:b755eab7e677 36582:27911e0fb50e
53 > if opts['bin']: 53 > if opts['bin']:
54 > args = map(nodemod.bin, args) 54 > args = map(nodemod.bin, args)
55 > expr = revsetlang.formatspec(fmt, list(args)) 55 > expr = revsetlang.formatspec(fmt, list(args))
56 > if ui.verbose: 56 > if ui.verbose:
57 > tree = revsetlang.parse(expr, lookup=repo.__contains__) 57 > tree = revsetlang.parse(expr, lookup=repo.__contains__)
58 > ui.note(revsetlang.prettyformat(tree), "\n") 58 > ui.note(revsetlang.prettyformat(tree), b"\n")
59 > if opts["optimize"]: 59 > if opts["optimize"]:
60 > opttree = revsetlang.optimize(revsetlang.analyze(tree)) 60 > opttree = revsetlang.optimize(revsetlang.analyze(tree))
61 > ui.note(b"* optimized:\n", revsetlang.prettyformat(opttree), 61 > ui.note(b"* optimized:\n", revsetlang.prettyformat(opttree),
62 > b"\n") 62 > b"\n")
63 > func = revset.match(ui, expr, repo) 63 > func = revset.match(ui, expr, repo)
64 > revs = func(repo) 64 > revs = func(repo)
65 > if ui.verbose: 65 > if ui.verbose:
66 > ui.note(b"* set:\n", smartset.prettyformat(revs), b"\n") 66 > ui.note(b"* set:\n", smartset.prettyformat(revs), b"\n")
67 > for c in revs: 67 > for c in revs:
68 > ui.write(b"%s\n" % c) 68 > ui.write(b"%d\n" % c)
69 > EOF 69 > EOF
70 $ cat <<EOF >> $HGRCPATH 70 $ cat <<EOF >> $HGRCPATH
71 > [extensions] 71 > [extensions]
72 > debugrevlistspec = $TESTTMP/debugrevlistspec.py 72 > debugrevlistspec = $TESTTMP/debugrevlistspec.py
73 > EOF 73 > EOF