Wrong CVS version of file updated in production system

Sometimes during development it can happen that files are wrongly updated in the production system. In order to avoid application errors and other malfunctions of the production system, the correct version of the file needs to be restored as soon as possible.
1 answer

Checkout specific file version from CVS

Steps:

1. After login to the production system server, go to the folder of the project

cd [project_folder_path]

2. Checkout the correct revision from CVS, for a specific file

cvs checkout -r [file_revision_number] [file_folder_path/file_name]

Note: The option "-r [file_revision_number]:" performs the checkout of the specified revision.

Example:

cd /home/projects/myWebsite
cvs checkout -r 1.14 public_html/events/localEventMenu.jsp

Useful resources:
http://cvsman.com/cvs-1.12.12/cvs_138.php#SEC138

Taggings: