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:
print 'Undoing the "%s" push...' % patch,
sys.stdout.flush()
- resolved_all()
if crt_series.undo_push():
print 'done'
else:
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'