From: Jeremy Kerr Date: Sun, 7 Sep 2014 12:05:18 +0000 (+0800) Subject: pwclient: preserve ordering of patch ids X-Git-Tag: v0.9.0~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d0da317e4a458accc0efd7ade7dd332ca92fb96;p=thirdparty%2Fpatchwork.git 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 --- diff --git a/apps/patchwork/bin/pwclient b/apps/patchwork/bin/pwclient index 86feef0f..64c6817e 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: