Ticket #385 (closed defect: fixed)
SVNPoller transform_path AssertionError when change includes modifications to files inside and outside the svnurl
|Reported by:||mmacvicar||Owned by:|
|Cc:||dwlocks, J2ck, flaviojs, bdbaddog|
SVNPoller transform_path AssertionError? when change includes modifications to files inside and outside the svnurl
I had my SVNPoller set up to monitor svnurl=' http://subversion/trunk/Code'. A checkin was made that changed files in /trunk/Code and /trunk/QA, but the change was ignored and the error below was written to twistd.log. I would expect it to be able to handle checkins that have file modifications inside and outside the svnurl.
2008/11/14 18:09 -0800 [-] svnPoller: _process_changes 10523 .. 10524 2008/11/14 18:09 -0800 [-] Adding change revision 10524 2008/11/14 18:09 -0800 [-] SVNPoller failed 2008/11/14 18:09 -0800 [-] _finished : [Failure instance: Traceback: <type 'exceptions.AssertionError'>: filepath 'trunk/QA/Tests/TriTests/StressShadePrim.cpp' should start with prefix 'trunk/Code' /usr/local/lib/python2.5/site-packages/twisted/internet/defer.py:304:_startRunCallbacks /usr/local/lib/python2.5/site-packages/twisted/internet/defer.py:317:_runCallbacks /usr/local/lib/python2.5/site-packages/twisted/internet/defer.py:281:_continue /usr/local/lib/python2.5/site-packages/twisted/internet/defer.py:277:unpause --- <exception caught here> --- /usr/local/lib/python2.5/site-packages/twisted/internet/defer.py:317:_runCallbacks /usr/local/lib/python2.5/site-packages/buildbot/changes/svnpoller.py:413:create_changes /usr/local/lib/python2.5/site-packages/buildbot/changes/svnpoller.py:375:_transform_path /usr/local/lib/python2.5/site-packages/buildbot/changes/svnpoller.py:20:_assert ]
I can work around this issue by truncating the svnurl to ' http://subversion' and using split_file to generate (branch, filepath) information, but that wasn't very intuitive.
- Set your SVNPoller svnurl to a branch (e.g., svnurl=' http://subversion/trunk/Code')
- submit a change that include files in that branch and files outside of that branch.
comment:11 Changed 4 months ago by Tom Prince
- Status changed from new to closed
- Resolution set to fixed