Show More
@@ -16,7 +16,7 b'' | |||
|
16 | 16 | > return baseset() |
|
17 | 17 | > return baseset([3,3,2,2]) |
|
18 | 18 | > |
|
19 | > mercurial.revset.symbols['r3232'] = r3232 | |
|
19 | > mercurial.revset.symbols[b'r3232'] = r3232 | |
|
20 | 20 | > EOF |
|
21 | 21 | $ cat >> $HGRCPATH << EOF |
|
22 | 22 | > [extensions] |
@@ -47,8 +47,8 b" these predicates use '\\0' as a separator" | |||
|
47 | 47 | > cmdtable = {} |
|
48 | 48 | > command = registrar.command(cmdtable) |
|
49 | 49 | > @command(b'debugrevlistspec', |
|
50 | > [('', 'optimize', None, 'print parsed tree after optimizing'), | |
|
51 | > ('', 'bin', None, 'unhexlify arguments')]) | |
|
50 | > [(b'', b'optimize', None, b'print parsed tree after optimizing'), | |
|
51 | > (b'', b'bin', None, b'unhexlify arguments')]) | |
|
52 | 52 | > def debugrevlistspec(ui, repo, fmt, *args, **opts): |
|
53 | 53 | > if opts['bin']: |
|
54 | 54 | > args = map(nodemod.bin, args) |
@@ -58,14 +58,14 b" these predicates use '\\0' as a separator" | |||
|
58 | 58 | > ui.note(revsetlang.prettyformat(tree), "\n") |
|
59 | 59 | > if opts["optimize"]: |
|
60 | 60 | > opttree = revsetlang.optimize(revsetlang.analyze(tree)) |
|
61 | > ui.note("* optimized:\n", revsetlang.prettyformat(opttree), | |
|
62 | > "\n") | |
|
61 | > ui.note(b"* optimized:\n", revsetlang.prettyformat(opttree), | |
|
62 | > b"\n") | |
|
63 | 63 | > func = revset.match(ui, expr, repo) |
|
64 | 64 | > revs = func(repo) |
|
65 | 65 | > if ui.verbose: |
|
66 | > ui.note("* set:\n", smartset.prettyformat(revs), "\n") | |
|
66 | > ui.note(b"* set:\n", smartset.prettyformat(revs), b"\n") | |
|
67 | 67 | > for c in revs: |
|
68 | > ui.write("%s\n" % c) | |
|
68 | > ui.write(b"%s\n" % c) | |
|
69 | 69 | > EOF |
|
70 | 70 | $ cat <<EOF >> $HGRCPATH |
|
71 | 71 | > [extensions] |
General Comments 0
You need to be logged in to leave comments.
Login now