[PATCH v3 0/5] Resolve issues with 'tools' scripts

Stephen Finucane stephen at that.guru
Thu Dec 1 20:46:47 AEDT 2016


There are two scripts provided in tools that reference the removed
hash function of the 'parser' script. Move this hash function back into
its own module and update these scripts to use said module.

Changes since v2:
- Only move the hash function into its own module
- Don't use argparse as it's not really needed

Stephen Finucane (5):
  parser: Remove unused parameter
  parser: Trivial rename of functions
  hasher: Create hasher module
  tools: Trivial formatting fixes
  tools: Update to use 'hasher'

 patchwork/hasher.py            |  87 +++++++++++++++++++++++++++++++
 patchwork/models.py            |  52 +-----------------
 patchwork/parser.py            |  14 +++--
 patchwork/tests/test_parser.py |  31 ++++-------
 tools/patchwork-update-commits |  33 +++++++++---
 tools/post-receive.hook        | 116 ++++++++++++++++++++++++-----------------
 6 files changed, 199 insertions(+), 134 deletions(-)
 create mode 100644 patchwork/hasher.py

-- 
2.9.3



More information about the Patchwork mailing list