w3reference home
CVS Tutorial


Bookmark and Share

Status Command

The status command shows the status of a working directory or a file in the working directory. To find the status of a file in a working directory, the syntax of the status command is as follows:
$ cvs status filename
Suppose, there is a file named, test.txt in the working directory and you want to know it's status. The CVS command and the result for the same will be:
$ cvs status test.txt
===========================================
File: test.txt                	Status: Up-to-date

   Working revision:	1.4	2009-03-01 21:56:13 -0500
   Repository revision:	1.4	/home/perlproject/test.txt,v
   Commit Identifier:	06lkV5xhtSH6apEt
   Sticky Tag:		(none)
   Sticky Date:	(none)
   Sticky Options:	(none)
$
The above output is quite clear. The first line contains the name of the file and status indicator. The status indicator can be either of the following: * Up-to-date
The file is identical with the latest revision in the repository for the branch in use.
* Locally Modified
You have edited the file, and not yet committed your changes.
* Locally Added
You have added the file with add command, and not yet committed your changes.
* Locally Removed
You have removed the file with remove, and not yet committed your changes.
* Needs Checkout
Someone else has committed a newer revision to the repository. The name is misleading; you will ordinarily use update rather than checkout to get that newer revision.
* Needs Patch
Like Needs Checkout, but the CVS server will send a patch rather than the entire file. Sending a patch or sending an entire file accomplishes the same thing.
* Needs Merge
Someone else has committed a newer revision to the repository, and you have also made modifications to the file.
* Unresolved Conflict
This is like Locally Modified, except that a previous update command gave a conflict. You need to resolve the conflict.
* Unknown
CVS doesn't know anything about this file. For example, you have created a new file and have not run add.

Working revision lists the revision of the working file (which is the repository revision at the time you last updated the file). Repository revision lists the current repository revision and the full path to the history information on the server.

Sticky tag, date, and options show the sticky options for the working file. You can reset them using cvs update -A.

Have a look at the command and the output given below:

$ cvs status
cvs status: Examining .
===========================================
File: test.txt                	Status: Up-to-date

   Working revision:	1.4	2009-03-01 21:56:13 -0500
   Repository revision:	1.4	/home/perlproject/test.txt,v
   Commit Identifier:	06lkV5xhtSH6apEt
   Sticky Tag:		(none)
   Sticky Date:	(none)
   Sticky Options:	(none)

===========================================
File: try                	Status: Up-to-date

   Working revision:	1.4	2009-03-03 14:18:19 -0500
   Repository revision:	1.4	/home/perlproject/try,v
   Commit Identifier:	THI5Wpk5kqu4zCEt
   Sticky Tag:		(none)
   Sticky Date:		(none)
   Sticky Options:	(none)

$
The status of all the files in the directory is displayed if you do not specify the filename.

Options of the status command
1) -l
Do not consider the sub directories.
2) –v
The option -v stands for Verbose. It displays additional information about each file including all symbolic tags along with revision numbers they correspond to. It does not alter the files in any way. For example, to view the status of the test.txt file, the command is:

$ cvs status –v test.txt
3) -R
This option will display the status of the directory as well as the sub-directories within it.
Code Validator
Learn FTP
Color finder
Link Checker
Free web designs
Coming soon!
Interview Questions...
'w3reference : Learn by examples ... Advanced to beginner's tutorials ...'
Ajax: AJAX tutorial1 | Apache: Apache HTTP Server | Restarting Apache | CSS: CSS Border | CSS Syntax | CSS Selector | CSS Comment | CVS: CVS Release | CVS Login | CVS Logout | CVS Annotate | Databases: Rolap Tutorial | OLAP Tutorial | OLTP Tutorial | data warehousing | Expect: HTML: html | Linux: Dot (.) conf files | Linux Mount Point | Linux Filesystem | SSH Tutorial | Linux Commands: cal | cat | cfdisk | chroot | MySQL: MySQL Commands | PHP: PHP Basics | PHP Variables | PHP Output (echo/print) | PHP String Concat | PL/SQL: PL/SQL Data Types | PL/SQL Control Structures | PL/SQL File Extensions | PL/SQL DBMS_OUTPUT package | Python: My first Python program | Shell: Starting Bash | Bash Redirection | Bash Pipes | Bash Variables | SQL: SQL Transactions | SQL Constraints | SQL Drop | SQL Union & Union All | SVN: svn architecture | SVN Repository | SVN Import | SVN Checkout | Tech: soap | Web Designing: Web Hosting | HTML/XHTML/CSS code validator | Learn FTP | Search Engine Optimization Tips | www: XML: XML vs HTML | XML Syntax | XML Tags, Elements and Attributes | XML Namespaces |
Sitemap | Disclaim | Privacy Policy | Contact | ©2007-2009 w3reference.com All Rights Reserved.