Re: [PATCH V2] parser: fix wrong parsing of diff comments

2016-09-25 Thread WEN Pingbo
Hi, Stephen I think you missed this patch. But I saw you have already merged it, maybe it can give you some reference:) 2016-09-05 22:31 GMT+08:00 Pingbo Wen : > From: WEN Pingbo > > If the subject of a submission is prefixed by 'Re:', then it can't be a > patch or c

[PATCH 10/10] bundles: show public bundles by default

2016-08-23 Thread WEN Pingbo
Signed-off-by: WEN Pingbo --- patchwork/templates/patchwork/bundles.html | 46 ++ patchwork/views/bundle.py | 32 - 2 files changed, 65 insertions(+), 13 deletions(-) diff --git a/patchwork/templates/patchwork/bundles.html b

[PATCH 07/10] filters: rename SearchFilter to SubjectFilter

2016-08-23 Thread WEN Pingbo
Becase the orig searchfilter only search the name field. Signed-off-by: WEN Pingbo --- patchwork/filters.py | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/patchwork/filters.py b/patchwork/filters.py index 5650014..1995572 100644 --- a/patchwork/filters.py +++ b

[PATCH 08/10] filters: add Patch path filter

2016-08-23 Thread WEN Pingbo
Filtering patch with related file path is good for us to monitor all patch of a single directory or file. Signed-off-by: WEN Pingbo --- patchwork/filters.py | 43 +++ 1 file changed, 43 insertions(+) diff --git a/patchwork/filters.py b/patchwork

[PATCH 09/10] views: fixed filter error in about-project view

2016-08-23 Thread WEN Pingbo
After we added patch series and patch version, we can't filter patch in this way. Signed-off-by: WEN Pingbo --- patchwork/views/project.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patchwork/views/project.py b/patchwork/views/project.py index ea876b3..fd

[PATCH 04/10] bin/parsemail: fix wrong parsing of diff comments

2016-08-23 Thread WEN Pingbo
If the subject of a submission is prefixed by 'Re:', then it can't be a patch or cover letter. Signed-off-by: WEN Pingbo --- patchwork/bin/parsemail.py | 31 +++ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/patchwork/bin/parsemail

[PATCH 06/10] add patch version function

2016-08-23 Thread WEN Pingbo
Added a OneToOneField in submission to create a single list of patch version. And if two patches have the same raw subject(without prefixes), we treat it as the same patch with different version. Signed-off-by: WEN Pingbo --- patchwork/bin/parsemail.py| 25

[PATCH 05/10] add patch series function

2016-08-23 Thread WEN Pingbo
Added a ForeignKey in submission, and linked releated patches by 'In-Reply-To' or the first 'References'. Child emails must fill 'In-Reply-To' or 'References' with correct msg-id, or the parent field will keep empty. Signed-off-b

[PATCH 03/10] bin/parse: append parameters to parse script

2016-08-23 Thread WEN Pingbo
Sometimes, we need to pass parameters to python parsing script Signed-off-by: WEN Pingbo --- patchwork/bin/parsearchive.sh | 2 +- patchwork/bin/parsemail.sh| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/patchwork/bin/parsearchive.sh b/patchwork/bin/parsearchive.sh

[PATCH 01/10] stick django version to 1.8

2016-08-23 Thread WEN Pingbo
Avoiding below error: django.db.utils.ProgrammingError: relation "patchwork_state" does not exist LINE 1: ...dering", "patchwork_state"."action_required" FROM "patchwork... Signed-off-by: WEN Pingbo --- requirements-dev.txt | 2 +- requirements-prod.t

[PATCH 02/10] bin: add parsearchive wrapper

2016-08-23 Thread WEN Pingbo
Signed-off-by: WEN Pingbo --- patchwork/bin/parsearchive.sh | 29 + 1 file changed, 29 insertions(+) create mode 100755 patchwork/bin/parsearchive.sh diff --git a/patchwork/bin/parsearchive.sh b/patchwork/bin/parsearchive.sh new file mode 100755 index 000

[PATCH 00/10] patchwork enhancement for monitoring

2016-08-23 Thread WEN Pingbo
of this patch, and patch path filter, which can filter patch with related file path. Those patches have been tested by 37000 lkml patches. WEN Pingbo (10): stick django version to 1.8 bin: add parsearchive wrapper bin/parse: append parameters to parse script bin/parsemail: fix wrong

Re: parsemail.sh failed

2016-06-27 Thread WEN Pingbo
Thanks, Finucane The Django 1.8.13 works, previous version I used is Django 1.9.7. Pingbo 2016-06-27 21:24 GMT+08:00 Finucane, Stephen : > On 27 Jun 21:21, WEN Pingbo wrote: >> Hi, >> >> I got an error when importing some email to patchwork. >> >> Co

parsemail.sh failed

2016-06-27 Thread WEN Pingbo
Hi, I got an error when importing some email to patchwork. Command: cat ~/mail/mail.0P8xgrB1UW | ./patchwork/bin/parsemail.sh Output: File "/opt/patchwork/patchwork/bin/parsemail.py", line 39, in from django.contrib.auth.models import User File "/usr/local/lib/python2.7/dist-packages/dj

Re: ./manage.py migrate not work

2016-05-20 Thread WEN Pingbo
Hi, Stephen 2016-05-20 17:07 GMT+08:00 Finucane, Stephen : > On 20 May 16:44, WEN Pingbo wrote: >> I want to install patchwork in my local environment, by following >> development guide doc. But when I run './manage.py migrate' command, >> the script complains t

./manage.py migrate not work

2016-05-20 Thread WEN Pingbo
Hello, folks I want to install patchwork in my local environment, by following development guide doc. But when I run './manage.py migrate' command, the script complains that the 'patchwork_state' table not found. And I can not find the table definition. Did I miss something? Here are the outputs