]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parsemail: Always update Person.email
authorStephen Finucane <stephen.finucane@intel.com>
Fri, 25 Mar 2016 15:42:04 +0000 (15:42 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 14 Apr 2016 16:29:23 +0000 (17:29 +0100)
commitd018cd5be5e007bebf3eaf219be7e19b4d331f67
tree4648ceb04d871113a2da2eb28b7df0789eccd478
parentd2370d1a878a5f2c794620fd8b632078c4ba40f6
parsemail: Always update Person.email

Patches applied using pwclient will always use the first name that has
been seen for a particular email address. While this is usually fine,
ot actually causes issues for people changing name without changing
email addresses or people changing the capitalization of their name.
Resolve this by always updating the Person object when we receive a
new submission or comment.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Reviewed-by: Andy Doan <andy.doan@linaro.org>
Closes: #24
patchwork/bin/parsemail.py
patchwork/tests/test_patchparser.py