Commit 0ac6ba1a authored by Sushil Khanchi's avatar Sushil Khanchi 🐨
Browse files

test_commit_diff: make sure we recorded a rename and not a copy

It was recorded as "copy" instead of "rename" as we didn't pass the
'bar' to wrapper.commit()

It didn't have any impact on response because response attrs won't
really have any difference b/w rename and copy. But this change is
to make sure that we have correct repo setup as explained by comments.
parent e985245bdaa0
Pipeline #20155 passed with stages
in 1 minute and 53 seconds
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
message="Changes bar") message="Changes bar")
wrapper.command(b'mv', wrapper.repo.root + b'/bar', wrapper.command(b'mv', wrapper.repo.root + b'/bar',
wrapper.repo.root + b'/zar') wrapper.repo.root + b'/zar')
ctx2 = wrapper.commit([b'zar'], message="Rename bar to zar") ctx2 = wrapper.commit([b'bar', b'zar'], message="Rename bar to zar")
ctx3 = wrapper.commit_file('zoo', content="I am in\nzoo\n", ctx3 = wrapper.commit_file('zoo', content="I am in\nzoo\n",
message="Added zoo") message="Added zoo")
# Repo structure: # Repo structure:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment