diff options
-rwxr-xr-x | gerrit_upload.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gerrit_upload.py b/gerrit_upload.py index 32451408..d3d4ff3e 100755 --- a/gerrit_upload.py +++ b/gerrit_upload.py | |||
@@ -114,10 +114,11 @@ def UploadBundle(project, | |||
114 | req.dest_branch = str(dest_branch) | 114 | req.dest_branch = str(dest_branch) |
115 | for c in revlist: | 115 | for c in revlist: |
116 | req.contained_object.append(c) | 116 | req.contained_object.append(c) |
117 | for change_id,commit_id in replace_changes.iteritems(): | 117 | if replace_changes: |
118 | r = req.replace.add() | 118 | for change_id,commit_id in replace_changes.iteritems(): |
119 | r.change_id = change_id | 119 | r = req.replace.add() |
120 | r.object_id = commit_id | 120 | r.change_id = change_id |
121 | r.object_id = commit_id | ||
121 | else: | 122 | else: |
122 | req = UploadBundleContinue() | 123 | req = UploadBundleContinue() |
123 | req.bundle_id = bundle_id | 124 | req.bundle_id = bundle_id |