~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor message printing
[stgit]
/
stgit
/
commands
/
clean.py
diff --git
a/stgit/commands/clean.py
b/stgit/commands/clean.py
index
8f5c606
..
7b57526
100644
(file)
--- a/
stgit/commands/clean.py
+++ b/
stgit/commands/clean.py
@@
-43,14
+43,11
@@
def __delete_empty(patches, applied):
"""
for p in patches:
if crt_series.empty_patch(p):
"""
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)
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)
elif applied and crt_series.patch_unapplied(p):
crt_series.push_patch(p)