Pagine

Wednesday 14 December 2016

SVN tutorial n 20 - export

The svn export command can be used in two modes: the first exports a clean directory tree from the repository specified by <svn_url> at revision <svn_revision> if it is given; otherwise, at <head>, into <path>. If <path> is omitted, the last component of the <svn_url> is used for the local directory name. The synopsis is:
 svn export [-r <svn_revision>] <svn_url> [<path>]
Example:
 svn export https://svnrep/svn/myproject/trunk/folder folder-new
A    folder-new
Exported revision 4.
Instead the second mode 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.
The synopsis is:
 svn export [-r <svn_revision>] <path1> [<path2>]
Example:
 svn export folder folder-new
Export complete. When rolling operating-system-specific release packages, it can be useful to export a tree that uses a specific EOL character for line endings. The --native-eol option will do this, but it affects only files that have svn:eol-style = native properties attached to them. For example, to export a tree with all CRLF line endings (possibly for a Windows .zip file distribution):
 svn export https://svnrep/svn/myproject/trunk/folder folder-new --native-eol CRLF
A    folder-new
Exported revision 4.
You can specify LR, CR, or CRLF as a line-ending type with the --native-eol option.

No comments:

Post a Comment