Bugs item #3569058, was opened at 2012-09-18 12:27 Message generated for change (Comment added) made by russblau You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3569058...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: rewrite Group: None
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Morten Wang (nettrom) Assigned to: Russell Blau (russblau) Summary: total-parameter for Page.getVersionHistory is incorrect
Initial Comment: The documentation for getVersionHistory() describes the "total" parameter with: iterate no more than this number of revisions in total
This might be interpreted as getVersionHistory(total=25) would result in a revision list with len()==25, but that appears to not be the case. The attached test script prints out lengths that instead suggests the number of revisions returned equals sum(range(total+1)) (the sum of integers {1,2,...,25} is 325).
Output of version.py: Pywikibot [http] branches/rewrite/scripts (r10525, 2012/09/16, 02:32:32) Python 2.7.1 (r271:86832, Feb 8 2011, 09:38:37) [GCC 4.2.3] unicode test: triggers problem #3081100
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2012-11-01 13:25
Message: Fixed in rev. 10647
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3569058...