- elsif new_relation.version != version
- raise OSM::APIVersionMismatchError.new(new_relation.version, version)
- elsif new_relation.changeset.user_id != user.id
- raise OSM::APIUserChangesetMismatchError.new
- elsif not new_relation.changeset.open?
- raise OSM::APIChangesetAlreadyClosedError.new
- else
- # FIXME need to deal with changeset etc
- #self.user_id = user.id
- self.changeset = new_relation.changeset
- self.tags = new_relation.tags
- self.members = new_relation.members
- self.visible = true
- save_with_history!