<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-CA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Jelmer,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I think I figured this out.  I have some revisions in my Subversion repository which BOTH delete a node, AND create another node by copying from the node I’m deleting.  In the same revision.  I think Subversion’s flexibility is a detriment to me here.  The svn log output for that revision follows:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>------------------------------------------------------------------------<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>r<b><u>5152</u></b> | danm | 2009-05-29 10:57:09 -0600 (Fri, 29 May 2009) | 2 lines<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>Changed paths:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>   D /tng/mrld-p3e-activity-property-rollup-svc/branches/api6.2.1<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>   A /tng/mrld-p3e-activity-property-rollup-svc/trunk (from /tng/mrld-p3e-activity-property-rollup-svc/branches/api6.2.1:<b><u>5151</u></b>)<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>Repatriate api6.2.1 branch to trunk.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New";color:#1F497D'>------------------------------------------------------------------------<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>This is confusing bzr-svn.  In theory I don’t think it should because the Node-copyfrom-rev is 5151, which is the revision before this one, and in that revision the node I’m copying from still exists.  But I guess what I’m doing is kind of silly.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>The error is happening when I run bzr svn-import.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I think I can fix this by doing svnadmin dump, hacking the dump file (in this case, probably by moving the delete operation into revision 5151 and changing Node-copyfrom-rev to 5150), re-creating my Subversion repository, and re-running the import.  Or maybe it would be as simple as re-ordering the delete and add operations in the dump file.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I’m doing a one-time conversion and I’m already following this general process to fix a few cases where sloppy use of Subversion breaks the ancestry of a project when it’s imported into Bazaar.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#333333;mso-fareast-language:EN-CA'>Dan MacMillan | </span></b><b><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:teal;mso-fareast-language:EN-CA'>Integration Specialist</span></b><b><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#1F497D;mso-fareast-language:EN-CA'><br></span></b><b><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:teal;mso-fareast-language:EN-CA'>Emerald Associates Inc.</span></b><b><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#1F497D;mso-fareast-language:EN-CA'><br></span></b><b><span style='font-size:7.0pt;font-family:"Verdana","sans-serif";color:#1F497D;mso-fareast-language:EN-CA'><br></span></b><b><span style='font-size:7.0pt;font-family:"Verdana","sans-serif";color:gray;mso-fareast-language:EN-CA'>Direct: 403.686.7100 ext 8930</span></b><b><span style='font-size:7.0pt;font-family:"Verdana","sans-serif";color:#1F497D;mso-fareast-language:EN-CA'><br></span></b><b><span style='font-size:7.0pt;font-family:"Verdana","sans-serif";color:gray;mso-fareast-language:EN-CA'>Toll Free: 1.877.316.6005 ext 8930<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:7.0pt;font-family:"Verdana","sans-serif";color:gray;mso-fareast-language:EN-CA'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#1F497D;mso-fareast-language:EN-CA'>Canada's Exclusive Oracle Primavera Platinum Partner</span></b><span style='color:#1F497D;mso-fareast-language:EN-CA'><o:p></o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-CA'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-CA'> bazaar-bounces@lists.canonical.com [mailto:bazaar-bounces@lists.canonical.com] <b>On Behalf Of </b>Jelmer Vernooij<br><b>Sent:</b> Friday, March 23, 2012 16:21<br><b>To:</b> bazaar@lists.canonical.com<br><b>Subject:</b> Re: Error running svn-import ... ghost in ancestry?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi Dan,<br><br>Am 22/03/12 17:49, schrieb Dan MacMillan: <o:p></o:p></p><p class=MsoNormal>I’m migrating some of our projects from Subversion into Bazaar and a couple of them show errors like this:<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span class=apple-style-span><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'>bzr: ERROR: Could not determine revno for {svn-v4:f28f6c95-3c17-0410-b47b-f95b9e4a518a:tng/mrld-p3e-activity-property-rollup-svc/branches/api6.2.1:5152} because its ancestry shows a ghost at {svn-v4:f28f6c95-3c17-0410-b47b-f95b9e4a518a:tng/mrld-p3e-activity-property-rollup-svc/branches/api6.2.1:5152}</span></span><o:p></o:p></p><p class=MsoNormal><span class=apple-style-span><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'> </span></span><o:p></o:p></p><p class=MsoNormal><span class=apple-style-span><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'>I’m not sure how to interpret this.  It seems to be saying it is its own ancestor?  Am I reading that right?</span></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-CA'>It's mostly saying that it's trying to determine the revision number for a revision that is not actually present in the repository.<br><br>When are you getting this error, exactly?<br><br>Cheers,<br><br>Jelmer<o:p></o:p></span></p></div></body></html>