[Pkg-bazaar-maint] Bug#428757:

tomga tomga at aster.pl
Thu Jun 14 06:40:14 UTC 2007


I think that we hit two things here.

Output you requested:

**** entering debugger
>
/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/fetch.py(261)close_file()
-> ie.symlink_target = lines[0][len("link "):]
(Pdb) print lines
[]
(Pdb)

This can be happening because a symbolic link pointing to outside of
repository has been commited in bazaar repository. Maybe this
exception
is thrown because of this.

Anyway I have made a sample session from scratch which IMHO shows that
something is very wrong and this package is really unusable right now.

tst:~$ mkdir test
tst:~$ cd test
#create empty svn repository
tst:~/test$ mkdir svnrepo
tst:~/test$ svnadmin create svnrepo
#create empty bzr repository
tst:~/test$ mkdir bzrrepo
tst:~/test$ bzr init bzrrepo
#create directory a1, commit and push to svn repo
tst:~/test$ cd bzrrepo/
tst:~/test/bzrrepo$ mkdir a1
tst:~/test/bzrrepo$ bzr add a1
added a1
tst:~/test/bzrrepo$ bzr commit -m "created a1"
added a1
Committed revision 1.
tst:~/test/bzrrepo$ bzr push file:///home/tomga/test/svnrepo
Pushed up to revision 1.
#create directory a2, commit and push to svn repo
tst:~/test/bzrrepo$ mkdir a2
tst:~/test/bzrrepo$ bzr add a2
added a2
tst:~/test/bzrrepo$ bzr commit -m "created a2"
added a2
Committed revision 2.
tst:~/test/bzrrepo$ bzr push file:///home/tomga/test/svnrepo
bzr: ERROR: These branches have diverged.  Try using "merge" and
then "push".
#checkout svn repo and examin log
tst:~/test/bzrrepo$ cd ..
tst:~/test$ svn co file:///home/tomga/test/svnrepo svnco
A    svnco/a1
U   svnco
Checked out revision 1.
tst:~/test$ cd svnco
tst:~/test/svnco$ svn log
------------------------------------------------------------------------
r1 | tomga | 2007-06-14 08:08:19 +0200 (Thu, 14 Jun 2007) | 1 line

created a1
------------------------------------------------------------------------
tst:~/test/svnco$ cd ..
#merge bzr repo with svn repo - it seems that it incorrectly resolved
"common root"
tst:~/test$ cd bzrrepo/
tst:~/test/bzrrepo$ bzr merge file:///home/tomga/test/svnrepo
+N  a1/
-D  a1/
All changes applied successfully.
tst:~/test/bzrrepo$ bzr status
removed:
a1/
a2/
pending merges:
tomga 2007-06-14 created a1
tst:~/test/bzrrepo$


I hope this helps.

Regards
Tomasz Gajewski





More information about the Pkg-bazaar-maint mailing list