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

RE: Tag only the changed list

From: Robert Hunter <robert.hunter_at_gen-i.co.nz>
Date: 2005-03-31 01:22:26 CEST

Muthu Gopal wrote:
> In the trunk folder, I have totally 1000 files. My
> developer keeps making changes and creates revisions in
> the trunk say 8,9 and 10. And each of these revisions he
> modifies just 3 files i.e. totally 9. Now he likes put
> these 9 files ( modified in 8,9 and 10) alone in a tags
> folder and handover to another entity for
> build/deployment.
>
> Subversion allows me to create a tag as of 10 revision but
> would copy all the 1000 files to the tags folder. I want
> just these 9 files - the changed files in these 3
> revisions - to be copied to the tag.
>
> Is it possible?

Sure it is. I'm not sure I'd call this a "tag", really, but
you can call it what you like. :-)

Just copy the files, as you like them, to a directory.
You can use something like:
$ svn mkdir $REPOS/tags/my-tag
$ svn copy $REPOS/trunk/file1 $REPOS/tags/my-tag/
$ svn copy $REPOS/trunk/file2 $REPOS/tags/my-tag/
$ svn copy $REPOS/trunk/file3 $REPOS/tags/my-tag/

This would create a new revision for each copy, though,
so it would probably be better to do something like:
$ svn mkdir $REPOS/tags/my-tag
$ svn checkout $REPOS/tags/my-tag
$ svn copy $REPOS/trunk/file1 .
$ svn copy $REPOS/trunk/file2 .
$ svn copy $REPOS/trunk/file3 .
$ svn commit

By the sounds of it, however, you don't need to bother
with creating such a complex copy. If the files are
to be handed to another entity, then you can get the
names with:
$ svn log -v -r8:10

I hope that's some help :-)

-- 
Robert Hunter
*****************************************************************************
This communication, including any attachments, is confidential.
If you are not the intended recipient, you should not read it
- please contact me immediately, destroy it, and do not copy
or use any part of this communication or disclose anything about it,
Thank you.
Please note that this communication does not designate an information system
for the purposes of the Electronic Transactions Act 2002
******************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 31 01:25:53 2005

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.