Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
hg-git
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
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
hg-git
Commits
57d56d7dec83
Commit
57d56d7dec83
authored
3 years ago
by
Dan Villiom Podlaski Christiansen
Browse files
Options
Downloads
Patches
Plain Diff
tests: check progress output for HTTP & Git protocols
parent
620730dd0f5d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!127
Remove some unnecessary caching
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test-serve-dulwich.t
+24
-0
24 additions, 0 deletions
tests/test-serve-dulwich.t
tests/test-serve-git.t
+30
-0
30 additions, 0 deletions
tests/test-serve-git.t
with
54 additions
and
0 deletions
tests/test-serve-dulwich.t
+
24
−
0
View file @
57d56d7d
...
...
@@ -6,6 +6,17 @@
Load commonly used test logic
$ . "$TESTDIR/testutil"
Enable progress debugging:
$ cat >> $HGRCPATH <<EOF
> [progress]
> delay = 0
> refresh = 0
> width = 60
> format = topic unit total number item bar
> assume-tty = yes
> EOF
Create a dummy repository and serve it
$ git init -q test
...
...
@@ -22,6 +33,10 @@
Make sure that clone over unauthenticated HTTP doesn
'
t
break
$
hg
clone
-
U
git
+
http:
//local
host:$HGPORT
copy
2
>&
1
\
r
(
no
-
eol
)
(
esc
)
importing
commits
1
/
2
[
================>
]
\
r
(
no
-
eol
)
(
esc
)
importing
commits
2
/
2
[
==================================>
]
\
r
(
no
-
eol
)
(
esc
)
\
r
(
no
-
eol
)
(
esc
)
importing
git
objects
into
hg
$
hg
log
-
T
'
HG:{node|short} GIT:{gitnode|short}\n
'
-
R
copy
HG:221dd250e933
GIT:3af9773036a9
...
...
@@ -29,8 +44,11 @@
$
cd
copy
$
hg
up
master
\
r
(
no
-
eol
)
(
esc
)
updating
files
2
/
2
foo
[
================>
]
\
r
(
no
-
eol
)
(
esc
)
\
r
(
no
-
eol
)
(
esc
)
2
files
updated
,
0
files
merged
,
0
files
removed
,
0
files
unresolved
(
activating
bookmark
master
)
$
echo
baz
>
baz
$
fn_hg_commit
-
A
-
m baz
$ hg push
...
...
@@ -32,8 +50,14 @@
2
files
updated
,
0
files
merged
,
0
files
removed
,
0
files
unresolved
(
activating
bookmark
master
)
$
echo
baz
>
baz
$
fn_hg_commit
-
A
-
m baz
$ hg push
\r (no-eol) (esc)
find commits to export commits 1/1 152c456b
0
da423597ed2
[
>
]
\
r
(
no
-
eol
)
(
esc
)
\
r
(
no
-
eol
)
(
esc
)
\
r
(
no
-
eol
)
(
esc
)
exporting
1
/
1
[
==========================================>
]
\
r
(
no
-
eol
)
(
esc
)
\
r
(
no
-
eol
)
(
esc
)
pushing
to
git
+
http:
//local
host:$HGPORT
/
searching
for
changes
adding
objects
...
...
This diff is collapsed.
Click to expand it.
tests/test-serve-git.t
+
30
−
0
View file @
57d56d7d
...
...
@@ -3,6 +3,17 @@
Load
commonly
used
test
logic
$
.
"
$TESTDIR
/testutil
"
Enable
progress
debugging:
$
cat
>>
$HGRCPATH
<<
EOF
>
[
progress
]
>
delay
=
0
>
refresh
=
0
>
width
=
60
>
format
=
topic
unit
total
number
item
bar
>
assume
-
tty
=
yes
>
EOF
Create
a
dummy
repository
and
serve
it
$
git
init
-
q test
...
...
@@ -22,6 +33,25 @@
Make
sure
that
clone
over
the
old
git
protocol
doesn
'
t break
$ hg clone -U git://localhost:$HGPORT/test copy 2>&1
\r (no-eol) (esc)
Counting objects 1/6 [=====> ]\r (no-eol) (esc)
Counting objects 2/6 [===========> ]\r (no-eol) (esc)
Counting objects 3/6 [=================> ]\r (no-eol) (esc)
Counting objects 4/6 [=======================> ]\r (no-eol) (esc)
Counting objects 5/6 [=============================> ]\r (no-eol) (esc)
Counting objects 6/6 [===================================>]\r (no-eol) (esc)
Counting objects 6/6 [===================================>]\r (no-eol) (esc)
\r (no-eol) (esc)
\r (no-eol) (esc)
Compressing objects 1/3 [==========> ]\r (no-eol) (esc)
Compressing objects 2/3 [=====================> ]\r (no-eol) (esc)
Compressing objects 3/3 [================================>]\r (no-eol) (esc)
Compressing objects 3/3 [================================>]\r (no-eol) (esc)
\r (no-eol) (esc)
\r (no-eol) (esc)
importing commits 1/2 [================> ]\r (no-eol) (esc)
importing commits 2/2 [==================================>]\r (no-eol) (esc)
\r (no-eol) (esc)
importing git objects into hg
$ hg log -T
'
HG:
{
node
|
short
}
GIT:
{
gitnode
|
short
}
\
n
'
-R copy
HG:221dd250e933 GIT:3af9773036a9
...
...
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