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

Re: Understanding clones and the file system

From: Bruce Atherton <bruce_at_flair.law.ubc.ca>
Date: 2001-08-03 18:11:02 CEST

At 10:12 AM 03/08/2001 +0100, peter.westlake@arm.com wrote:
>Your command would have exactly the right effect, but I don't
>want to have to type "trunk/paint" twice. Yes, I'm lazy, and
>I'm not even ashamed - it's one of Larry Wall's "three virtues
>of programming"!

You _should_ be proud to be lazy. Pride (in the hubris sense) is also one
of the three virtues.

The issue you are describing is a result of the URL format not allowing a
separation between the repository and the location within the repository
you wish to access. When we were discussing URL formats for CVS a few years
ago, we had the same problem. Eventually a double backslash to separate the
two was decided upon, but the patch to add it never made it into the code.

Anyway, here is a little script for you:

#!/bin/sh
if [ ! $# -eq 2 ]
then
     echo "Usage: $0 http://your.machine.org/repository path-to-check-out"
else
     svn checkout $1/$2 -d $2
fi

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:35 2006

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.