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

Re: Seeing if a file is part of a tag

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-09-27 15:45:05 CEST

On Sep 27, 2005, at 15:25, Ximon Eighteen wrote:

>>> We've been using SVN with the standad structure
>>>
>>> /trunk/...
>>> /branches/...
>>> /tags/...
>>>
>>> The items in tags are copies of the files from either
>>> trunk or branches (depending on what version we're
>>> releasing).
>>>
>>> If I'm working on a file in trunk or branches, is
>>> there an easy way to see if it's been tagged (that is,
>>> if it exists in one of the directories in the tag
>>> folder)?
>>>
>>> We could see this when we were in CVS, but I can't see
>>> how to easily see whether a file was included in a tag
>>> without going into each of the tags and seeing if the
>>> file is of the same revision. But that's a bit
>>> labor-intensive.
>>
>> how about
>> svn log http://svn.mydomain.com/tags/tagnumber/project/myfile.c
>> If the file exists, you'll get a log. If it doesn't, you'll get
>> "not found"
>
> Useful for just a single tag but not to find which tag, if any, in
> a large set of tags the file exists in.

What is the use-case? What is the problem you are trying to solve,
the question you are trying to answer?

Tags are intended to be complete copies of either trunk or a branch.
Thus, if you create a file foo in a branch in revision R, and delete
it later in revision R+100, then any tags created from that branch
between revisions R and R+100 have foo, and any created before or
after don't. Or, put another way, if you have a file foo in the
branch, you can look at its log to see when it was created, and then
you know that any tags of that branch created after that time contain
it.

Or are you using tags in a different way? If so, how?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 27 15:49:00 2005

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