[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: allan juul <lambretta_at_inet.uni2.dk>
Date: 2005-01-03 20:23:10 CET

[cc'ing list again]
Peter Yamamoto wrote:

> You could build the date time str in DOS as well, eg assuming a script,
> for help type "set /?"...
> set DATESTR=%DATE:~4%
> set DAYSTR=%DATESTR:~2,2%
> set YEARSTR=%DATESTR:~4,4%
> set TIMESTR=%TIME::=%
> to produce something like: 20041230_17305283
> Peter

right thanks. however putting it in a script will demand that the script
is invoked *before* the actual tagging (ie 'svn copy').

i guess this is doable if the full path (not necessarily the basename of
the path - the datetag in this example) exists.

it is *not* currently doable in a script (or in any other way with a
single client command) AFAIK if more directories of the fullpath of the
tagURL are missing. and that is a situation we will often have i'm afraid.


> Dale Worley wrote:
>>-----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.:
>>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.
> thanks for the suggestion. unfortunaetly we are on win32 (;

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

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