You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Chris Curvey <cc...@gmail.com> on 2008/04/07 17:32:22 UTC

svn:externals example

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?  Can someone update the svn book with some examples?

-- 
I am often wrong, but I am never in doubt.

RE: Re: svn:externals example

Posted by Geoff Rowell <Ge...@varolii.com>.
2008/4/8, Hari Kodungallur <hk...@gmail.com>:
>
> On Mon, Apr 7, 2008 at 4:05 PM, Andy Levy <an...@gmail.com> wrote:
> >
> > On Mon, Apr 7, 2008 at 1:32 PM, Chris Curvey <cc...@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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: svn:externals example

Posted by marc gonzalez-carnicer <ca...@gmail.com>.
in your original example, there is only 1 slash ('/') in "http:/".
that is probably an error cause.


2008/4/8, Hari Kodungallur <hk...@gmail.com>:
>
> On Mon, Apr 7, 2008 at 4:05 PM, Andy Levy <an...@gmail.com> wrote:
> >
> > On Mon, Apr 7, 2008 at 1:32 PM, Chris Curvey <cc...@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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn:externals example

Posted by Hari Kodungallur <hk...@gmail.com>.
On Mon, Apr 7, 2008 at 4:05 PM, Andy Levy <an...@gmail.com> wrote:

> On Mon, Apr 7, 2008 at 1:32 PM, Chris Curvey <cc...@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

Re: svn:externals example

Posted by Andy Levy <an...@gmail.com>.
On Mon, Apr 7, 2008 at 1:32 PM, Chris Curvey <cc...@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.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org