Convert bzr
Adrian Klaver
adrian.klaver at gmail.com
Mon Dec 17 01:14:16 UTC 2012
On 12/16/2012 02:31 PM, Giorgos Keramidas wrote:
>
> I can only guess without looking at the actual conversion command and
> the source repository. It's possible that the rest of the repositories
> had a different branching scheme / setup and this one confused the
> convert extension. If this is true, we may be looking at a bug or
> edge-case that convert needs to handle better.
That is the strange part, they all have only a default branch on the bzr
side. Though in the cases that worked on the first try the branch names
in the hg repositories where equal to the root directory name of the bzr
repository, if that helps. In other words the conversion I had issues
with was the only one that ended up with a default branch in the hg
repository. The bzr format versions are the same for all also. Well a
problem for another day.
>
> Ok, that's all good then. The -b BRANCH option of 'clone' should do this
> easily (just in case you happen to need something similar in the
> future). If you don't plan to re-run the conversion for incremental
> updates, you're done. Just use the converted repository for the rest of
> your work.
Good to know.
>
> A word of caution though: It's often a good idea to use the 'default'
> branch instead of a single non-default branch in a Mercurial
> repository. It may be more useful now that you know what's happening to
> re-run the conversion and map the 'aws' branch into 'default', by using
> the '--branchmap FILE' option of 'hg convert'.
>
> This way, if you later start using the 'default' branch as the mainline
> of development and named branches for other purposes (e.g. release
> branches, or something similar), you won't have to special-case the
> 'aws' name vs. other named branches. It will not even be there, and
> your mainline will just be the 'default' branch.
I will do this. I am just kicking the tires at the moment, so nothing is
set in stone yet.
Thanks to everyone for the help.
>
> Cheers,
> Giorgos
>
--
Adrian Klaver
adrian.klaver at gmail.com
More information about the Mercurial
mailing list