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
2b35ced8
Commit
2b35ced8
authored
15 years ago
by
Patrick Mezard
Browse files
Options
Downloads
Patches
Plain Diff
test-bisect: test --command option
parent
ca14b398
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test-bisect
+18
-0
18 additions, 0 deletions
tests/test-bisect
tests/test-bisect.out
+9
-0
9 additions, 0 deletions
tests/test-bisect.out
with
27 additions
and
0 deletions
tests/test-bisect
+
18
−
0
View file @
2b35ced8
...
...
@@ -83,6 +83,8 @@
hg bisect
-s
hg bisect
-g
set
+e
echo
%
test
invalid
command
hg bisect
-r
hg bisect
--command
'foobar'
...
...
@@ -86,3 +88,19 @@
echo
%
test
invalid
command
hg bisect
-r
hg bisect
--command
'foobar'
echo
%
test
bisecting
command
cat
>
script.py
<<
EOF
#!/usr/bin/env python
import sys
from mercurial import ui, hg
repo = hg.repository(ui.ui(), '.')
if repo['.'].rev() < 6:
sys.exit(1)
EOF
chmod
+x script.py
hg bisect
-r
hg bisect
--good
tip
hg bisect
--bad
0
hg bisect
--command
"
`
pwd
`
/script.py"
true
This diff is collapsed.
Click to expand it.
tests/test-bisect.out
+
9
−
0
View file @
2b35ced8
...
...
@@ -305,3 +305,12 @@
% test invalid command
abort: cannot find executable: foobar
% test bisecting command
Testing changeset 15:e7fa0811edb0 (31 changesets remaining, ~4 tests)
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
The first good revision is:
changeset: 6:a3d5c6fdf0d3
user: test
date: Thu Jan 01 00:00:06 1970 +0000
summary: msg 6
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