summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/project.py b/project.py
index 6252bd68..e5dbf25e 100644
--- a/project.py
+++ b/project.py
@@ -791,7 +791,7 @@ class Project(object):
791 if R_HEADS + n not in heads: 791 if R_HEADS + n not in heads:
792 self.bare_git.DeleteRef(name, id) 792 self.bare_git.DeleteRef(name, id)
793 793
794 def GetUploadableBranches(self): 794 def GetUploadableBranches(self, selected_branch=None):
795 """List any branches which can be uploaded for review. 795 """List any branches which can be uploaded for review.
796 """ 796 """
797 heads = {} 797 heads = {}
@@ -807,6 +807,8 @@ class Project(object):
807 for branch, id in heads.iteritems(): 807 for branch, id in heads.iteritems():
808 if branch in pubed and pubed[branch] == id: 808 if branch in pubed and pubed[branch] == id:
809 continue 809 continue
810 if selected_branch and branch != selected_branch:
811 continue
810 812
811 rb = self.GetUploadableBranch(branch) 813 rb = self.GetUploadableBranch(branch)
812 if rb: 814 if rb: