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

Re: CVSROOT type functionality?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-09-04 03:09:50 CEST

Robert W Anderson <rwa@alumni.princeton.edu> writes:

> But I still don't get it. I would expect the only reason to branch is
> if you are at some point interested in having a working directory of
> the branched files (otherwise, why bother).

As pilchie said, 'svn cp URL URL' can make a tag as well, just for
safekeeping. You may never actually get around to checking it out.

> So you eventually have to pay for a "real" copy in either case.
> Either the copy is expensive and the commit is cheap, or the copy is
> cheap and the checkout is expensive. Right?

Not always. Here's an example of cheap copy, cheap checkout:

  $ svn cp http://foo.com/project/trunk \
           http://foo.com/project/branches/branch1

  $ cd trunk
  $ svn switch http://foo.com/project/branches/branch1

That switch command will basically do nothing but rewrite your working
copy's entries files; there's no data to receive from the server.
But now you have a working copy of the branch.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 4 03:12:28 2002

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.