bzr svn-import with a deep branch layout

John Arbash Meinel john at arbash-meinel.com
Tue Oct 27 15:05:21 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Russ Brown wrote:
> Hi,
> 
> I'm trying to import our old svn repository into bzr for easier historical 
> digging. Partway through its life merging became managed by svk, so I'm really 
> hoping for merges to be properly represented in the resultant bzr repository.
> 
> However, I'm having a little trouble. The repository is over 43k revisions and 
> 13G in size. Trying to do the import in one go has proven to be impossible due 
> to memory being exhausted, so I'm now doing it using the --until option and 
> incrementing by 1000 revisions at a time.
> 
> However, it is getting slower and slower, and I'm starting to wonder if svn-
> import is having trouble properly detecting our branches properly.
> 
> We structured our repository like this:
> 
> trunk
> branches/
> branches/categoryA
> branches/categoryA/branch1
> branches/categoryA/branch2
> branches/categoryB
> branches/categoryB/branch1
> branches/categoryB/branch2
> 
> etc.
> 
> In other words, the directories beneath the branches directory are not 
> themselves branches, but other plain directories which contain the actual 
> branches.
> 
> Looking in my bzr import directory currently, I see the category directories, 
> but no branch directories within them. Furthermore, the category directories 
> contain .bzr directories, which makes me think that svn-import is treating 
> them as directories. If that is the case, svn-import could see actual branch 
> creation operations as being massive copies into what it sees as being 
> branches, which could explain the slowdown.
> 
> Are my suspicions correct, and if so is there any way to get svn-import to 
> detect branches by noticing copies of trunk, rather than simply looking for 
> subdirectories of branches?
> 
> Thanks.
> 

I'm pretty sure you can teach bzr-svn about custom branching schemes. I
don't remember all of the details, though.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrnDDEACgkQJdeBCYSNAANrJgCghWRY9RtJBYPSltUXBQP8Dghq
VG0An2ngefDOnq61FpUhvbxGHBhi5s4j
=i0Tm
-----END PGP SIGNATURE-----



More information about the bazaar mailing list