6 Commits

Author SHA1 Message Date
David Pursehouse
77abe31431 abandon_stale: Use pygerrit2 instead of pygerrit
Change-Id: I2cd6149800368e02805e60b854bc86604cce405f
2016-09-23 08:51:05 +02:00
David Pursehouse
a55ed3dba4 abandon_stale.py: fix typo in option handling
Change-Id: I8950cd26fa852a394b1984e52b0f74092d6f8db5
2016-02-15 08:21:57 +00:00
David Pursehouse
0198978dc5 abandon_stale.py: Allow to limit by branch and project
Change-Id: Id73923c17ecfc62cb4b911dfbee793a4c9102a7d
2016-02-01 10:38:12 +09:00
David Pursehouse
25bebb136b abandon_stale: Allow singular form of age parameter
Change-Id: I87396d6fd223f930e46a85c7f67419c0e2b74b4f
2015-07-06 12:12:28 +09:00
David Pursehouse
e766d2ca37 abandon_stale: Allow weeks as an age parameter
Change-Id: I206a3b137fa5cf69f9b8a54541cf32c16a372d83
2015-07-06 12:09:52 +09:00
David Pursehouse
522e4f8bd4 Script to abandon stale changes from the review server
Fetches a list of open changes that have not been updated since a
given age (default 6 months), and then abandons them.

Assumes that the user's credentials are in the .netrc file.  Supports
either basic or digest authentication.

Example to abandon changes that have not been updated for 3 years:

 ./abandon_stale --gerrit-url http://review.example.com/ --age 3years

Supports dry-run mode to only list the stale changes but not actually
abandon them.

Requires pygerrit (https://github.com/sonyxperiadev/pygerrit).

Change-Id: Ie0edb54847f9f2ab8204647e17e3893ed0a057ea
2015-06-30 14:02:00 +00:00