Set "topic" of multiple patches simultaneously in gerrit

897 views Asked by At

Is there a simpler way to set topic for multiple patches(around 70 patches all under 1 branch) in gerrit (Ideally in 1 -go)

2

There are 2 answers

0
uwolfer On BEST ANSWER

You can push all these changes again to the refs/for/<branch> branch. There you can use the %topic=<topic> suffix; e.g. refs/for/master%topic=my-topic.

See: https://gerrit-review.googlesource.com/Documentation/user-upload.html#push_create

2
sschuberth On

You can use the REST API to set the topic for existing changes.