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

Re: Thanks and a global versioning question; WAS:: Help: XML Pars er e rror, Date Conversion failed

From: Brad Appleton <brad_at_bradapp.net>
Date: 2004-03-23 21:40:19 CET

On Tue, Mar 23, 2004 at 02:10:24PM -0600, C. Michael Pilato wrote:
> Ben Collins-Sussman <sussman@collab.net> writes:
> > Your proposal was to automatically make a tag after *every* commit.
> > That's psychotic tagging. :-) There are thousands and thousands of
> > commits. Surely not every single commit to the repository is worth
> > tagging!
>
> Of course not every commit is worth tagging -- because it already *is*
> (effectively) tagged. We just call those tags "revision numbers". :-)

Okay. So it sounds like the request sint so much concerned about
tagging as it is about having the ability to associate the
revision number with a more mnemonic alphanumeric identifier
(but nonetheless unique), and to be able to use either the
global revNUM or the global revNAME almost interchangeably in SVN.

What are some of the different ways I can do this in SVN, and how
practical is each and how feasible is it to automate?
- one approach "psychotic tagging", is apparently not recommended :-)
- what if I associate the identifier in the log?
- can I create a NAME property for a global revision number?
- does it make practical sense to implement a mechanism inside or
  outside of SVN that simply maps revnames to revnums and vis-a-vis?
  [ e.g., $(revname $(revnum $REVNAME)) eq $REVNAME ]

   $ svn commit --message "Corrected # of cheese slices."
   Sending sandwich.txt
   Transmitting file data .
   Committed revision 3
   $ myrevmap -revnum 3 -revname MyRevName
   Associated revision 3 of <??> with 'MyRevName'
   $ svn log --revision `myrevnum MyRevName`

 or use a NAME= keyword for the --revision option and commit command,
 as in:

   ## NOTE: sample possible syntax - NOT an actual working example!!
   $ svn commit --name MyRevName --message "Corrected # of cheese slices."
   Sending sandwich.txt
   Transmitting file data .
   Committed revision 3 (NAME=MyRevName)
   $ svn log --revision NAME=MyRevName

If something like that was worthwhile, then one could perhaps
implement a pre-commit trigger (or some other mechanism)
to somehow force a name to entered (or deduced).

-- 
Brad Appleton <brad@bradapp.net> www.bradapp.net
  Software CM Patterns (www.scmpatterns.com)
   Effective Teamwork, Practical Integration
"And miles to go before I sleep." -- Robert Frost
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 23 21:41:15 2004

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