I guess that mediawiki lacks this feature, so I made
https://bugzilla.wikimedia.org/show_bug.cgi?id=62698
On Sat, Mar 15, 2014 at 11:53 AM, Petr Bena <benapetr(a)gmail.com> wrote:
How to edit a page using api only if it wasn't
changed since given
time? Basetimestamp apparently doesn't help here because it auto-merge
the edit in case of conflict instead of refusing it and some edits
just aren't supposed to be auto-merged - the text which is to be
appended is based on current content of a page.
Documentation say:
basetimestamp: Timestamp of the base revision (obtained through
prop=revisions&rvprop=timestamp). Used to detect edit conflicts; leave
unset to ignore conflicts
starttimestamp: Timestamp when you started editing the page (e.g.,
when you fetched the current revision's text to begin editing it or
checked the (non-)existence of the page). Used to detect edit
conflicts; leave unset to ignore conflicts
for both it just say "used to detect edit conflict" but it doesn't say
how the edit conflicts are treated. Is it possible to just reject the
edit in case there is any conflict?