svn-import doesn't import anything

Bug #330832 reported by baxissimo
4
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Low
Jelmer Vernooij

Bug Description

This may or may not be a bug, but for some reason this:

  bzr svn-import --trees http://svn.dsource.org/projects/multiarray/trunk/multiarray/dflat

Does not import anything, and it doesn't report any kind of helpful message saying why it didn't import any branches either.

Following the user guide and doing an init-repo followed by

   bzr branch http://svn.dsource.org/projects/multiarray/trunk/multiarray/dflat

does work, though.

I don't really know what the difference between those two methods is, but I have been advised a few times to use svn-import. Except... it doesn't seem to work.

OS: Windows XP. Bzr 1.11.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

You're trying to import from *inside* a branch. svn-import imports branches and can't find any under that path. It should probably tell you if there wasn't anything to import.

Changed in bzr-svn:
assignee: nobody → jelmer
importance: Undecided → Low
milestone: none → 0.5.1
status: New → Triaged
Revision history for this message
baxissimo (wbaxter) wrote : Re: [Bug 330832] Re: svn-import doesn't import anything

On Wed, Feb 18, 2009 at 5:25 PM, Jelmer Vernooij <email address hidden> wrote:
> You're trying to import from *inside* a branch. svn-import imports
> branches and can't find any under that path. It should probably tell you
> if there wasn't anything to import.

Ok, but bzr branch has no problem branching from that directory. Is
there a big reason for the limitation on what svn-import can do?

(Like I said, I murky about the difference between bzr branch on an
svn repo, and svn-import. The seem to do pretty much the same thing
to me, except svn-import seems more limited. And yet svn-import is
the one that folks recommended I use.)

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

On Wed, Feb 18, 2009 at 08:55:58AM -0000, baxissimo wrote:
> On Wed, Feb 18, 2009 at 5:25 PM, Jelmer Vernooij <email address hidden> wrote:
> > You're trying to import from *inside* a branch. svn-import imports
> > branches and can't find any under that path. It should probably tell you
> > if there wasn't anything to import.

> Ok, but bzr branch has no problem branching from that directory. Is
> there a big reason for the limitation on what svn-import can do?

> (Like I said, I murky about the difference between bzr branch on an
> svn repo, and svn-import. The seem to do pretty much the same thing
> to me, except svn-import seems more limited. And yet svn-import is
> the one that folks recommended I use.)
svn-import will import all branches under a particular path in the
repository. branch clones just a single branch.

In your situation, you are specifying a path *inside a branch*, and
svn-import can't find any branches there so just aborts. "bzr branch"
assumes that since the specified path was specified to it, it must be
a branch, and contines anyway.

This is all caused by the fact that svn has no notion of branches,
while bzr does.

Cheers,

Jelmer

--
Jelmer Vernooij <email address hidden> - http://jelmer.vernstok.nl/
 13:08:44 up 47 days, 15:56, 4 users, load average: 3.62, 4.16, 3.99

Revision history for this message
baxissimo (wbaxter) wrote :

On Wed, Feb 18, 2009 at 9:10 PM, Jelmer Vernooij <email address hidden> wrote:

> In your situation, you are specifying a path *inside a branch*, and
> svn-import can't find any branches there so just aborts. "bzr branch"
> assumes that since the specified path was specified to it, it must be
> a branch, and contines anyway.
>
> This is all caused by the fact that svn has no notion of branches,
> while bzr does.

Right... which is why I find your statement "you are specifying a path
*inside a branch*" very confusing. SVN doesn't /have/ branches. So
svn-import is doing some kind of murky magic to decide what is and
what's not a branch. It's not clear to me what that is. The "bzr
help svn-import" doesn't explain it, and I haven't found any good docs
for svn-import anywhere on the web that explain it either.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

On Wed, 2009-02-18 at 19:15 +0000, baxissimo wrote:
> On Wed, Feb 18, 2009 at 9:10 PM, Jelmer Vernooij <email address hidden>
> wrote:
> > In your situation, you are specifying a path *inside a branch*, and
> > svn-import can't find any branches there so just aborts. "bzr branch"
> > assumes that since the specified path was specified to it, it must be
> > a branch, and contines anyway.
> >
> > This is all caused by the fact that svn has no notion of branches,
> > while bzr does.
>
> Right... which is why I find your statement "you are specifying a path
> *inside a branch*" very confusing. SVN doesn't /have/ branches. So
> svn-import is doing some kind of murky magic to decide what is and
> what's not a branch. It's not clear to me what that is. The "bzr
> help svn-import" doesn't explain it, and I haven't found any good docs
> for svn-import anywhere on the web that explain it either.
bzr-svn has to guess what you want to consider branches when you run
"bzr svn-import". It usually has a pretty good idea (if you followed the
conventions recommended by the svn developers - trunk/, branches/,
tags/). What bzr-svn considers a branch and what not is part of the
"repository layout", see "bzr help svn-layout".

I've just checked and bzr-svn 0.5.0 already has an error for this
situation. You should see something like this:

bzr: ERROR: The specified path is inside a branch. Specify a different
URL or a different repository layout (see also 'bzr help svn-layout').

  status fixreleased

--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Changed in bzr-svn:
status: Triaged → Fix Released
Revision history for this message
baxissimo (wbaxter) wrote :

On Thu, Feb 19, 2009 at 6:32 AM, Jelmer Vernooij <email address hidden> wrote:
> On Wed, 2009-02-18 at 19:15 +0000, baxissimo wrote:
>> On Wed, Feb 18, 2009 at 9:10 PM, Jelmer Vernooij <email address hidden>
> bzr-svn has to guess what you want to consider branches when you run
> "bzr svn-import". It usually has a pretty good idea (if you followed the
> conventions recommended by the svn developers - trunk/, branches/,
> tags/). What bzr-svn considers a branch and what not is part of the
> "repository layout", see "bzr help svn-layout".
>
> I've just checked and bzr-svn 0.5.0 already has an error for this
> situation. You should see something like this:

Ok, I seem to have 0.4.17. Hopefully that "help svn-layout" explains
some of the mystery behind the guesses bzr-svn makes about how repo
layouts correspond to branches.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.