[PATCH 00/14] Series models & parsing (v3)

Damien Lespiau damien.lespiau at intel.com
Wed Oct 21 08:59:29 AEDT 2015


A few changes from v2:

  - Use 'Series without cover letter' as default name (Belen Pena)
  - Merge the series migration into the model commit (Stephen Finucane)
  - Add untested SQL statements for manual migrations (Stephen Finucane)

    It's totally unmaintenable to have those manual SQL statements for
    migrations. I wish we just ditched django 1.6.

  - A few minor changes in the documentation.

Damien Lespiau (14):
  parsemail: Return the list of prefixes when cleaning up the subject
  parsemail: Make find_content() return a MailContent object
  parsemail: Add a function to parse series markers eg. "1/12"
  parsemail: Extract building the list of mail references
  tests: Make sure all emails have a valid msgid
  series: Add a Series model
  series: Create Series objects when parsing mails
  series: Add unit tests for Series parsing
  tests: Save the test project if we're going to use it
  tests: Add a utility class to create Series
  series: Parse new versions of patches sent as replies to a Series
  series: Add a signal to notify when a revision is complete
  series: New series with similar titles as previous ones are new
    revisions
  docs: Add a user-oriented explanation of series parsing

 docs/index.rst                                     |   1 +
 docs/manual.rst                                    | 143 ++++++
 lib/sql/grant-all.mysql.sql                        |   6 +
 lib/sql/grant-all.postgres.sql                     |  17 +-
 lib/sql/migration/016-add-series.sql               |  23 +
 patchwork/bin/parsemail.py                         | 333 +++++++++++--
 patchwork/migrations/0003_series.py                |  73 +++
 patchwork/models.py                                | 121 +++++
 patchwork/tests/mail/series/0001-single-mail.mbox  |  75 +++
 .../series/0010-multiple-mails-cover-letter.mbox   |  57 +++
 .../series/0011-multiple-mails-cover-letter.mbox   |  64 +++
 .../series/0012-multiple-mails-cover-letter.mbox   | 348 ++++++++++++++
 .../series/0013-multiple-mails-cover-letter.mbox   |  63 +++
 .../series/0014-multiple-mails-cover-letter.mbox   | 232 +++++++++
 .../0020-multiple-mails-no-cover-letter.mbox       | 103 ++++
 .../0021-multiple-mails-no-cover-letter.mbox       | 104 ++++
 .../0022-multiple-mails-no-cover-letter.mbox       |  95 ++++
 .../tests/mail/series/0030-patch-v2-in-reply.mbox  |  80 ++++
 .../tests/mail/series/0031-patch-v2-in-reply.mbox  | 119 +++++
 .../tests/mail/series/0032-patch-v2-in-reply.mbox  |  97 ++++
 .../tests/mail/series/0033-patch-v2-in-reply.mbox  |  88 ++++
 patchwork/tests/test_patchparser.py                | 121 +++--
 patchwork/tests/test_series.py                     | 530 +++++++++++++++++++++
 patchwork/tests/utils.py                           |  92 +++-
 24 files changed, 2916 insertions(+), 69 deletions(-)
 create mode 100644 docs/manual.rst
 create mode 100644 lib/sql/migration/016-add-series.sql
 create mode 100644 patchwork/migrations/0003_series.py
 create mode 100644 patchwork/tests/mail/series/0001-single-mail.mbox
 create mode 100644 patchwork/tests/mail/series/0010-multiple-mails-cover-letter.mbox
 create mode 100644 patchwork/tests/mail/series/0011-multiple-mails-cover-letter.mbox
 create mode 100644 patchwork/tests/mail/series/0012-multiple-mails-cover-letter.mbox
 create mode 100644 patchwork/tests/mail/series/0013-multiple-mails-cover-letter.mbox
 create mode 100644 patchwork/tests/mail/series/0014-multiple-mails-cover-letter.mbox
 create mode 100644 patchwork/tests/mail/series/0020-multiple-mails-no-cover-letter.mbox
 create mode 100644 patchwork/tests/mail/series/0021-multiple-mails-no-cover-letter.mbox
 create mode 100644 patchwork/tests/mail/series/0022-multiple-mails-no-cover-letter.mbox
 create mode 100644 patchwork/tests/mail/series/0030-patch-v2-in-reply.mbox
 create mode 100644 patchwork/tests/mail/series/0031-patch-v2-in-reply.mbox
 create mode 100644 patchwork/tests/mail/series/0032-patch-v2-in-reply.mbox
 create mode 100644 patchwork/tests/mail/series/0033-patch-v2-in-reply.mbox
 create mode 100644 patchwork/tests/test_series.py

-- 
2.4.3



More information about the Patchwork mailing list