from stgit.commands.common import *
from stgit.utils import *
+from stgit.out import *
from stgit import stack, git
unapplied. A patch is considered empty if the two commit objects
representing its boundaries refer to the same tree object."""
+directory = DirectoryHasRepository()
options = [make_option('-a', '--applied',
help = 'delete the empty applied patches',
action = 'store_true'),
"""
for p in patches:
if crt_series.empty_patch(p):
- print 'Deleting patch "%s"...' % p,
- sys.stdout.flush()
-
+ out.start('Deleting patch "%s"' % p)
if applied and crt_series.patch_applied(p):
crt_series.pop_patch(p)
crt_series.delete_patch(p)
-
- print 'done'
+ out.done()
elif applied and crt_series.patch_unapplied(p):
crt_series.push_patch(p)