[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 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