I have more information to tell you: I had called getVersionHistory() and getOldVersion() before putting text in the old code. After accidentally changing code to create new page object after fetching data, but before putting text, the problem is solved. I don't know why. Anyway, I don't use trunk release anymore.

I will send you the links in case you need it.

* th.wikipedia.org/w/index.php?title=ผู้ใช้:Nullzerobot/บริการย้ายหมวดหมู่/หมวดหมู่ที่รอการย้าย&diff=4655619&oldid=4655606
* th.wikipedia.org/w/index.php?title=ผู้ใช้:Nullzerobot/บริการย้ายหมวดหมู่/หมวดหมู่ที่รอการย้าย&diff=4655667&oldid=4655619
* th.wikipedia.org/w/index.php?title=ผู้ใช้:Nullzerobot/บริการย้ายหมวดหมู่/หมวดหมู่ที่รอการย้าย&diff=4655702&oldid=4655700


On Sun, Apr 14, 2013 at 4:02 AM, Merlijn van Deen <valhallasw@arctus.nl> wrote:
Hi Sorawee,

On 18 February 2013 17:16, Sorawee Porncharoenwase
<nullzero.free@gmail.com> wrote:
> Today, I put text to a page by my bot. pywikibot.showDiff() shows clearly
> that text is removed from previous revision for 2 lines and code returns
> from put() also indicate that putting succeeds
>
> However, actually the text isn't changed! History page shows me that the
> text is added 1 byte (or sometimes o byte), but the content and its previous
> version are really the same.

Note that pywikibot.showDiff() and the Mediawiki diff are not
necessarily the same due to normalization etc on Mediawiki's end. What
was the change you were trying to make, and on which page?

Merlijn

_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l