You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Christoph Bartoschek <ba...@or.uni-bonn.de> on 2010/11/16 12:43:35 UTC
svn:externals format
Hi,
what is the advantage of using
^/trunk/project/subproject@40 subproject
compared to
-r 40 ^/trunk/project/subproject subproject
?
Is it the case that the first version works if ^/trunk/project/subproject is
deleted in a later revision and the second version fails?
Christoph
Re: svn:externals format
Posted by Stefan Sperling <st...@elego.de>.
On Tue, Nov 16, 2010 at 05:11:49PM +0100, Stefan Sperling wrote:
> The new format is as follows: '[-rN] URL[@M] PATH'
> The old format was: 'PATH [-rN] URL'
>
> The real difference between the old and new formats is that the URL cannot
> have a peg revision in the old format (support for peg revisions in
> svn:externals was added in r863820). This means that, using the old format,
> one cannot refer to URLs which have been deleted in the HEAD revision.
Correction: Because in the old format, the peg revision defaults to the
operative (-r) revision, it's possible to refer to a URL that was
deleted in HEAD. But if a path was deleted and recreated multiple times,
only the most recent instance of it will be usable from svn:externals.
The new format can refer to any instance.
Stefan
Re: svn:externals format
Posted by Stefan Sperling <st...@elego.de>.
On Tue, Nov 16, 2010 at 02:55:17PM +0100, Christoph Bartoschek wrote:
> Am Dienstag, 16. November 2010 schrieb Stefan Sperling:
> > On Tue, Nov 16, 2010 at 01:43:35PM +0100, Christoph Bartoschek wrote:
> > > Hi,
> > >
> > > what is the advantage of using
> > >
> > > ^/trunk/project/subproject@40 subproject
> >
> > This new format does support relative URLs.
> >
> > > compared to
> > >
> > > -r 40 ^/trunk/project/subproject subproject
> >
> > This old format doesn't support relative URLs.
> > You can only use full URLs (http://svn.example.com/...) with this format.
> >
> > See "svn help propset" for more information.
>
> svn help propset states that relative URLs also work for the old format.
Sorry, I got mixed up about the old and new formats.
The new format is as follows: '[-rN] URL[@M] PATH'
The old format was: 'PATH [-rN] URL'
The real difference between the old and new formats is that the URL cannot
have a peg revision in the old format (support for peg revisions in
svn:externals was added in r863820). This means that, using the old format,
one cannot refer to URLs which have been deleted in the HEAD revision.
> We currently use the old format with relative URLs:
>
>
> "Relative URLs are supported in Subversion 1.5 and greater for
> all above formats and are indicated by starting the URL with one
> of the following strings"
I've tried this using the actual old format (PATH [-rN] URL),
and you're correct. Relative URLs are supported in either format.
Thanks,
Stefan
Re: svn:externals format
Posted by Christoph Bartoschek <ba...@or.uni-bonn.de>.
Am Dienstag, 16. November 2010 schrieb Stefan Sperling:
> On Tue, Nov 16, 2010 at 01:43:35PM +0100, Christoph Bartoschek wrote:
> > Hi,
> >
> > what is the advantage of using
> >
> > ^/trunk/project/subproject@40 subproject
>
> This new format does support relative URLs.
>
> > compared to
> >
> > -r 40 ^/trunk/project/subproject subproject
>
> This old format doesn't support relative URLs.
> You can only use full URLs (http://svn.example.com/...) with this format.
>
> See "svn help propset" for more information.
svn help propset states that relative URLs also work for the old format. We
currently use the old format with relative URLs:
"Relative URLs are supported in Subversion 1.5 and greater for
all above formats and are indicated by starting the URL with one
of the following strings"
Christoph
Re: svn:externals format
Posted by Stefan Sperling <st...@elego.de>.
On Fri, Nov 19, 2010 at 02:55:30PM +0100, Ludwig, Michael wrote:
> Replying to myself now that I realize the issue:
>
> > From: Ludwig, Michael [mailto:Michael.Ludwig@delphi-mb.de]
> > Sent: Tuesday, November 16, 2010 3:21 PM
>
> > > > what is the advantage of using
> > > >
> > > > ^/trunk/project/subproject@40 subproject
> > >
> > > This new format does support relative URLs.
> >
> > Are there many files beginning with a caret?
> >
> > If not, it would also be convenient for:
> >
> > * svn list
> > * svn cat
> > * svn copy
> > * svn move
> > * svn diff
> > * ...
> >
> > Basically everything working with URLs.
>
> Okay, I was proposing to make this "svn ls ^/" syntax work - but it already works, which, however, I failed to realize because on Windows, you have to put the command in double quotes as the cmd.exe shell uses the caret character for its own purposes (line continuation), which made me think that the syntax is not yet supported.
>
> Shells can be tricky.
On Windows, you can also use ^^/ instead of "^/".
Stefan
RE: svn:externals format
Posted by "Ludwig, Michael" <Mi...@delphi-mb.de>.
Replying to myself now that I realize the issue:
> From: Ludwig, Michael [mailto:Michael.Ludwig@delphi-mb.de]
> Sent: Tuesday, November 16, 2010 3:21 PM
> > > what is the advantage of using
> > >
> > > ^/trunk/project/subproject@40 subproject
> >
> > This new format does support relative URLs.
>
> Are there many files beginning with a caret?
>
> If not, it would also be convenient for:
>
> * svn list
> * svn cat
> * svn copy
> * svn move
> * svn diff
> * ...
>
> Basically everything working with URLs.
Okay, I was proposing to make this "svn ls ^/" syntax work - but it already works, which, however, I failed to realize because on Windows, you have to put the command in double quotes as the cmd.exe shell uses the caret character for its own purposes (line continuation), which made me think that the syntax is not yet supported.
Shells can be tricky.
Michael
RE: svn:externals format
Posted by "Ludwig, Michael" <Mi...@delphi-mb.de>.
> > what is the advantage of using
> >
> > ^/trunk/project/subproject@40 subproject
>
> This new format does support relative URLs.
Are there many files beginning with a caret?
If not, it would also be convenient for:
* svn list
* svn cat
* svn copy
* svn move
* svn diff
* ...
Basically everything working with URLs.
Michael
Re: svn:externals format
Posted by Stefan Sperling <st...@elego.de>.
On Tue, Nov 16, 2010 at 01:43:35PM +0100, Christoph Bartoschek wrote:
> Hi,
>
> what is the advantage of using
>
> ^/trunk/project/subproject@40 subproject
This new format does support relative URLs.
> compared to
>
> -r 40 ^/trunk/project/subproject subproject
This old format doesn't support relative URLs.
You can only use full URLs (http://svn.example.com/...) with this format.
See "svn help propset" for more information.
Stefan