1
The Situation
I am running bazaar 2.4.1
A 'project hosting' company hosts my svn repository for Project A
at:
https://svn.example.com/myrepo/trunk/ProjectA/
I do not have svn-admin access to the repo at svn.example.com
.
Within the projectA
repo, there is a directory that holds all the code for Component X
. Its svn location is:
https://svn.example.com/myrepo/trunk/ProjectA/ComponentX
The Goal
I am trying to split off Component X
from Project A
's SVN repo to become Project B
. Where Project B
is versioned in Bazaar.
The Plan
My plan is to:
- Create a local bzr repository for
Project B
- Use
bzr svn-import
to importComponent X
fromProject A
into my localProject B
- Then, push
Project B
to Launchpad - Then,
svn-delete
the oldComponent X
direcotry from the svn repo.
I am stuck at step 2.
So far so good
So, on my Windows XP, I have created a bzr repo for Project B
:
# cd C:\me\OpenSource\
# bzr init-repo ProjectB
Then, I moved into that directory:
# cd ProjectB
It goes a bit wrong
Then, I tried to bzr svn-import
to grab the svn directory:
# bzr svn-import https://svn.example.com/myrepo/trunk/ProjectA/ComponentX/
This, however, generates an error:
bzr: ERROR: The specified path is inside a branch. Specify a different URL or a
different repository layout (see also 'bzr help svn-layout').
I have tried various things and keep getting the same error.
Things I have tried
Tried: Modifying subversion.conf to indicate that ComponentX is a branch
After looking at 'bzr help svn-layout'
, I have modified C:\Documents and Settings\Me\Application Data\bazaar\2.0\subversion.conf
and added a line to indicate that /ComponentX
should be treated as a branch:
[203ae883-c723-44c9-aabd-cb56e4f81c9a]
branches = */ComponentX
That did not work. Same error:
bzr: ERROR: The specified path is inside a branch. Specify a different URL or a
different repository layout (see also 'bzr help svn-layout').
Tried: Specifying a different repository layout as an argument
i.e. passing it as an argument: --layout=root
(Because I wanted that path to be treated as root of the new bzr repo):
# bzr svn-import --layout=root https://svn.example.com/myrepo/trunk/ProjectA/ComponentX/
That did not work. Same error:
bzr: ERROR: The specified path is inside a branch. Specify a different URL or a
different repository layout (see also 'bzr help svn-layout').
So, I tried just saying --layout=none
:
# bzr svn-import --layout=none https://svn.example.com/myrepo/trunk/ProjectA/ComponentX/
That did not work. Same error:
bzr: ERROR: The specified path is inside a branch. Specify a different URL or a
different repository layout (see also 'bzr help svn-layout').
To be honest I'm hacking now.
I just do not know where I am going wrong.
to be honest, i'd have just used svn export and thrown away the revision history, and done a bzr add *; bzr push. – Sirex – 2011-11-10T10:06:07.047
Yes. It would be simpler if you didn't want to hoard the revision history. – JW. – 2011-11-10T11:56:23.617