~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Synchronise the current patch if none specified for 'sync'
[stgit]
/
stgit
/
commands
/
sync.py
diff --git
a/stgit/commands/sync.py
b/stgit/commands/sync.py
index
594d7de
..
db52bcd
100644
(file)
--- a/
stgit/commands/sync.py
+++ b/
stgit/commands/sync.py
@@
-119,8
+119,10
@@
def func(parser, options, args):
patches = applied
elif len(args) != 0:
patches = parse_patches(args, applied, ordered = True)
patches = applied
elif len(args) != 0:
patches = parse_patches(args, applied, ordered = True)
+ elif applied:
+ patches = [crt_series.get_current()]
else:
else:
- parser.error('no patches
specif
ied')
+ parser.error('no patches
appl
ied')
if not patches:
raise CmdException, 'No patches to synchronise'
if not patches:
raise CmdException, 'No patches to synchronise'