[PATCH v7 0/8] Add series support

Stephen Finucane stephen at that.guru
Sun Oct 30 00:13:32 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 v6:
- Renamed 'SeriesRevision' to 'Series'
- Various cleanup fixes per review comments

Stephen Finucane (8):
  models: Convert functions to properties
  models: Add 'Series' model
  parser: Add series parsing
  tests: Add mbox files for series tests
  tests: Add tests for series
  filters: Handle invalid ids
  templates: Integrate series support
  templates: Integrate series view into patches

 htdocs/css/style.css                               |   6 +
 patchwork/admin.py                                 |  54 ++-
 patchwork/filters.py                               |  79 +++-
 patchwork/migrations/0015_add_series_models.py     |  67 ++++
 patchwork/models.py                                | 169 ++++++++-
 patchwork/parser.py                                | 138 ++++++-
 patchwork/templates/patchwork/patch-list.html      |  13 +
 patchwork/templates/patchwork/submission.html      |  64 +++-
 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 +-
 25 files changed, 3148 insertions(+), 64 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