Show More
@@ -13,6 +13,7 b' test revset support' | |||||
13 | > notes = notes.txt |
|
13 | > notes = notes.txt | |
14 | > shelldata = shell:cat extdata.txt | grep 2 |
|
14 | > shelldata = shell:cat extdata.txt | grep 2 | |
15 | > emptygrep = shell:cat extdata.txt | grep empty |
|
15 | > emptygrep = shell:cat extdata.txt | grep empty | |
|
16 | > badparse = shell:cat badparse.txt | |||
16 | > EOF |
|
17 | > EOF | |
17 | $ cat <<'EOF' > extdata.txt |
|
18 | $ cat <<'EOF' > extdata.txt | |
18 | > 2 another comment on 2 |
|
19 | > 2 another comment on 2 | |
@@ -58,6 +59,17 b' test bad extdata() revset source' | |||||
58 | abort: unknown extdata source 'unknown' |
|
59 | abort: unknown extdata source 'unknown' | |
59 | [255] |
|
60 | [255] | |
60 |
|
61 | |||
|
62 | test a zero-exiting source that emits garbage to confuse the revset parser | |||
|
63 | ||||
|
64 | $ cat > badparse.txt <<'EOF' | |||
|
65 | > +---------------------------------------+ | |||
|
66 | > 9de260b1e88e | |||
|
67 | > EOF | |||
|
68 | ||||
|
69 | BUG: this should print the revset parse error | |||
|
70 | $ hg log -qr "extdata(badparse)" 2>&1 | grep ValueError | |||
|
71 | ValueError: Mixing iteration and read methods would lose data | |||
|
72 | ||||
61 | test template support: |
|
73 | test template support: | |
62 |
|
74 | |||
63 | $ hg log -r:3 -T "{node|short}{if(extdata('notes'), ' # {extdata('notes')}')}\n" |
|
75 | $ hg log -r:3 -T "{node|short}{if(extdata('notes'), ' # {extdata('notes')}')}\n" |
General Comments 0
You need to be logged in to leave comments.
Login now