[Top][All Lists]

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

Re: getting a specific revision from a branch

From: Pierre Asselin
Subject: Re: getting a specific revision from a branch
Date: Sun, 11 May 2008 19:56:07 +0000 (UTC)
User-agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (NetBSD/3.1_RC3 (i386))

nazrat <address@hidden> wrote:
> i have a file foo with revisions,, 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 but if i do cvs co -r foo
> this will switch the sticky tag to but the file is from 'head'
> from the branch, not the revision    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 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

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