From: Catalin Marinas Date: Thu, 25 Jan 2007 22:28:38 +0000 (+0000) Subject: Synchronise the current patch if none specified for 'sync' X-Git-Tag: v0.14.3~371 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/00d468f51b4222d5b027c4140713b5c4c1ea1a2a Synchronise the current patch if none specified for 'sync' Signed-off-by: Catalin Marinas --- diff --git a/stgit/commands/sync.py b/stgit/commands/sync.py index 594d7de..db52bcd 100644 --- 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) + elif applied: + patches = [crt_series.get_current()] else: - parser.error('no patches specified') + parser.error('no patches applied') if not patches: raise CmdException, 'No patches to synchronise'