Unable to process SVN mv from outside prefix to inside
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://
# 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-
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-
Related branches
- svn2bzr: Pending requested
-
Diff: 12 lines (+2/-0)1 file modifiedbranchcreator.py (+2/-0)
Changed in svn2bzr: | |
status: | New → Confirmed |
Changed in svn2bzr: | |
status: | Confirmed → Fix Committed |