2

When importing a repository from SVN, how do I remove the "Trunk" named branch that shows up in both TortoiseHG and Kiln?

I have tried using both Kiln Importer and running hg --convert manually followed by closing the named branch as described here and then pushing to Kiln. Neither of these remove the "Trunk" branch, and any commits I make afterward continue to be applied to the Trunk branch.

I would just like the Trunk named branch to go away so that the Kiln repository is clean according to the recommended practices for Kiln.

alt text

flag

1 Answer

4

Since you have already converted the repo from SVN to Mercurial, the fastest solution would be to run convert again using the --branchmap option.

This will eliminate the "Trunk" branch in your existing Mercurial repo and replace it with default. To do this:

  1. echo Trunk default > branchmap.txt
  2. hg convert --branchmap branchmap.txt <repo_with_Trunk> <new_repo>

See the ConvertExtension wiki for details.

link|flag
1 
Absolutely perfect! Thanks Tim! – Dave Nay Mar 21 2011 at 20:28

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.