equal
deleted
inserted
replaced
167 return -1 |
167 return -1 |
168 return 0 |
168 return 0 |
169 |
169 |
170 @util.propertycache |
170 @util.propertycache |
171 def branches(self): |
171 def branches(self): |
172 return sorted(set(self._repo[r].branch() for r in self._revs)) |
172 branches = sorted(set(self._repo[r].branch() for r in self._revs)) |
|
173 if not branches: |
|
174 branches = set([self._repo[None].branch()]) |
|
175 return branches |
173 |
176 |
174 def labelsgen(prefix, labelssuffix): |
177 def labelsgen(prefix, labelssuffix): |
175 """ Takes a label prefix and a list of suffixes. Returns a string of the prefix |
178 """ Takes a label prefix and a list of suffixes. Returns a string of the prefix |
176 formatted with each suffix separated with a space. |
179 formatted with each suffix separated with a space. |
177 """ |
180 """ |