The parserelations command will be used to bulk import patch relations into Patchwork using a "patch groups" file. The patch groups file is structured such that each line contains a relation and an optional upstream commit reference. Eg patch groups file contents. 1 3 4 2 5 9 10 => <commit-hash-1> <commit-hash-2>
In this case 2 relations will be ingested into Patchwork, (1,3,4) and (5,9,10). Further group (5,9,10) also points to two upstream commit references. Note that before ingesting the relations the existing relations in the DB are removed. Currently the commit references are not used, as in Patchwork's model a patch points to a single commit reference. Some more tests will be added if this patch looks good. Rohit Sarkar (1): management: introduce parserelations command docs/deployment/management.rst | 27 +++++++ .../management/commands/parserelations.py | 78 +++++++++++++++++++ patchwork/tests/test_management.py | 7 ++ 3 files changed, 112 insertions(+) create mode 100644 patchwork/management/commands/parserelations.py -- 2.23.0.385.gbc12974a89 _______________________________________________ Patchwork mailing list [email protected] https://lists.ozlabs.org/listinfo/patchwork
