def func(parser, options, args):
- autoresolved = config.get('stgit', 'autoresolved')
+ autoresolved = config.get('stgit.autoresolved')
if autoresolved != 'yes':
check_conflicts()
check_head_top_equal()
if options.undo:
- print 'Undoing the "%s" refresh...' % patch,
- sys.stdout.flush()
+ out.start('Undoing the refresh of "%s"' % patch)
crt_series.undo_refresh()
- print 'done'
+ out.done()
return
if options.author:
between = applied[:applied.index(patch):-1]
pop_patches(between, keep = True)
- print 'Refreshing patch "%s"...' % patch,
- sys.stdout.flush()
+ out.start('Refreshing patch "%s"' % patch)
if autoresolved == 'yes':
resolved_all()
committer_email = options.commemail,
backup = True, sign_str = sign_str)
- print 'done'
+ if crt_series.empty_patch(patch):
+ out.done('empty patch')
+ else:
+ out.done()
if options.patch:
between.reverse()
push_patches(between)
else:
- print 'Patch "%s" is already up to date' % patch
+ out.info('Patch "%s" is already up to date' % patch)