[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Using subversion (or something else?)

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Fri, 21 May 2010 09:18:01 -0500

On 5/21/2010 8:52 AM, Gary . wrote:
> On Fri, May 21, 2010 at 11:58 AM, Ryan Schmidt wrote:
>> The Vendor Branches chapter in the book addresses how you can handle this in Subversion.
>>
>> http://svnbook.red-bean.com/en/1.5/svn.advanced.vendorbr.html
>
> Hrmph. I couldn't get the example in the doc to work whentrying
> it with a toy example:
>
> jg_at_work ~/work/svntest
> $ svn import ./foobar file:///mnt/h/svn/GDJ/foobar -m "initial drop"
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 'file:///mnt/h/svn/GDJ/foobar'
>
> where:
> jg_at_work ~/work/svntest
> $ ls -la /mnt/h/svn
> total 0
> drwxr-xr-x+ 1 jg Domänen-Benutzer 0 May 21 14:46 .
> drwx------+ 1 Administratoren Domänen-Benutzer 0 May 21 14:40 ..
> drwxr-xr-x+ 1 jg Domänen-Benutzer 0 May 21 12:56 jg

Yes, you can only import into an existing parent.

> Accessing the jg project is fine:
> jg_at_work ~/work/svntest
> $ svn list file:///mnt/h/svn/jg
> .bashrc
> .bashrc.d/
> .emacs.d/
> .emacs.el
> .gnus/
> .gnus.el

Which has nothing to do with the location you tried to use in the
failing import.

> Of course, GDJ doesn't exist. Am I supposed to create this first?
> Apparently so, although the documentation doesn't mention this:
> jg_at_work ~/work/svntest
> $ svnadmin create /mnt/h/svn/GDJ

Yes, the repository has to exist before you can use it.

> jg_at_work ~/work/svntest
> $ svn import /home/jg/work/svntest/foobar file:///mnt/h/svn/GDJ/foobar
> -m "initial drop"
> Adding ...(many files)
> ...
> Committed revision 1.
>
> But I still get a very similar error when I try to to tag the
> stuff. The tagging of the "vendor data" went okay, but, after
> creating my project structure:
> $ svn import . file:///mnt/h/svn/myproject -m "create project structure"
> Adding trunk
> Adding branches
> Adding tags
>
> Committed revision 1.
>
> when trying to copy the "vendor data":
> jg_at_work ~/work/svntest
> $ svn copy file:///mnt/h/svn/GDJ/foobar/0.1 \
> file:///mnt/h/svn/myproject/trunk/foobar \
> -m "bring foobar-0.1 into driver project"
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 'file:///mnt/h/svn'
>
> Huh? "Unable to open repository 'file:///mnt/h/svn'"? To which
> URL is it even referring?

You can only svn copy with url's pointing to within the same repository.
  Or you can do it locally in a checked out working copy and commit it
back. And is that file:///mnt/h/svn/GDJ/foobar/0.1 supposed to refer to
a revision or is that a subdirectory you imported there?

-- 
   Les Mikesell
    lesmikesell_at_gmail.com
Received on 2010-05-21 16:18:43 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.