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

RE: Re: svn:externals example

From: Geoff Rowell <Geoff.Rowell_at_varolii.com>
Date: Tue, 8 Apr 2008 08:15:53 -0400

2008/4/8, Hari Kodungallur <hkodungallur_at_gmail.com>:
>
> 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 .
>
Your problem is that you've got the external subdirectory alias and URL
fields in the wrong order.

It should be:

  cd bar
  svn propset svn:externals 'sql http://svn.example.com/foo/sql' .

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-08 14:16:15 CEST

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