"bzr git-import" and multiple branches
Eli Zaretskii
eliz at gnu.org
Sun Apr 8 06:46:01 UTC 2012
> Date: Sun, 08 Apr 2012 01:33:38 +0200
> From: Jelmer Vernooij <jelmer at samba.org>
>
> > I thought perhaps the branches are colocated, but "bzr switch" refuses
> > to switch to a named branch:
> >
> > D:\gnu\bzr\gawk-branches>bzr switch gawk-stable
> > bzr: ERROR: Cannot switch a branch, only a checkout.
> >
> > What am I missing? How do I checkout several branches in a repository
> > created by git-import?
> >
> The branches are created as colocated branches now. "bzr branches"
> should list them all.
Thanks, "bzr branches" indeed lists them, and I even see them under
.bzr/branches, but what do I do to switch between them? As I mention
above, "bzr switch" errors out. I tried "bzr --no-plugins switch",
but the error message is the same. Am I doing something wrong?
Perhaps I need to use the colo plugin to access the branches? (I
thought bzr 2.5 supports colocated branches in the core, is that
true?)
Or is this a bug? If so, does the traceback below help understand
what is going on?
Sun 2012-04-08 09:39:47 +0300
0.047 bazaar version: 2.5.0
0.047 bzr arguments: [u'--no-plugins', u'switch', u'xgawk']
0.047 encoding stdout as sys.stdout encoding 'cp1252'
0.078 opening working tree 'D:/gnu/bzr/gawk-branches'
0.094 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.094 Traceback (most recent call last):
File "bzrlib\commands.pyo", line 920, in exception_to_return_code
File "bzrlib\commands.pyo", line 1131, in run_bzr
File "bzrlib\commands.pyo", line 673, in run_argv_aliases
File "bzrlib\commands.pyo", line 695, in run
File "bzrlib\cleanup.pyo", line 136, in run_simple
File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
File "bzrlib\builtins.pyo", line 6253, in run
File "bzrlib\switch.pyo", line 50, in switch
File "bzrlib\switch.pyo", line 125, in _set_branch_location
BzrCommandError: Cannot switch a branch, only a checkout.
More information about the bazaar
mailing list