[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: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-11-16 02:25:38 CET

On Nov 15, 2006, at 17:06, Tim Hill wrote:

> The "we need labels" argument that keeps on coming up in this forum
> is, imho, not about the lack of symbolic identifiers for revision
> numbers: everyone points out again and again (correctly) that tags
> do that. It's about the need to directly *input* these revision
> numbers symbolically into commands. Tags _don't_ do this because
> the last step in the "feedback" loop is missing: I cannot use the
> tag on the command line to represent, symbolically, a revision
> number. That was what I was trying to show by my example.

Well, it's not hard to write a script to determine the last changed
revision given a URL:

$ lastchangedrev.sh http://svn.collab.net/repos/svn/tags/1.4.2

You can incorporate that into other shell commands directly; no need
to transcribe any revision number by hand:

$ svn log http://svn.collab.net/repos/svn \
-r`lastchangedrev.sh http://svn.collab.net/repos/svn/tags/1.4.2`
r22210 | maxb | 2006-11-04 06:00:43 -0600 (Sat, 04 Nov 2006) | 1 line

Tagging release 1.4.2 with svn_version.h matching tarball.

You can write any manner of scripts to simplify what you see as
routine Subversion operations, if they are not already simple enough
for you to use day to day.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Thu Nov 16 02:52:23 2006

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