def func(parser, options, args):
"""Pushes the given patch or all onto the series
"""
- check_conflicts()
- check_local_changes()
- check_head_top_equal()
# If --undo is passed, do the work and exit
if options.undo:
if not patch:
raise CmdException, 'No patch to undo'
- print 'Undoing the "%s" push...' % patch,
- sys.stdout.flush()
+ out.start('Undoing push of "%s"' % patch)
+ resolved_all()
if crt_series.undo_push():
- print 'done'
+ out.done()
else:
- print 'done (patch unchanged)'
+ out.done('patch unchanged')
print_crt_patch()
return
+ check_local_changes()
+ check_conflicts()
+ check_head_top_equal()
+
unapplied = crt_series.get_unapplied()
if not unapplied:
raise CmdException, 'No more patches to push'