diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -155,6 +155,19 @@ class ReviewableBranch(object): | |||
155 | self.replace_changes, | 155 | self.replace_changes, |
156 | people) | 156 | people) |
157 | 157 | ||
158 | def GetPublishedRefs(self): | ||
159 | refs = {} | ||
160 | output = self.project.bare_git.ls_remote( | ||
161 | self.branch.remote.SshReviewUrl(self.project.UserEmail), | ||
162 | 'refs/changes/*') | ||
163 | for line in output.split('\n'): | ||
164 | try: | ||
165 | (sha, ref) = line.split() | ||
166 | refs[sha] = ref | ||
167 | except ValueError: | ||
168 | pass | ||
169 | |||
170 | return refs | ||
158 | 171 | ||
159 | class StatusColoring(Coloring): | 172 | class StatusColoring(Coloring): |
160 | def __init__(self, config): | 173 | def __init__(self, config): |