bzr-svn svn-import and history across svn "renames"
Jelmer Vernooij
jelmer at samba.org
Wed Jun 30 09:56:20 BST 2010
Hi Chris,
On Wed, 2010-06-30 at 00:14 -0700, Chris Hecker wrote:
> I'm trying to switch from svn to bzr, and I've got my big old svn repo
> filtered out the way I want it. If I check out the repo with svn, all
> the files are in the right place right, and all have the correct
> history. The repo has no trunk/branches/tags structure, it's just a
> directory tree.
>
> If I bzr svn-import this repo, it seems to work fine, in that checking
> out the latest version works, but none of the files that were "renamed"
> inside the directories in svn at any point have history across the
> rename. I understand that bzr doesn't support copies, and svn does
> renames with copy+delete, but the bzr-svn page seems to imply that
> history is kept across copies, or is this only true for branches from
> the trunk and it's special cased for the trunk/branches/tags format?
>
> I have a lot of file renames in my svn repo and I was hoping those would
> be converted to bzr renames. Am I doing something wrong, or am I
> missing something?
>
> Example:
>
> Say there's a file /a.cpp, and I svn mv'd it to /code/a.cpp at r23, and
> then worked on it some more. When I import to bzr, /code/a.cpp is
> there, and the history is there back to what was r23, but it doesn't
> have any idea about the relationship with /a.cpp. svn log code/a.cpp
> follows the history across the copy, of course.
>
> Is there any way to get the svn renames to be recognized by bzr? Should
> this be working and I've screwed something up with my svn dump
> filtering? The fact that svn works properly on this repo seems to
> indicate it's okay.
It's correct that this doesn't work. bzr-svn doesn't infer renames from
copy+delete operations in Subversion. It is able to push renames that
were made in Bazaar itself into Subversion and get those renames out
again but does this by putting extra metadata there.
Copies work for all branch roots, not just trunk. It doesn't work for
files.
fastexport/fastimport is an alternative to converting your repository to
Bazaar from Subversion, I'm not sure whether or not that support proper
rename inference.
Cheers,
Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20100630/c5ee0379/attachment.pgp
More information about the bazaar
mailing list