[PATCH v6 0/8] Add series support

Stephen Finucane stephen at that.guru
Sun Oct 16 23:50:46 AEDT 2016


Add support for series. Series are groups of patches sent as one
bundle. For example:

    [PATCH 0/3] A cover letter
      [PATCH 1/3] The first patch
      [PATCH 2/3] The second patch
      [PATCH 3/3] The third patch

The following features are currently provided:

Parsing
=======

* Creation of new series, and linking of patches/cover letters to
  existing series

UI
==

* Series column in patch-list
* Series and related patches/cover letters links in patch-detail
* Filtering by series
* Integration with django-admin

Changes since v5:
- Store first patch name into SeriesRevision.name field if no cover
  letter name or custom name is set

Stephen Finucane (8):
  models: Convert functions to properties
  models: Add 'SeriesRevision' model
  parser: Add series parsing
  tests: Add mbox files for series tests
  tests: Add tests for series
  templates: Generate and use a "handle"
  templates: Integrate series support
  templates: Integrate series view into patches

 htdocs/css/style.css                               |   6 +
 patchwork/admin.py                                 |  67 +++-
 patchwork/filters.py                               |  56 ++-
 patchwork/migrations/0015_add_series_models.py     |  67 ++++
 patchwork/models.py                                | 208 ++++++++++-
 patchwork/parser.py                                | 130 ++++++-
 patchwork/templates/patchwork/patch-list.html      |  14 +
 patchwork/templates/patchwork/submission.html      |  64 +++-
 patchwork/templatetags/person.py                   |  10 +-
 patchwork/tests/series/README.md                   |  18 +
 patchwork/tests/series/base-cover-letter.mbox      | 126 +++++++
 patchwork/tests/series/base-no-cover-letter.mbox   | 110 ++++++
 patchwork/tests/series/base-out-of-order.mbox      | 126 +++++++
 patchwork/tests/series/revision-basic.mbox         | 283 ++++++++++++++
 .../tests/series/revision-no-cover-letter.mbox     | 249 +++++++++++++
 patchwork/tests/series/revision-out-of-order.mbox  | 287 +++++++++++++++
 .../tests/series/revision-threaded-to-cover.mbox   | 292 +++++++++++++++
 .../tests/series/revision-threaded-to-patch.mbox   | 287 +++++++++++++++
 patchwork/tests/series/revision-unlabeled.mbox     | 283 ++++++++++++++
 patchwork/tests/test_parser.py                     | 112 +++++-
 patchwork/tests/test_series.py                     | 408 +++++++++++++++++++++
 patchwork/tests/utils.py                           |  25 ++
 patchwork/views/__init__.py                        |   8 +-
 patchwork/views/patch.py                           |   4 +-
 patchwork/views/user.py                            |   2 +-
 patchwork/views/xmlrpc.py                          |   2 +-
 26 files changed, 3173 insertions(+), 71 deletions(-)
 create mode 100644 patchwork/migrations/0015_add_series_models.py
 create mode 100644 patchwork/tests/series/README.md
 create mode 100644 patchwork/tests/series/base-cover-letter.mbox
 create mode 100644 patchwork/tests/series/base-no-cover-letter.mbox
 create mode 100644 patchwork/tests/series/base-out-of-order.mbox
 create mode 100644 patchwork/tests/series/revision-basic.mbox
 create mode 100644 patchwork/tests/series/revision-no-cover-letter.mbox
 create mode 100644 patchwork/tests/series/revision-out-of-order.mbox
 create mode 100644 patchwork/tests/series/revision-threaded-to-cover.mbox
 create mode 100644 patchwork/tests/series/revision-threaded-to-patch.mbox
 create mode 100644 patchwork/tests/series/revision-unlabeled.mbox
 create mode 100644 patchwork/tests/test_series.py

-- 
2.7.4



More information about the Patchwork mailing list