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

[PATCH] Was Re: Newbie alert: Cheap copies for tags/branches-HOW?

From: Richard CHAN Shih-Ping <cshihpin_at_dso.org.sg>
Date: 2002-02-19 06:54:22 CET

Small documentation patch that clarifies the creation of cheap copies
in the repository to represent tags/branches. For your consideration.


On Mon, 2002-02-18 at 21:38, Ben Collins-Sussman wrote:
> 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!

--- doc/user/svn_for_cvs_users/svn_for_cvs_users.old Tue Feb 19 13:46:09 2002
+++ doc/user/svn_for_cvs_users/svn_for_cvs_users.texi Tue Feb 19 13:49:00 2002
@@ -387,12 +387,18 @@
 Suppose we have a have a repository whose head tree is revision 82. In
 this repository is a subdirectory 'mooIRC' that contains a software
 project that is ready to be tagged. How do we tag it? Very simple:
-make a cheap copy of this directory. In other words, create a new
-directory entry (somewhere else in the filesystem) that points to this
+make a cheap copy of this directory in the repository. In other words, create a new
+directory entry (somewhere else in the repository) that points to this
 @emph{specfic} revision of the directory 'mooIRC'. Of course, you can
 name that new directory entry whatever you want -- probably a tag-name
 like 'mooIRC-beta'.
+svn copy http://server/svn/repos/mooIRC/trunk http://server/svn/repos/mooIRC/tags/mooIRC-beta
+@end example
+Note that to do this you don't even need a working copy checked out.
 Now, as long as you never touch the contents of the directory
 'mooIRC-beta', it will forever point to a directory that looks the way
 mooIRC/ did at a specific moment in time (however it looked in

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.