diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-09-07 20:05:18 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-09-07 20:05:18 +0800 |
commit | 3d0da317e4a458accc0efd7ade7dd332ca92fb96 (patch) | |
tree | c56e1c604c12a0c4144f08c8f16f9bba314304f2 | |
parent | 5eb03e3639ea2bc599e42372f0570df653faeeb2 (diff) | |
download | patchwork-3d0da317e4a458accc0efd7ade7dd332ca92fb96.tar patchwork-3d0da317e4a458accc0efd7ade7dd332ca92fb96.tar.gz |
pwclient: preserve ordering of patch ids
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>
-rwxr-xr-x | apps/patchwork/bin/pwclient | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/patchwork/bin/pwclient b/apps/patchwork/bin/pwclient index 86feef0..64c6817 100755 --- a/apps/patchwork/bin/pwclient +++ b/apps/patchwork/bin/pwclient @@ -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: |