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
Admin message
This instance will be upgraded to Heptapod 17.9.0rc1 on 2025-03-27 between 17:00 and 18:00 UTC+2
Show more breadcrumbs
mercurial
mercurial-devel
Commits
6ecf5fb2a475
Commit
6ecf5fb2a475
authored
13 years ago
by
Idan Kamara
Browse files
Options
Downloads
Patches
Plain Diff
test-commandserver: flush stdout
parent
ce0ad184f489
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-commandserver.py
+2
-0
2 additions, 0 deletions
tests/test-commandserver.py
tests/test-commandserver.py.out
+2
-2
2 additions, 2 deletions
tests/test-commandserver.py.out
with
4 additions
and
2 deletions
tests/test-commandserver.py
+
2
−
0
View file @
6ecf5fb2
...
...
@@ -27,6 +27,7 @@
def
runcommand
(
server
,
args
,
output
=
sys
.
stdout
,
error
=
sys
.
stderr
,
input
=
None
):
print
'
runcommand
'
,
'
'
.
join
(
args
)
sys
.
stdout
.
flush
()
server
.
stdin
.
write
(
'
runcommand
\n
'
)
writeblock
(
server
,
'
\0
'
.
join
(
args
))
...
...
@@ -56,6 +57,7 @@
print
print
'
testing %s:
'
%
func
.
__name__
print
sys
.
stdout
.
flush
()
server
=
connect
(
repopath
)
try
:
return
func
(
server
)
...
...
This diff is collapsed.
Click to expand it.
tests/test-commandserver.py.out
+
2
−
2
View file @
6ecf5fb2
...
...
@@ -4,7 +4,6 @@
o, 'capabilities: getencoding runcommand\nencoding: ***'
runcommand id
000000000000 tip
abort: unknown command unknowncommand
testing unknowncommand:
...
...
@@ -8,6 +7,7 @@
testing unknowncommand:
abort: unknown command unknowncommand
testing checkruncommand:
...
...
@@ -134,8 +134,7 @@
3: draft
runcommand phase -r .
3: public
no phases changed
testing rollback:
runcommand phase -r . -p
...
...
@@ -138,7 +137,8 @@
testing rollback:
runcommand phase -r . -p
no phases changed
runcommand commit -Am.
runcommand rollback
repository tip rolled back to revision 3 (undo commit)
...
...
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