|
@@ -262,7 +262,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
|
|
|
except:
|
|
except:
|
|
|
return ""
|
|
return ""
|
|
|
|
|
|
|
|
- def _ReplaceBranch(self, project, people):
|
|
|
|
|
|
|
+ def _ReplaceBranch(self, opt, project, people):
|
|
|
branch = project.CurrentBranch
|
|
branch = project.CurrentBranch
|
|
|
if not branch:
|
|
if not branch:
|
|
|
print >>sys.stdout, "no branches ready for upload"
|
|
print >>sys.stdout, "no branches ready for upload"
|
|
@@ -388,7 +388,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
|
|
|
print >>sys.stderr, \
|
|
print >>sys.stderr, \
|
|
|
'error: --replace requires exactly one project'
|
|
'error: --replace requires exactly one project'
|
|
|
sys.exit(1)
|
|
sys.exit(1)
|
|
|
- self._ReplaceBranch(project_list[0], people)
|
|
|
|
|
|
|
+ self._ReplaceBranch(opt, project_list[0], people)
|
|
|
return
|
|
return
|
|
|
|
|
|
|
|
for project in project_list:
|
|
for project in project_list:
|