Checkout SVN repo with no branches

Asked by Aleksandr Smyshliaev

I wish to do a Bazaar checkout from my existing Subversion repository. As far as I understand, the only layout that supports direct checkout, is TrunkLayout. Both RootLayout and WildcardLayout report:

  bzr: ERROR: RootLayout() does not support co-located branches.

Unfortunately, TrunkLayout fails to check out a project with no branches. My repository layout is this:

  project1/
    trunk/
    branches/
  project2/
    trunk/

i.e. the "tags" directory does not exist, and the "branches" directory either does not exist or is empty. The checkout command produces error:

  bzr: ERROR: Not a branch: "svn+ssh://example.com/repo/proj/branches".

Am I missing something, or such checkout is not possible?

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Subversion Plugin Edit question
Assignee:
No assignee Edit question
Solved by:
Jelmer Vernooij
Solved:
Last query:
Last reply:
Revision history for this message
Jelmer Vernooij (jelmer) said :
#1

Am 29/03/12 10:01, schrieb alexander smishlajev:
> New question #192022 on Bazaar Subversion Plugin:
> https://answers.launchpad.net/bzr-svn/+question/192022
>
> I wish to do a Bazaar checkout from my existing Subversion repository. As far as I understand, the only layout that supports direct checkout, is TrunkLayout.
I'm not sure what you mean by direct checkout, but trunklayout isn't
special in any way.

> Both RootLayout and WildcardLayout report:
>
> bzr: ERROR: RootLayout() does not support co-located branches.
What versions of bzr and bzr-svn are you using? This error suggests
you're using an incompatible combination.
> Unfortunately, TrunkLayout fails to check out a project with no branches. My repository layout is this:
>
> project1/
> trunk/
> branches/
> project2/
> trunk/
>
> i.e. the "tags" directory does not exist, and the "branches" directory either does not exist or is empty. The checkout command produces error:
>
> bzr: ERROR: Not a branch: "svn+ssh://example.com/repo/proj/branches".
>
> Am I missing something, or such checkout is not possible?
What command are you running exactly? "bzr svn-import
svn+ssh://example.com/repo/proj" ?

Cheers,

Jelmer

Revision history for this message
Aleksandr Smyshliaev (a1s) said :
#2

>> I wish to do a Bazaar checkout from my existing Subversion
>> repository. As far as I understand, the only layout that supports
>> direct checkout, is TrunkLayout.
>
> I'm not sure what you mean by direct checkout, but trunklayout isn't
> special in any way.

I mean, not doing bzr clone, which would require additional push and pull operations to communicate with the repository.

>> Both RootLayout and WildcardLayout report:
>>
>> bzr: ERROR: RootLayout() does not support co-located branches.
>
> What versions of bzr and bzr-svn are you using? This error suggests
> you're using an incompatible combination.

I am using Bazaar version 2.5.0 standalone installer for Windows. The svn plugin version is 1.1.2, which is included with this installer.

>> the "tags" directory does not exist, and the "branches" directory
>> either does not exist or is empty. The checkout command produces error:
>>
>> bzr: ERROR: Not a branch: "svn+ssh://example.com/repo/proj/branches".
>>
> What command are you running exactly? "bzr svn-import
> svn+ssh://example.com/repo/proj" ?

I have tried "bzr co svn+ssh://example.com/repo/proj", "bzr co svn+ssh://example.com/repo/proj/trunk", and "bzr co svn+ssh://example.com/repo". I would prefer to check out single project, but it would be ok to check out the whole repository too.

Sincerely,
alex.

Revision history for this message
Best Jelmer Vernooij (jelmer) said :
#3

Am 29/03/12 14:11, schrieb alexander smishlajev:
> Question #192022 on Bazaar Subversion Plugin changed:
> https://answers.launchpad.net/bzr-svn/+question/192022
>
> Status: Answered => Open
>
> alexander smishlajev is still having a problem:
>>> I wish to do a Bazaar checkout from my existing Subversion
>>> repository. As far as I understand, the only layout that supports
>>> direct checkout, is TrunkLayout.
>> I'm not sure what you mean by direct checkout, but trunklayout isn't
>> special in any way.
> I mean, not doing bzr clone, which would require additional push and
> pull operations to communicate with the repository.
checkout and clone are almost identical, the only difference is that
checkout binds to the master branch afterwards.
>
>>> Both RootLayout and WildcardLayout report:
>>>
>>> bzr: ERROR: RootLayout() does not support co-located branches.
>> What versions of bzr and bzr-svn are you using? This error suggests
>> you're using an incompatible combination.
> I am using Bazaar version 2.5.0 standalone installer for Windows. The
> svn plugin version is 1.1.2, which is included with this installer.
You're most likely hitting this bug:
https://bugs.launchpad.net/bzr-windows-installers/+bug/950751

Cheers,

Jelmer

Revision history for this message
Aleksandr Smyshliaev (a1s) said :
#4

Right. I have installed bzr-2.5.0-2, and it worked.

Thanks a lot!

Revision history for this message
Aleksandr Smyshliaev (a1s) said :
#5

Thanks Jelmer Vernooij, that solved my question.