Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
hgitaly
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
Model registry
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
heptapod
hgitaly
Commits
9f21b7d8
Commit
9f21b7d8
authored
4 years ago
by
Sushil Khanchi
Browse files
Options
Downloads
Patches
Plain Diff
tests: some comment fixing and nits
parent
b26df280
No related branches found
Branches containing commit
Tags
0.8.1
Tags containing commit
1 merge request
!51
CommitService: implement RawBlame
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hgitaly/service/tests/test_commit.py
+6
-5
6 additions, 5 deletions
hgitaly/service/tests/test_commit.py
tests_with_gitaly/test_commit.py
+1
-4
1 addition, 4 deletions
tests_with_gitaly/test_commit.py
with
7 additions
and
9 deletions
hgitaly/service/tests/test_commit.py
+
6
−
5
View file @
9f21b7d8
...
...
@@ -604,5 +604,7 @@
# repo structure:
#
# 1 (branch/default) changes 'foo'
# 2 Removed two lines
# |
# 1 added one line, removed one
# |
...
...
@@ -608,3 +610,3 @@
# |
# 0
creates '
foo
'
# 0
added
foo
#
...
...
@@ -610,5 +612,5 @@
#
ctx
0
=
wrapper
.
commit_file
(
sha
0
=
wrapper
.
commit_file
(
'
foo
'
,
content
=
"
First line
\n
Second line
\n
Third line
\n
"
,
message
=
b
'
added foo
'
...
...
@@ -612,8 +614,7 @@
'
foo
'
,
content
=
"
First line
\n
Second line
\n
Third line
\n
"
,
message
=
b
'
added foo
'
)
sha0
=
ctx0
.
hex
()
).
hex
()
sha1
=
wrapper
.
commit_file
(
'
foo
'
,
...
...
This diff is collapsed.
Click to expand it.
tests_with_gitaly/test_commit.py
+
1
−
4
View file @
9f21b7d8
...
...
@@ -84,10 +84,7 @@
for
path
in
(
b
'
sub/dir
'
,
b
'
sub/dir/
'
,
b
''
,
b
'
.
'
,
b
'
/
'
,
b
'
./
'
,
b
'
sub
'
,
b
'
sub/
'
,
b
'
foo
'
):
for
rev
in
(
'
branch/default
'
,
'
branch/other
'
,
ctx2
.
hex
(),
ctx3
.
hex
()):
# assert do_rpc('hg', rev, path) == do_rpc('git', rev, path)
hg_resp
=
do_rpc
(
'
hg
'
,
rev
,
path
)
git_resp
=
do_rpc
(
'
git
'
,
rev
,
path
)
assert
hg_resp
==
git_resp
assert
do_rpc
(
'
hg
'
,
rev
,
path
)
==
do_rpc
(
'
git
'
,
rev
,
path
)
assert
(
do_rpc
(
'
hg
'
,
'
branch/default
'
,
b
'
sub
'
,
offset
=
1
)
==
...
...
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