2.4. Finding Out The Status

Table of Contents

Finding Out The Status

The status command is useful to see what changes have been made on your working directory compared to the sources on the repository server.

The following command is used to recursively see the status of files in your current working directory:

svn status

This produces output similar to:

?      admin/includes/classes/image.php
?      admin/includes/classes/database.php
M      admin/products.php
M      admin/templates/pages/products_edit.php
?      images/products
M      install/oscommerce_sample_data.sql
M      install/oscommerce.sql

The files marked with ? mean these are new files that do not yet exist on the repository server. Files marked with M mean that these have been locally modified compared to the sources on the repository server.

To see the differences made on your local working directory compared to the last time an update was performed, use the following command:

svn diff

Please note that the diff command does not connect to the repository to perform the function but instead performs locally to the version you last updated to. To compare the locally made changes to the repository directly, use the following command:

svn diff -r head

To compare the changes made on the repository to your local working directory, use the following command:

svn diff -r base:head
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.