~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
/
export.py
diff --git
a/stgit/commands/export.py
b/stgit/commands/export.py
index
20d8f67
..
cafcbe3
100644
(file)
--- a/
stgit/commands/export.py
+++ b/
stgit/commands/export.py
@@
-79,8
+79,8
@@
def func(parser, options, args):
dirname = 'patches-%s' % crt_series.get_branch()
if not options.branch and git.local_changes():
dirname = 'patches-%s' % crt_series.get_branch()
if not options.branch and git.local_changes():
- print 'Warning: local changes in the tree. ' \
- 'You might want to commit them first'
+ out.warn('Local changes in the tree;'
+ ' you might want to commit them first')
if not options.stdout:
if not os.path.isdir(dirname):
if not options.stdout:
if not os.path.isdir(dirname):
@@
-166,9
+166,9
@@
def func(parser, options, args):
f = open(pfile, 'w+')
if options.stdout and num > 1:
f = open(pfile, 'w+')
if options.stdout and num > 1:
- print '-
------------------------------------------------------------------------------'
+ print '-
'*79
print patch.get_name()
print patch.get_name()
- print '-
------------------------------------------------------------------------------'
+ print '-
'*79
# write description
f.write(descr)
# write description
f.write(descr)