From e92ceebde0034ad045e12b8241045d701383e681 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Mon, 24 Nov 2008 15:51:25 -0800 Subject: [PATCH] Fix upload --replace after it was broken when --review,--cc was added Signed-off-by: Shawn O. Pearce --- subcmds/upload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subcmds/upload.py b/subcmds/upload.py index 49d00187..5e36db61 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py @@ -151,7 +151,7 @@ with the code review system, or the upload will fail. _die("nothing uncommented for upload") self._UploadAndReport(todo, people) - def _ReplaceBranch(self, project): + def _ReplaceBranch(self, project, people): branch = project.CurrentBranch if not branch: print >>sys.stdout, "no branches ready for upload" @@ -247,7 +247,7 @@ with the code review system, or the upload will fail. print >>sys.stderr, \ 'error: --replace requires exactly one project' sys.exit(1) - self._ReplaceBranch(project_list[0]) + self._ReplaceBranch(project_list[0], people) return for project in project_list: