##// END OF EJS Templates
qguard: make use of output labeling
Brodie Rao -
r10822:4c63f8e7 default
parent child Browse files
Show More
@@ -2134,7 +2134,17 b' def guard(ui, repo, *args, **opts):'
2134 '''
2134 '''
2135 def status(idx):
2135 def status(idx):
2136 guards = q.series_guards[idx] or ['unguarded']
2136 guards = q.series_guards[idx] or ['unguarded']
2137 ui.write('%s: %s\n' % (q.series[idx], ' '.join(guards)))
2137 ui.write('%s: ' % ui.label(q.series[idx], 'qguard.patch'))
2138 for i, guard in enumerate(guards):
2139 if guard.startswith('+'):
2140 ui.write(guard, label='qguard.positive')
2141 elif guard.startswith('-'):
2142 ui.write(guard, label='qguard.negative')
2143 else:
2144 ui.write(guard, label='qguard.unguarded')
2145 if i != len(guards) - 1:
2146 ui.write(' ')
2147 ui.write('\n')
2138 q = repo.mq
2148 q = repo.mq
2139 patch = None
2149 patch = None
2140 args = list(args)
2150 args = list(args)
General Comments 0
You need to be logged in to leave comments. Login now