Show More
@@ -220,3 +220,32 b' def get(repo, status):' | |||
|
220 | 220 | |
|
221 | 221 | else: |
|
222 | 222 | raise error.ParseError(_('invalid bisect state')) |
|
223 | ||
|
224 | def label(repo, node, short=False): | |
|
225 | rev = repo.changelog.rev(node) | |
|
226 | ||
|
227 | # Try explicit sets | |
|
228 | if rev in get(repo, 'good'): | |
|
229 | return _('good') | |
|
230 | if rev in get(repo, 'bad'): | |
|
231 | return _('bad') | |
|
232 | if rev in get(repo, 'skip'): | |
|
233 | return _('skipped') | |
|
234 | if rev in get(repo, 'untested'): | |
|
235 | return _('untested') | |
|
236 | if rev in get(repo, 'ignored'): | |
|
237 | return _('ignored') | |
|
238 | ||
|
239 | # Try implicit sets | |
|
240 | if rev in get(repo, 'goods'): | |
|
241 | return _('good (implicit)') | |
|
242 | if rev in get(repo, 'bads'): | |
|
243 | return _('bad (implicit)') | |
|
244 | ||
|
245 | return None | |
|
246 | ||
|
247 | def shortlabel(label): | |
|
248 | if label: | |
|
249 | return label[0].upper() | |
|
250 | ||
|
251 | return None |
General Comments 0
You need to be logged in to leave comments.
Login now