comparison hgext/mq.py @ 10510:f77f3383c666 stable

i18n: mark more strings for translation
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Fri, 19 Feb 2010 02:23:38 +0100
parents dc9a803c1800
children 6505773080e4
comparison
equal deleted inserted replaced
10509:3e7e789d9494 10510:f77f3383c666
2197 2197
2198 if patch: 2198 if patch:
2199 patch = q.lookup(patch) 2199 patch = q.lookup(patch)
2200 else: 2200 else:
2201 if not q.applied: 2201 if not q.applied:
2202 ui.write('no patches applied\n') 2202 ui.write(_('no patches applied\n'))
2203 return 1 2203 return 1
2204 patch = q.lookup('qtip') 2204 patch = q.lookup('qtip')
2205 ph = patchheader(q.join(patch), q.plainmode) 2205 ph = patchheader(q.join(patch), q.plainmode)
2206 2206
2207 ui.write('\n'.join(ph.message) + '\n') 2207 ui.write('\n'.join(ph.message) + '\n')
2300 2300
2301 if name in q.series: 2301 if name in q.series:
2302 raise util.Abort( 2302 raise util.Abort(
2303 _('A patch named %s already exists in the series file') % name) 2303 _('A patch named %s already exists in the series file') % name)
2304 2304
2305 if ui.verbose: 2305 ui.note(_('renaming %s to %s\n') % (patch, name))
2306 ui.write('renaming %s to %s\n' % (patch, name))
2307 i = q.find_series(patch) 2306 i = q.find_series(patch)
2308 guards = q.guard_re.findall(q.full_series[i]) 2307 guards = q.guard_re.findall(q.full_series[i])
2309 q.full_series[i] = name + ''.join([' #' + g for g in guards]) 2308 q.full_series[i] = name + ''.join([' #' + g for g in guards])
2310 q.parse_series() 2309 q.parse_series()
2311 q.series_dirty = 1 2310 q.series_dirty = 1