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

Re: Tag a single file

From: Tom Mornini <tmornini_at_infomania.com>
Date: 2005-09-08 12:32:49 CEST

On Sep 8, 2005, at 3:03 AM, Massimiliano Cordioli wrote:

> I'm an old CVS user and now I'm testing SVN feautes.
> Now I haven't understood how I can release a patch for my software.
> Is possible with SVN to "tag" only a single file or a little group
> of file?
> If not, there is some other policy that i can use?

Sure.

Let's assume you're using generic directory structure:

/tags
/branches
/trunk

And inside trunk you have 10 files:

/trunk/file0
/trunk/file1
/trunk/file2
/trunk/file3
/trunk/file4
/trunk/file5
/trunk/file6
/trunk/file7
/trunk/file8
/trunk/file9

You could tag the whole thing with:

svn cp URL/trunk URL/tags/release1

After a while, you might release a single file, file4.

svn mkdir URL/tags/release2
svn cp URL/trunk/file4 URL/tags/release2/file4

I, and many other people, think that's a pretty bad idea for many
reasons, but if you want to, Subversion doesn't stand in the way.

I think it's much smarter to always tag the entire tree. That way
you always assure a coherent way to identify an entire release.

Much better to create a build script to automatically and flawlessly
determine which files have changed between releases, and build
patch sets for partial file distributions.

In general, in any project with less than MANY files, is released
OFTEN, and distributed to MANY locations, I greatly prefer
complete distributions.

-- 
-- Tom Mornini
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 8 12:34:29 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.