CVS Branch Move, Delete and Rename

Today I have to move a cvs branch on a file. The cvs branch was created yesterday, but there was a new checkin needs to go into the branch. Instead of checking into the new branch, one can move the branch tag on that specific file. For example, to tag on revision 1.6 of a file

cvs tag -r 1.6 -F branch_tag file_name

To delete a branch/tag

cvs rtag -d branch_tag module_name

By default CVS doesn't allow moving and deleting branch tags. To override this, add the -B option to the command line.

To rename a tag, first create a new tag using the -r option, and then delete the old name. For example:

cvs rtag -r new_branch_tag_name module_name
cvs rtag -d old_branch_tag_name module_name

Comments:

Post a Comment:
Comments are closed for this entry.
About

gc

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today