bzr-svn svn-import and history across svn "renames"

Chris Hecker checker at d6.com
Wed Jun 30 08:26:52 BST 2010


One more piece of info I forgot:

If I go into bzr explorer and look at the log of one of the renamed 
files, the oldest log entry has a Parents field that points to the 
previous log entry, but if I click on that it doesn't go to that log 
entry, the pane at the bottom just goes blank.  I'm a bzr newb, so I'm 
not sure where that Parents field is coming from, it's not listed in bzr 
log -v.

Chris

Chris Hecker wrote:
> 
> [I tried posting this to launchpad's bzr-svn Answers section, but it's 
> not letting me register.  Hopefully this is a reasonable alternative 
> location to ask.  If not, I apologize.]
> 
> 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.
> 
> Thanks,
> Chris
> 
> 



More information about the bazaar mailing list