Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
mercurial-devel
Commits
eec65b70
Commit
eec65b70
authored
5 years ago
by
Augie Fackler
Browse files
Options
Downloads
Patches
Plain Diff
extdata: demonstrate bad behavior when a subprocess emits garbage
Differential Revision:
https://phab.mercurial-scm.org/D6615
parent
d28d91f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test-extdata.t
+12
-0
12 additions, 0 deletions
tests/test-extdata.t
with
12 additions
and
0 deletions
tests/test-extdata.t
+
12
−
0
View file @
eec65b70
...
...
@@ -13,6 +13,7 @@
>
notes
=
notes
.
txt
>
shelldata
=
shell:cat
extdata
.
txt
|
grep
2
>
emptygrep
=
shell:cat
extdata
.
txt
|
grep
empty
>
badparse
=
shell:cat
badparse
.
txt
>
EOF
$
cat
<<
'
EOF
'
>
extdata
.
txt
>
2
another
comment
on
2
...
...
@@ -58,6 +59,17 @@
abort:
unknown
extdata
source
'
unknown
'
[
255
]
test
a
zero
-
exiting
source
that
emits
garbage
to
confuse
the
revset
parser
$
cat
>
badparse
.
txt
<<
'
EOF
'
>
+---------------------------------------+
>
9
de260b1e88e
>
EOF
BUG:
this
should
print
the
revset
parse
error
$
hg
log
-
qr "extdata(badparse)"
2
>&
1
|
grep
ValueError
ValueError:
Mixing
iteration
and
read
methods
would
lose
data
test
template
support:
$
hg
log
-
r:3
-
T
"
{node|short}{if(extdata('notes'), ' # {extdata('notes')}')}
\n
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment