]> git.ozlabs.org Git - patchwork/commit
pwclient,xmlrpc: Specify project for patch hash lookups
authorJeremy Kerr <jk@ozlabs.org>
Thu, 22 Oct 2009 21:46:46 +0000 (17:46 -0400)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 22 Oct 2009 21:46:46 +0000 (17:46 -0400)
commit7bcba313da27b7230b14a7ea41d50e76cd03e9a5
tree8c3e243f5f0311cef37ed8d7ee790f9a15efcc01
parent799c2a2ac4e1d5b1fa5c02917551e18e1dc7aaaa
pwclient,xmlrpc: Specify project for patch hash lookups

We may see the same hash for two patches if one is sent to two lists
tracked by patchwork.

This change adds a new xmlrpc method, patch_get_by_project_hash, which
adds the linkname parameter to the lookup. We need to add a new method
instead of replacing patch_get_by_hash, to avoid breaking existing
pwclient apps.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/bin/pwclient
apps/patchwork/views/xmlrpc.py