[OSM-talk] RR8 - Possible International Vandal

Frederik Ramm frederik at remote.org
Wed Sep 2 18:30:42 BST 2009


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.

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.

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.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"




More information about the talk mailing list