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:
Example:
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:
Example:
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):
You can specify LR, CR, or CRLF as a line-ending type with the --native-eol option.
svn export [-r <svn_revision>] <svn_url> [<path>]
svn export https://svnrep/svn/myproject/trunk/folder folder-new
A folder-new
Exported revision 4.
The synopsis is:
svn export [-r <svn_revision>] <path1> [<path2>]
svn export folder folder-new
svn export https://svnrep/svn/myproject/trunk/folder folder-new --native-eol CRLF
A folder-new
Exported revision 4.
No comments:
Post a Comment