RemoteAccess.iter_log sometimes skips revisions

Bug #611901 reported by Jelmer Vernooij
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
subvertpy
Fix Released
High
Jelmer Vernooij

Bug Description

RemoteAccess.iter_log seems to sometimes raise StopIteration too early. It appears this has something to do with timing.

Jelmer Vernooij (jelmer)
Changed in subvertpy:
milestone: none → 0.7.4
importance: Undecided → High
status: New → Triaged
Revision history for this message
Max Bowsher (maxb) wrote :

Here is an example which consistently reproduces the bug for me:

#!/usr/bin/python
from subvertpy.ra import RemoteAccess
conn = RemoteAccess("http://svn.eu.apache.org/repos/asf")
i = conn.iter_log(['httpcomponents/httpcore/branches/4.0.x'], 991314, 0, 0, False, False, False, revprops=None)
revnum = list(i)[-1][1]
print revnum
if revnum == 751780:
    print "iter_log stopped in the buggy place"
elif revnum == 152943:
    print "iter_log stopped in the right place"
else:
    print "iter_log stopped somewhere wholly unexpected"

I am rather perplexed, since writing a piece of C code which makes the supposedly-identical svn_ra_get_log2 call correctly finds more revisions.

Revision history for this message
Max Bowsher (maxb) wrote :

Attaching the example C code in case it is of any use.

Jelmer Vernooij (jelmer)
Changed in subvertpy:
assignee: nobody → Jelmer Vernooij (jelmer)
status: Triaged → In Progress
Jelmer Vernooij (jelmer)
Changed in subvertpy:
status: In Progress → Fix Committed
Jelmer Vernooij (jelmer)
Changed in subvertpy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.