[cvsnt] Betr.: Re: get a previous revision

Glen Starrett glen.starrett at march-hare.com
Fri Apr 11 16:12:59 BST 2008


Jan Keirse wrote:
> We've got a custom software management system build around cvsnt and 
> TortoiseCVS. 
> This system stores jobs (files which have been commited and compiled 
> together) in a database table and it stores the revision number of 
> revisions created by the job. 
> The end users now want to be able to roll back a job (so undo anything 
> that was done in and after that job to the files in the job). 
> Because I dont store the revision number of the files before the job was 
> committed I have to retrieve it from CVS to be able to do the rollback. 

Hi Jan,

Sounds like you'll want to tweak your process a bit.  Most people do a 
tag with their build process, so that the tag "BUILD_2008_04_11_10_09" 
will correspond to that build stamp within the compiled code.

Another way to get back to a build if you don't have a tag, but you do 
know when it happened, is to do a cvs update -D {date time}.  For example:
	cvs up -D "2008-03-17 10:30"

Remember that the time on the update command will be GMT.

There are other ways to achieve this too, of course.  Check into 
branching, tagging, builds, etc. by searching the history of this list.

Regards,

-- 
Glen Starrett
Technical Account Manager, North America
March Hare Software, LLC

http://march-hare.com/cvspro/


More information about the cvsnt mailing list