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

tagging just a few files

From: Sunil Shetye <shetye_at_bombay.retortsoft.com>
Date: 2004-11-23 09:28:59 CET

I require to tag some files (spread over many directories) from the
repository for tracking changes in those files over time. subversion
does not seem to have a simple way of doing so. All methods of doing
so are either cumbersome or incorrect. Is it possible to add an option
like "--parents" to "svn copy" to ease tagging of specific files?

Here is a sample layout of my repository:

include/
include/Makefile
include/b.h
lib/
lib/Makefile
lib/a.c
lib/b.c
src/
src/Makefile
src/c.c

Suppose, I have give a tag "test" to:

include/Makefile
lib/Makefile
lib/a.c

=====================================================================
Method 1:
svn mkdir $REPOS/tags/test -m 'dir for tag test'
svn cp include/Makefile lib/Makefile lib/a.c $REPOS/tags/test -m 'created tag test'

PROBLEM: filenames are clashing; layout is not maintained.
=====================================================================

=====================================================================
Method 2:
svn mkdir $REPOS/tags/test -m 'dir for tag test'
svn mkdir $REPOS/tags/test/include $REPOS/tags/test/lib -m 'created tag test'
svn cp include/Makefile $REPOS/tags/test/include -m 'created tag test'
svn cp lib/Makefile lib/a.c $REPOS/tags/test/lib -m 'created tag test'

PROBLEM: extra "svn mkdir" is expensive; too many identical log
messages.
=====================================================================

=====================================================================
Method 3:
svn cp . $REPOS/tags/test -m 'created tag test'
svn rm $REPOS/tags/test/include/b.h $REPOS/tags/test/lib/b.c $REPOS/tags/test/src -m 'created tag test'

PROBLEM: finding out what to remove is not trivial; remove list could
be much longer than original list.
=====================================================================

=====================================================================
Desired Method:
svn cp include/Makefile lib/Makefile lib/a.c $REPOS/tags/test --parents -m 'created tag test'
=====================================================================

Any support for this wishlist?

Any help will be appreciated.

-- 
Sunil Shetye.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 23 09:21:48 2004

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.