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

Re: Newbie alert: Cheap copies for tags/branches-HOW?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-02-18 14:38:37 CET

Richard CHAN Shih-Ping <cshihpin@dso.org.sg> writes:

> Folks,
>
> The documentation says to lay out my project like
> project/trunk
> project/tag
> project/branch
>
> When trunk is taggable how do you actually make a "cheap copy" or
> "clone" in the repo? Is this a server-side action or something you do in
> your working directory (and them commit)
>
> Do I copy in my working directory and then commit?
>
> Like
>
> cd project/
> svn copy trunk tag/BETA1
> svn commit
>
> or is there a magic svn server-side command?

$ svn help cp
copy (cp): Duplicate something in working copy or repos, remembering history.
usage: svn copy SRC DST.

  SRC and DST can each be either a working copy (WC) path or URL:
    WC -> WC: copy and schedule for addition (with history)
    WC -> URL: immediately commit a copy of WC to URL
    URL -> WC: check out URL into WC, schedule for addition
    URL -> URL: complete server-side copy; used to branch & tag

So yes, your suggestion would work, but it would be a big pain. :-)
Instead, try the 4th use case (url->url):

  svn cp http://.../project/trunk http://.../project/tags/beta1

You don't even need a working copy to do it!

---------------------------------------------------------------------
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:37:08 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.