]> git.ozlabs.org Git - patchwork/commitdiff
pwclient: preserve ordering of patch ids
authorJeremy Kerr <jk@ozlabs.org>
Sun, 7 Sep 2014 12:05:18 +0000 (20:05 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Sun, 7 Sep 2014 12:05:18 +0000 (20:05 +0800)
Currently, we use a frozenset to remove duplicates in the patch id
list. However, this means we lose the patch ordering, which is important
for a git-am.

This change drops the frozenset, so we preserve the ordering from the
arguments.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/bin/pwclient

index 86feef0fb56297d53cb290ca38f7205a6e1a0bc3..64c6817e570004b3693329790f173b4ff15a1b9e 100755 (executable)
@@ -506,7 +506,7 @@ def main():
     if args.get('hash'):
         hash_str = args.get('hash')
     if args.get('id'):
-        patch_ids = frozenset(args.get('id'))
+        patch_ids = args.get('id')
     if args.get('c'):
         # update multiple IDs with a single commit-hash does not make sense
         if action == 'update' and patch_ids and len(patch_ids) > 1: