[darcs-devel] [issue1513] reconstruct nosy list on all bugs

Eric Kow bugs at darcs.net
Thu Aug 6 21:14:18 UTC 2009

New submission from Eric Kow <kowey at darcs.net>:

Argh, I messed up the nosy list on a whole bunch of bugs.  The good news is that
it should be possible to restore these lists, but it'll take a bit of
programming work, probably best in Python.

I wanted to remove David from a bunch of bugs (he expressed an interest in
this), so using roundup-admin, I created a list of all bugs owned by David.

Then with a little scripting, I created a gigantic

 set issueXXX,..,issueYYY nosy=-droundy

While this appeared to remove David, I was puzzled as to why it was adding and
removing users seemingly at random.  Only much later did I realise that what it
(must have) done was to infer a nosy list for issueXXX (i.e. by removing droundy
from that list), and that apply that SAME list to ALL the issues!

The good news is that we can query the history for all issues, and so we can
fairly easily look up all the instances where this happened, for example, by
searching for events such as:
('534', <Date 2009-08-06.17:45:16.500>, '1', 'set', {'nosy': (('+', ['25',
'996', '991', '17', '1555', '178', '517'])

Note in particular the date.  So in principle, we just have to reverse these
actions, removing the users we added (and more importantly), re-adding the users
we removed (sans user3, droundy).

I did have a little voice in my head telling me I should have made a backup...

assignedto: kowey
messages: 8040
nosy: Serware, dmitry.kurochkin, kowey, simon, thorkilnaur
priority: bug
status: unread
title: reconstruct nosy list on all bugs
topic: BugTracker

Darcs bug tracker <bugs at darcs.net>

More information about the darcs-devel mailing list