[OSM-talk] RR8 - Possible International Vandal

Ævar Arnfjörð Bjarmason avarab at gmail.com
Wed Sep 2 20:50:35 BST 2009


On Wed, Sep 2, 2009 at 5:30 PM, Frederik Ramm<frederik at remote.org> wrote:
> Hi,
>
> Ævar Arnfjörð Bjarmason wrote:
>>
>> So to revert them all do I just do:
>>
>> 1. perl changeset.pl create
>>
>> (& note the id changeset.pl returns)
>>
>> 2. for vandal_id in $(bzgrep RR8 iceland.osm.bz2 |perl -pe
>> 's/.*changeset="(.*?)".*/$1/' | sort | uniq | sort -n); do perl
>> revert.pl $vandal_id $CURRENT_CHANGESET; done
>>
>> I.e. revert the oldest changesets first.
>>
>> 3. perl changeset.pl close $CURRENT_CHANGESET "Reverted edits by RR8
>> edits to Iceland. See OSM-talk"
>
> revert.pl should be able to combine steps 1-3 for you, if you just call
> "perl revert.pl $vandal_id". There was a bug in the SVN version which I
> hopefully just fixed to allow this.

The revert.pl script doesn't have docs for this and I can't see
anywhere in the code where it would get a list of all changesets by a
userr.

> I would suggest to replace "sort | uniq | sort -n" by "sort -run" (reverse
> order). That way, if the vandal created a node in changeset 1 and used it to
> build a way in changeset 2, you first delete the way and later the node...
> rather than the other way round which would fail.

Yes sounds good.

> None of this is failure safe but it's worth a try. - What I would probably
> do is download all changesets, merge them into one, sort it suitably, and
> then try to undo the changes en bloc. This would not necessarily work
> better, just give me the feeling of being more in control.

Combine them how? Using osmosis?

Anyway would you be willing to do the revert using your tools? I only
want to mess with this if nobody else is willing to.

If not all of his changesets then at least the edits he's made to
Iceland. Those should all be reverted.




More information about the talk mailing list