[OSM-talk] RR8 - Possible International Vandal
Ævar Arnfjörð Bjarmason
avarab at gmail.com
Wed Sep 2 15:30:02 BST 2009
On Wed, Sep 2, 2009 at 1:27 PM, Lester Caine<lester at lsces.co.uk> wrote:
> It does sound as if it has reached the point where NONE of his edits can
> be shown to be beneficial. So perhaps it is time simply to revert them
> all? Especially if he is unwilling to defend his actions?
Oh yes "simply".
I'm interested in mass-reverting his edits in Iceland. Apparently the
revert.pl script can be used for this. And it looks like around 60
changesets have been made by RR8 to Iceland:
avar at aoeu:/tmp$ wget -q http://download.geofabrik.de/osm/europe/iceland.osm.bz2
2009-09-02 14:22:47 (138 KB/s) - `iceland.osm.bz2' saved [4204618/4204618]
avar at aoeu:/tmp$ bzgrep RR8 iceland.osm.bz2 |perl -pe
's/.*changeset="(.*?)".*/$1/' | sort | uniq | sort -n | wc -l
61
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"
?
More information about the talk
mailing list