A.3 More Disconnected Operations

In recent years, disk space has become outrageously cheap and abundant, but network bandwidth has not. Therefore, the Subversion working copy has been optimized around the scarcer resource.

The .svn administrative directory serves the same purpose as the CVS directory, except that it also stores read-only, pristine copies of your files. This allows you to do many things off-line:


svn status

Shows you any local changes you've made (see Section 3.5.3.1)


svn diff

Shows you the details of your changes (see Section 3.5.3.2)


svn revert

Removes your local changes (see Section 3.5.3.3)

Also, the cached pristine files allow the Subversion client to send differences when committing, which CVS cannot do.

The last subcommand in the list is new; it will not only remove local mods, but it will unschedule operations such as adds and deletes. It's the preferred way to revert a file: running rm file; svn update will still work, but it blurs the purpose of updating. And, while we're on this subject...



Version Control with Subversion
Version Control with Subversion
ISBN: 0596510330
EAN: 2147483647
Year: 2003
Pages: 127

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net