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

Re: Is label support in future release?

From: Andy Peters <devel_at_latke.net>
Date: 2006-11-20 19:56:01 CET

On Nov 20, 2006, at 9:36 AM, Tim Hill wrote:
> -- The ability to create a tag (copy) at commit time in a single
> command:
>
> svn commit blah blah --tag PATH

You can already do this, although it's not a commit, it's a copy.
The assumption is that you want to tag the state of your working copy

$ svn copy . http://path/to/new/tag

It should be noted that the working copy remains on its original path
(probably trunk); TortoiseSVN helpfully reminds you of this. Also
the state of the working copy, with respect to the trunk, is still
modified, so if you commit the changes back to the trunk, obviously
the trunk differs from what's in the tag, and to be honest, I don't
understand why you'd need this.

I can think of one instance where I use the copy-WC-to-tag feature: I
do FPGAs, and it's useful to commit the final build results (binary
files used to program a configuration EPROM) to the tag, so
production people can check out the tag and get the build results.
(If they build from source, the resulting new checksum might not
match the checksum from a previous build of the same code (perhaps
changes in tools change routing, etc) and that's not good if two
"builds" should be identical.) So what I do here is

$ svn commit (assuming I've made source/etc changes; commit BEFORE
add)
$ svn add ./bin (add the build results)
$ svn copy . http://path/to/release/tag (create the tag)
$ svn revert (I don't want build results in the trunk)

If I wasn't lazy, I'd write a script to handle this. Maybe I'd call
it svncopy.

> -- The ability to use a tag as an argument to the --revision switch:
>
> svn co foo.c --revision "some-tag-path-syntax-or-other"

You can't check out an individual file, so that example isn't any
good. And if you wanted the directory that contained foo.c, you'd do

$ svn co http://path/to/foo/tags/tagIwant

-a

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 20 19:56:55 2006

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

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