Skip to content
Snippets Groups Projects
Commit 9f21b7d8 authored by Sushil Khanchi's avatar Sushil Khanchi :koala:
Browse files

tests: some comment fixing and nits

parent b26df280
No related branches found
Tags 0.8.1
1 merge request!51CommitService: implement RawBlame
......@@ -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 @@
#
ctx0 = wrapper.commit_file(
sha0 = wrapper.commit_file(
'foo',
content="First line\nSecond line\nThird line\n",
message=b'added foo'
......@@ -612,8 +614,7 @@
'foo',
content="First line\nSecond line\nThird line\n",
message=b'added foo'
)
sha0 = ctx0.hex()
).hex()
sha1 = wrapper.commit_file(
'foo',
......
......@@ -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)
==
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment