[Talk-GB] Request to revert changeset

Frederik Ramm frederik at remote.org
Tue Sep 15 09:41:30 BST 2009


Hi,

Tom Chance wrote:
> Is it possible to revert all the changes to relations in changeset 2458838?
> http://www.openstreetmap.org/browse/changeset/2458838

Done.

For the record:

1. wget -O foo 
'http://api.openstreetmap.org/api/0.6/changeset/2458838/download'

2. grep relation foo |grep id|cut -d\" -f2 > bar

3. perl changeset.pl create

(note number of created changeset)

4. while read id; do perl undo.pl relation $id 2458838 
(number_from_step3); done < bar

5. perl changeset.pl close (number_from_step3) "revert relation edits 
from changeset 2458838 on request of Tom Chance"

This procedure reverts all relations touched in the given changeset back 
to what they were before.

PLEASE DO NOT USE THIS IF YOU DO NOT UNDERSTAND IT.

Bye
Frederik





More information about the Talk-GB mailing list