CVS workflow.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 24 Sep 2011 15:22:30 +0300
changeset 1006 82775f3c84ba
parent 1005 e74f4bb01379
child 1007 f7a62b2027ea
CVS workflow.
cvs.rst
--- a/cvs.rst	Sat Sep 24 15:12:11 2011 +0300
+++ b/cvs.rst	Sat Sep 24 15:22:30 2011 +0300
@@ -37,3 +37,58 @@
   writers                   # list of pseudo usernames can write via cvspserver
   passwd                    # encrypted passwd string with (htpasswd from apache)
 
+CVS workflow.
+=============
+
+Check out sources::
+
+  $ cvs co -P $proj
+
+Status of changes::
+
+  $ cvs status
+
+Compare local changes::
+
+  $ cvs diff -u $path
+
+Creating patch::
+
+  $ cvs diff -N -u -r >$patch
+
+History of changes::
+
+  $ cvs log $file
+
+Remove a file::
+
+  $ rm $file            # must first remove it locally
+  $ cvs rm $file        # schedules it for removal
+
+Add a file::
+
+  $ cvs add $file
+
+Check in local changes::
+
+  $ cvs ci
+
+Update local sources::
+
+  $ cvs update
+
+Move a file can not be done cleanly at the local level. The best way to do this
+with CVS is to go to the cvsroot repository and move the file or directory
+within the repository there. The cvsroot repository keeps all files in their RCS
+form of filename,v . The next cvs update will manifest the file move.
+
+Tagging sources::
+
+  $ cvs tag $name
+  $ cvs rtag $name
+
+Revert file::
+
+  $ rm $file            # remove it from local sources
+  $ cvs update $file    # get a new copy from the repository
+