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

Re: svn:externals example

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Mon, 7 Apr 2008 16:13:44 -0700

On Mon, Apr 7, 2008 at 4:05 PM, Andy Levy <andy.levy_at_gmail.com> wrote:

> On Mon, Apr 7, 2008 at 1:32 PM, Chris Curvey <ccurvey_at_gmail.com> wrote:
> > Ive read the book, I've Googled, I've searched high and low, and I have
> not
> > been able to find an example that works.
> >
> > I have two projects, foo and bar that share a common "sql" directory.
> The
> > foo project is up and running, I'd like to make it's SQL directory
> available
> > as an external directory to the bar project.
> >
> > /foo
> > /txt
> > /sql
> >
> > /bar
> > /txt
> >
> > so what I did was
> >
> > $ svn co http://svn.example.com/bar bar
> > $ cd bar
> > $ svn mkdir sql
> > $ svn propset svn:externals 'http:/svn.example.com/foo/sql' sql
> >
> > and all I get is "error parsing svn:externals property on 'sql'
> >
> > what am I doing wrong?
>
> Skip the "svn mkdir sql" above, and drop the quotes around the
> external's URL. The directory will be created when you next svn up
> bar.
>

Actually, the quotes are necessary... however it should quote the entire
external value. It should also provide the target directory on which it
should be set.

svn propset svn:externals 'http://svn.example.com/foo/sql sql' .
(note the last argument '.')

Unless I am scripting, I prefer to set externals using the editor.

svn pedit svn:externals .

Regards,
-Hari
Received on 2008-04-08 01:14:05 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.