~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid allowing --undo if it doesn't change anything
[stgit]
/
stgit
/
commands
/
push.py
diff --git
a/stgit/commands/push.py
b/stgit/commands/push.py
index
c653ce7
..
eeb37c4
100644
(file)
--- a/
stgit/commands/push.py
+++ b/
stgit/commands/push.py
@@
-66,8
+66,10
@@
def func(parser, options, args):
print 'Undoing the "%s" push...' % patch,
sys.stdout.flush()
resolved_all()
- crt_series.undo_push()
- print 'done'
+ if crt_series.undo_push():
+ print 'done'
+ else:
+ print 'done (patch unchanged)'
print_crt_patch()
return