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

Re: svn externals: 2 paths for authentication, but only one external?

From: Mike Dixon <michael.dixon_at_denovosoftware.com>
Date: Fri, 17 Apr 2009 14:42:09 -0700

John Owens wrote:
> I like the suggestion of ^. Is this in the docs anywhere?
> 'Cause I don't see it here:
>
> http://svnbook.red-bean.com/en/1.0/ch07s03.html

That's the book for svn 1.0. :) Try this instead:
http://svnbook.red-bean.com/en/1.5/svn.advanced.externals.html

There isn't a 1.6 version of the book yet, at least as far as I know.

> Right now it's /papers/paper/bib/all.bib, so "bib" is a subdirectory
> already.
>
> Appended is the file structure.It sounds like if I change the external
> to "^/bib bib" that will work?

If you set the externals on /papers/paper to "^/bib bib", it won't work
because /papers/paper/bib already exists. (You may be able to set and
commit the property, but updates will fail.) It's fine to set the
externals on /papers/paper/bib, because /papers/paper/bib/bib doesn't exist.

I'm assuming your trunk looks like this:

/bib
/bib/all.bib
/papers
/papers/paper
/papers/paper/bib
/papers/paper/bib/vision.bib

There's no way to get vision.bib and all.bib in the same directory using
folder externals; that's what file externals are for. And I may well be
wrong about ^ not working with file externals. After looking at the
release notes for 1.6, I think I was mis-remembering this comment:

"The file external's URL must be in the same repository as the URL that
the file external will be inserted into; inter-repository file externals
are not supported."

So I'd suggest trying it and seeing what happens. :)

If you do go with folder externals, you can either set the externals on
/papers/paper to "^/bib bib_shared", and a WC of /papers/paper will look
like this:

bib
bib/vision.bib
bib_shared
bib_shared/all.bib

Or you can set it on /papers/paper/bib and get this:

bib
bib/vision.bib
bib/bib_shared
bib/bib_shared/all.bib

-Mike

>
> (I am new at this.)
>
> (Thanks!)
>
> JDO
>
> classico 9963$ pwd
> /Users/jowens/Documents/working/owens/trunk
> classico 9862$ ls bib
> README gpgpu.bib owens.bib speech.bib vision.bib
> algorithms.bib imagine.bib parallel.bib sw.bib
> all.bib make.sh sort.bib untabify.el
> classico 9862$ ls papers/hashgpu09/ | grep '^bib'
> bib
> classico 9863$ ls papers/hashgpu09/bib
> README gpgpu.bib owens.bib speech.bib vision.bib
> algorithms.bib imagine.bib parallel.bib sw.bib
> all.bib make.sh sort.bib untabify.el

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1775532

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-17 23:43:29 CEST

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