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

RE: svn copy - tags - parent dir and create paths

From: Dale Worley <dworley_at_pingtel.com>
Date: 2005-01-03 17:52:49 CET

-----Original Message-----
From: allan juul [mailto:lambretta@inet.uni2.dk]

to me it's very important that tagging [or
branching for that matter] is just something you do (in a single
command) and that's it. in out case Tagging will be done very very
frequently and to ask people to create subdirectories (one by one)
before they eventually can tag is simply too much hassle IMHO.
---------------------------------------------------------------------

It seems like this would work on most versions of Unix:

svn copy https://.../main
https://.../tags/$(date --iso-8601=seconds).$USER.$$

(Or "svn copy . [etc.]" if you want to copy from the WC to the tag.)

It generates tag names that give the date and user, e.g.:
2005-01-03T11:47:42-0500.dworley.17230

That doesn't guarantee absolute uniqueness of tag names, but I doubt you'll
ever get a conflict. And the tags in their directory will sort in time
order.

Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 3 17:55:17 2005

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