ITeye博客

How to use cvs in linux?

RobertLeeJesus · 2008-07-28 15:10 · Linux - Miscellaneous · Markdown

1. Find the modifed files.  

     cvs status | grep File | grep Modified

 

2. Find the modifed files and output it in red.

     cvs status | grep File | grep Modified | sed 's#\(File:.*Status:.*\)#\x1b[1;31m\1\x1b[1;37m#'

 

3. How to use tag?

     cvs tag release_name module_name

     cvs status -v moudle_name
     ===================================================================
     ...................................................................
     ......
         Existing Tags:
             rel-0-4                     (revision: 1.4)

     cvs checkout -r release_name module_name

 

4. How to see what moudles are in the repository?

     cvs co -c

 

5.  How to commit a file?

      cvs commit -m "comments" filename

 

6. How to commit all files in a folder and its sub folders?

     (1). cvs commit

     (2). It shows

  1
  2 CVS: ----------------------------------------------------------------------
  3 CVS: Enter Log.  Lines beginning with `CVS:' are removed automatically
  4 CVS:
  5 CVS: Committing in .
  6 CVS:
  7 CVS: Modified Files:
  8 CVS:    src/etc/conf/abc.conf
  9 CVS:    src/etc/conf/def.conf

 10 CVS: ----------------------------------------------------------------------

    (3). Please inut text in line 1 and don't start with CVS:. If it starts with CVS:, then cvs system will remove it and don't take it as comments. That is to say, cvs system resolvse the editing file to get comments(without CVS: starting) and files names(with CVS starting) etc.

 

7  How to list all of the tags of a file?

      cvs status -v filename

 

 

Reference

 

http://my.opera.com/jlake/blog/show.dml/457333

http://www.chedong.com/tech/cvs_card.html

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。