From 3d0da317e4a458accc0efd7ade7dd332ca92fb96 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Sun, 7 Sep 2014 20:05:18 +0800 Subject: [PATCH] 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 --- apps/patchwork/bin/pwclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.2