CVS rlog command in Linux
Hi all
What command should i use to get the "Comment/s" a user provided while committing/checkin a file in a repository. For ex: I have the following files with versions: /mnt/cvs/abd-cvsroot/module1/module1_file1.java - Version: 1.4.1.8 /mnt/cvs/abd-cvsroot/module2/module2_file3.java - Version: 1.10 Now lets suppose while committing/checkin the above two files for their respective versions as shown above, user gave the following comment. For file: module1_file1.java Comment: "Updated file1 in module1 for 2012 deadline, charge itself". For file: module2_file3.java Comment: "Updated file3 in module2 to start beeping after 2012 Dec 20 using motion technology". Now, what command should I fire to see only the comment of module1_file1.java for version 1.4.1.8 and similar for module2_file3.java file. Is there any direct command to specify the version no. while using "rlog" ???? Thanks Arun Sangal |
One wierd way is to run the following:
1) export CVSROOT=:pserver:username:passwd@cvs_repo_server:/mnt/cvs/abc-cvsroot 2) cvs login 3) Run the following command: cvs rlog module1_file1.java | sed -n "/revision 1.20.4.5.2.43.10.123.4.8/,/----------------------------/ p"| sed "s/----------------------------//" | tac | tr -d '\012'| sed 's/\(date: [0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]. author.*$\)/\n\n\1\n/' But, I wanted to get the same by running ... rlog command i.e. cvs rlog -r1.20.4.5.2.43.10.123.4.8 /mnt/cvs/abc-cvsroot/module1/module1_file1.java or use -v1.20.4.5.2.43.10.123.4.8 option if -r is only for tags/branch tags/labels Arun |
If giga variable contains the version of the file as a value. then the following command at $ prompt in Linux/Unix will only show the comment.
cvs rlog common/source/Configuration/ctp.properties | sed -n "/revision ${giga}/,/----------------------------/ p" | sed "s/----------------------------//;/^revision.*$/d;/^$/d" | tac | sed '/^date: [0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]. author.*$/d' Himanshu Ali Ashok Azad - C12201221: WebSphere 7.0 upgrade - correct Startup Pool Size |
or try the following:
cvs rlog common/source/Configuration/ctp.properties | sed -n "/revision ${giga}/,/----------------------------/ p" | sed "s/----------------------------//;/^revision.*$/d;/^$/d;/^date: [0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]. author.*$/d" |
All times are GMT -5. The time now is 11:25 PM. |