info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVS tag question


From: Todd Denniston
Subject: Re: CVS tag question
Date: Wed, 19 Jan 2005 11:48:26 -0500

"Butler, Melissa" wrote:
> 
> All,
>         I have a question concerning cvs update and tags. If another 
> developer tags a set of files, but not the whole baseline, is there a way 
> that I can get just the tagged files into my sandbox, but leave everything 
> else in my sandbox alone? I know the correct behavior of cvs update -r 
> <tagname> is to update just those tagged files and remove all other 
> non-tagged files from the sandbox, but is there any way to not remove the 
> non-tagged files?
> 
> Thank you for your help,
> 
> Melissa

1) get a list of the just tagged files, I _THINK_ the following will do it:
cvs -n update -r tagname 2>&1|grep ^U|awk '{print $2}' >updatethese.txt

2) update just those files, which will keep cvs from touching the rest of
the files. 
for i in `cat updatethese.txt`; 
do
 cvs update -r tagname $i
done


3) note that all the files in updatethese.txt will now have sticky tag
"tagname" set, not sure how you should handle that (or if you need to). If
those files were the latest (HEAD) then you could drop the -r tagname,
assuming tagname is a normal tag, not a branch tag.


This is not intended to be direction to a gov contractor to do anything,
just a listing of information which _may_ answer the question which was
asked.
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter
The opinions expressed here are not sanctioned by and do not necessarily 
represent those of my employer.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]