[Top][All Lists]

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

Re: How to checkout only those files belonging to particulat state

From: Derek R. Price
Subject: Re: How to checkout only those files belonging to particulat state
Date: Mon, 09 Oct 2000 16:26:33 -0400

Mahesh Halyal wrote:

> I am new to CVS. I would like to know, is it possible to checkout
> files from CVS depending upon the state of the file, By default state
> of any file under CVS control is "Exp". Now I know that using "Admin"
> command I can change the "state" of any number of selected files to
> say " Reviewd" or "Built".

Technically, you attach a state to a revision of a file.

> Now suppose someone wants to checkout
> only those files which are under "state = Built". Is this possible ?

Well, you could use the 'cvs status' command on a particular revision
and grep for state to decide if you wanted to check it out or not, but
it sounds like that's not what you wanted as you'd have to have a
version of the module checked out somewhere else to use the status

I'd be careful with this anyhow.  I'm not sure exactly what states CVS
is dependant on, but it uses some of them internally.  For example,
state of "dead" tells CVS that the file was deleted for a span of time.

You may want to read up on tags.  You could then tag a large group of
files with tags such as "built_20001009" and use that to get all of your
built files as of a certain date, etc.

Hope this helped.


Derek Price                      CVS Solutions Architect ( )
mailto:address@hidden     OpenAvenue ( )
136. Old programmers never die; they just give up their resources.

reply via email to

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