nazrat <[EMAIL PROTECTED]> wrote:
> i have a file foo with revisions 1.5.2.1, 1.5.2.2, 1.5.2.3 etc. in a
> branch "pre-release"
> i checked out this branch with -r pre-release.  this, of course, pulls
> out a copy from 'head' of 'pre-release'. i'd like to be able to pull
> out a particular such as 1.5.2.2 but if i do cvs co -r 1.5.2.2 foo
> this will switch the sticky tag to 1.5.2.2 but the file is from 'head'
> from the branch, not the revision 1.5.2.2    how can i checkout/update/
> get a file at a particular revision from a branch? thanks.

Assuming you're doing this from a command line,
    cvs update -r pre-release your_file
    cvs update -p -r 1.5.2.2 your_file > your_file

The first command just repairs the sticky tag.  The second retrieves
the version you want.  If you commit, it will go to 1.5.2.n and
become the new tip of the branch for that file.

-- 
pa at panix dot com

Reply via email to