NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

15
3

How can I undo or revert a changeset I or someone else has created?

asked 02 Sep '10, 14:38

katpatuka's gravatar image

katpatuka
1.0k152636
accept rate: 12%


12

First of all, you should generally not undo someone else's changeset without talking to them first, and giving them a chance to repair any damage they might have done themselves, or explain why what they did is actually correct. In most cases, a response is not urgent - you can afford to give the person some time to react. (Of course there are cases of obvious vandalism where this does not hold - but often what looks like vandalism can be a newbie having misunderstood something!)

The JOSM editor has a changeset revert plugin that lets you revert changes. There's also code in SVN under applications/utils/revert which you can use if you are somewhat proficient in Perl.

Reverting changesets can be tricky, and you can inadvertently break things yourself if you are inexperienced. Under no circumstances should you attempt a revert if you are not 100% sure that, should something go wrong, you can fix it again.

permanent link

answered 02 Sep '10, 15:19

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

The wiki page 'Change Rollback' lists various options. None of them are completely straightforward though.

Although we model OpenStreetMap on wiki principles, change rollback is not as simple as with a textual wiki. Within our interlinked vector geo-data, if edits from different users start to overlap, it can be extremely awkward.

In the future, with more careful design and development work we may be able to present change rollback tools to "mainstream" users. In the meantime the wiki page lists "power user" tools, which you should not use if you are inexperienced (Ask for help instead)

permanent link

answered 04 Sep '10, 12:16

Harry%20Wood's gravatar image

Harry Wood
9.5k2588128
accept rate: 14%

For the first part don't delete other peoples work without contacting them first.

Changesets can not be "deleted" but can be reverted with another changeset. Take care that none of the objects changed has since been changed again that could lead to conflicts. If you can use JOSM probably the easiest way is to use the reverter plugin. Otherwise there are revert scripts that can revert the changeset from the command line.

If you have trouble or doubt about how to or if you should do an revert you should contact someone on IRC or a mailing list that can revert the changeset for you.

permanent link

answered 02 Sep '10, 15:21

Gnonthgol's gravatar image

Gnonthgol ♦
13.8k16103198
accept rate: 16%

edited 06 Sep '10, 16:39

Jonathan%20Bennett's gravatar image

Jonathan Ben...
8.3k1785108

Howto on Using JOSM revert plugin, from the mailing list

  1. Check from looking at the changeset that at least some objects haven't been reverted or modified already.
  2. Start josm-tested.jar (in this case from 2nd September 2011)
  3. Despite the prompt I didn't update JOSM or any plugins at this stage (you need to have the plug in installed of course).
  4. Download some data (any data) so that the history menu entry is not greyed out.
  5. Click History / Revert Changeset
    1. choose e.g. changeset 10333257
    2. Fully revert / revert
    3. Say "yes" to download objects
  6. Upload data.
  7. Review warnings - there's nothing iffy there, so I'll continue the upload.
  8. Use changeset comment "Revert changeset 10333257 at the request of its author"
  9. Close JOSM
  10. Then on OSM webpage browse to original changeset and check that some of the data has been reverted.

By SomeoneElse

permanent link
This answer is marked "community wiki".

answered 19 Jan '12, 09:09

emj's gravatar image

emj
2.0k123547
accept rate: 15%

edited 19 Jan '12, 09:11

1

As a bit of background to that, it's worth mentioning that that was in reply to a "JOSM revert plugin doesn't work for me" question - that was the reason for using a "known good" version of JOSM and the reverter plugin. I'm not aware of problems with later versions.

One other thing - the first time that you install the reverter plugin the "history" menu may not appear immediately and you may need to restart JOSM one more time than you expect in order to see it.

Finally - all the caveats in answers previously given and on the wiki 'Change Rollback' page still apply, of course.

(19 Jan '12, 11:48) SomeoneElse ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×127
×86
×24

question asked: 02 Sep '10, 14:38

question was seen: 29,900 times

last updated: 19 Jan '12, 11:48

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum