From: Florian Fainelli Date: Tue, 13 Dec 2016 18:47:37 +0000 (-0800) Subject: xmlrpc: Expose patch hash to patch_get X-Git-Tag: v2.0.0-rc1~136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a993528fe40dbab0f9a7d8d92176d418e8a3ba48;p=thirdparty%2Fpatchwork.git xmlrpc: Expose patch hash to patch_get Expose the patch object hash value to xmlrpc::patch_get. This is particuarly helpful if some patche(s) have been submitted several times but changed from e.g: RFC to a proper official patch submission. The hash would typically be identical, but numbers would not. Signed-off-by: Florian Fainelli Reviewed-by: Stephen Finucane --- diff --git a/patchwork/views/xmlrpc.py b/patchwork/views/xmlrpc.py index 6ef957c6..bfbdef0f 100644 --- a/patchwork/views/xmlrpc.py +++ b/patchwork/views/xmlrpc.py @@ -263,6 +263,7 @@ def patch_to_dict(obj): 'delegate': 'admin', 'delegate_id': 1, 'commit_ref': '', + 'hash': '', } Args: @@ -287,6 +288,7 @@ def patch_to_dict(obj): 'delegate': six.text_type(obj.delegate).encode('utf-8'), 'delegate_id': obj.delegate_id or 0, 'commit_ref': obj.commit_ref or '', + 'hash': obj.hash or '', }