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

Re: what's a "trail url"?

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-10-30 13:51:14 CET

Jack Repenning <jrepenning@collab.net> writes:

> I think you here imply the answer to my original question (roughly,
> "what's the idea here?").

In my first reply in the thread I wrote:

  "The trail URL is optional, if you don't supply it svnversion will not
   check whether the working copy root is switched, although it will
   still detect switches within the working copy."

I still think that's the answer to your question :-)

> I think you envision an "svn switch" of
> some subdirectory of the whole tree, and this trail_url business is
> intended to detect that the tree has mixed revisions?

If by revisions you mean things like 6329 versus 6331 then no, the
trail URL has nothing to do with mixed revisions. The trail URL is
used to detect switched working copy roots.

> 'Cause I do routinely switch the working copy root; that's a big part
> of what I'm tracking here:
>
> cd ~/src/svn
> svn switch http://svn.collab.net/repos/svn/trunk
> svn switch http://svn.collab.net/repos/svn/tags/0.32.1
> svn switch http://svn.collab.net/repos/svn/branches/release_0.33
> ...

svnversion needs a trail URL to detect such switches. However it
appears that you don't want svnversion to detect such switches, you
want it to produce unswitched output. Your script, if I understand it
correctly, chooses the trail URL based on the root URL of the working
copy. That's pointless, since the default behaviour if there is no
trail URL is to consider the working copy unswitched.

Aside: "Trail URL" is a not a particularly good name, I would welcome
suggestions for alternatives.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 30 13:51:55 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.