]> git.ipfire.org Git - thirdparty/patchwork.git/commit
management: introduce replacerelations command
authorRohit Sarkar <rohitsarkar5398@gmail.com>
Sat, 1 Aug 2020 06:24:15 +0000 (11:54 +0530)
committerDaniel Axtens <dja@axtens.net>
Mon, 10 Aug 2020 01:44:40 +0000 (11:44 +1000)
commitfe0c0ca7279e35904c488dea57345e1d4f13f895
treeb8729932c03925beaed944463c2046de152663ac
parent8abd63eb75617ffff14205376ca6283c8f5e0ba2
management: introduce replacerelations command

The replacerelations script is used to ingest relations into Patchwork's
patch database. A patch groups file is taken as input, which on each
line contains a space separated list of patchwork ids denoting a
relation. All the existing relations in Patchwork's database are removed
and the relations read from the patch groups file are ingested.

Signed-off-by: Rohit Sarkar <rohitsarkar5398@gmail.com>
[dja: pep8, drop relations directory as empty dirs don't get stored by git,
      comment about how lines are generated.]
Signed-off-by: Daniel Axtens <dja@axtens.net>
docs/deployment/management.rst
patchwork/management/commands/replacerelations.py [new file with mode: 0644]
patchwork/tests/test_management.py