summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d3cb28c)
The t2000-sync.py test was failing after the previous change to this command.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
raise CmdException, 'No remote branch or series specified'
applied = crt_series.get_applied()
raise CmdException, 'No remote branch or series specified'
applied = crt_series.get_applied()
+ unapplied = crt_series.get_unapplied()
if options.all:
patches = applied
elif len(args) != 0:
if options.all:
patches = applied
elif len(args) != 0:
- unapplied = crt_series.get_unapplied()
patches = parse_patches(args, applied + unapplied, len(applied),
ordered = True)
elif applied:
patches = parse_patches(args, applied + unapplied, len(applied),
ordered = True)
elif applied:
to_pop = applied[applied.index(first_patch) + 1:]
if to_pop:
pop_patches(crt_series, to_pop[::-1])
to_pop = applied[applied.index(first_patch) + 1:]
if to_pop:
pop_patches(crt_series, to_pop[::-1])
- popped = patches[patches.index(first_patch) + 1:]
+ popped = to_pop + [p for p in patches if p in unapplied]
if p in popped:
# push this patch
push_patches(crt_series, [p])
if p in popped:
# push this patch
push_patches(crt_series, [p])
if p not in sync_patches:
# nothing to synchronise
continue
if p not in sync_patches:
# nothing to synchronise
continue
out.done('updated')
else:
out.done()
out.done('updated')
else:
out.done()
+
+ # push the remaining patches
+ if popped:
+ push_patches(crt_series, popped)