Unable to process SVN mv from outside prefix to inside

Bug #496914 reported by Robbert Klarenbeek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
svn2bzr
Fix Committed
Undecided
Unassigned

Bug Description

When having an SVN revision which moves a directory from one place to another, svn2bzr is unable to process this revision if it's using a prefix that doesn't include the source location of the move. The dump entry will be skipped, therefore creating an incomplete bzr branch from the SVN dump. Output of this is given below.

The dump file used was created like this:
# svnadmin create test
# svn co file:///my-absolute-path/test test-checkout
# cd test-checkout
# mkdir trunk
# svn add trunk
# svn ci -m "Test commit 1"
# mkdir test
# touch test/test.file
# svn add test
# svn ci -m "Test commit 2"
# svn mv test trunk
# svn st
# svn ci -m "Test commit 3"
# cd ..
# svnadmin dump test > test.dump

I've attached test.dump to easily reproduce this bug.

Output showing the bug:

# svn2bzr/svn2bzr.py --prefix=trunk test.dump test
Revision 0 read
Revision 1 read
Revision 2 read
Revision 3 read
Nothing changed in revision 1
...but committing revision properties (revno, message, committer, and timestamp) anyways
Committed revision 1
Nothing changed in revision 2
...but committing revision properties (revno, message, committer, and timestamp) anyways
Committed revision 2
error: Encountered error: 'NoneType' object has no attribute 'startswith'
while processing dump entry:
<DumpEntry "{'node-action': 'move', 'node-kind': 'dir', 'node-copyfrom-rev': 2, 'node-copyfrom-path': 'test', 'node-path': 'trunk/test'}">
Nothing changed in revision 3
...but committing revision properties (revno, message, committer, and timestamp) anyways
Committed revision 3
Exception exceptions.OSError: (2, 'No such file or directory', '/tmp/tmpp-jUT1-saved-trees') in <bound method Dump.__del__ of <dump.Dump object at 0x8015c3f10>> ignored

Related branches

Revision history for this message
Robbert Klarenbeek (wasabi34) wrote :
Changed in svn2bzr:
status: New → Confirmed
Changed in svn2bzr:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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