[KLUG Members] Question from last night

Dirk H Bartley dbartley at schupan.com
Wed Sep 21 08:03:33 EDT 2005


Last night there was a question I was not able to answer.  what is the
difference between the svn commands export and checkout.  Here is my
answer after looking at the documentation.


Reading from http://svnbook.red-bean.com/en/1.1/svn-book.html

I would interpret as meaning that export can do everything that a
checkout can do, but a checkout cannot do everything that an export can
do.  An export can create another working copy from an existent working
copy.  I hope this helps.

Dirk

------------

svn checkout URL... [PATH]

Check out a working copy from a repository. If PATH is omitted, the
basename of the URL will be used as the destination. If multiple URLs
are given each will be checked out into a subdirectory of PATH, with the
name of the subdirectory being the basename of the URL.

----------

svn export — Export a clean directory tree.

svn export [-r REV] URL [PATH]
svn export PATH1 PATH2

The first form exports a clean directory tree from the repository
specified by URL, at revision REV if it is given, otherwise at HEAD,
into PATH. If PATH is omitted, the last component of the URL is used for
the local directory name.

The second form exports a clean directory tree from the working copy
specified by PATH1 into PATH2. All local changes will be preserved, but
files not under version control will not be copied.






More information about the Members mailing list