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

commit service: variable factorisation

parent 78967998
No related branches found
No related tags found
No related merge requests found
......@@ -93,5 +93,6 @@
def FindCommit(self,
request: FindCommitRequest, context) -> FindCommitResponse:
repo = self.load_repo(request.repository)
logger.debug("FindCommit revision=%r", request.revision)
revision = request.revision
logger.debug("FindCommit revision=%r", revision)
try:
......@@ -97,3 +98,3 @@
try:
branchmap_key = gitlab_branch_to_branchmap_branch(request.revision)
branchmap_key = gitlab_branch_to_branchmap_branch(revision)
if branchmap_key is None:
......@@ -99,5 +100,5 @@
if branchmap_key is None:
ctx = scmutil.revsingle(repo, request.revision)
ctx = scmutil.revsingle(repo, revision)
else:
contexts = (repo[node]
for node in repo.branchmap()[branchmap_key])
......
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