From a993528fe40dbab0f9a7d8d92176d418e8a3ba48 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 13 Dec 2016 10:47:37 -0800 Subject: [PATCH] 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 --- patchwork/views/xmlrpc.py | 2 ++ 1 file changed, 2 insertions(+) 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 '', } -- 2.47.3