Skip to content
Snippets Groups Projects
Commit cb76ad34 authored by Georges Racinet's avatar Georges Racinet
Browse files

Gitaly Comparison tests: support repeated sha request fields

Reflection with `isinstance` is good enough, but for the sake
of symmetry with responses we should perhaps add brackets to
the specification, as in `request_sha_attrs='oids[]`
parent f4e5c429
No related branches found
No related tags found
2 merge requests!151heptapod#743: making 0.36 the new stable,!144RHGitaly: implement CommitService.ListCommitsByOid
......@@ -211,7 +211,10 @@
sha = hg_kwargs.get(sha_attr)
if sha is None:
continue
git_kwargs[sha_attr] = self.revspec_to_git(sha)
if isinstance(sha, list):
git_kwargs[sha_attr] = [self.revspec_to_git(s) for s in sha]
else:
git_kwargs[sha_attr] = self.revspec_to_git(sha)
return git_kwargs
def revspec_to_git(self, revspec):
......
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