Version Control with Subversion - Other Useful Commands -
svn import
The
svn import
command is a quick way
to copy an unversioned tree of files into a repository,
creating intermediate directories as necessary.
$ svnadmin create /usr/local/svn/newrepos
$ svn import mytree file:///usr/local/svn/newrepos/some/project \
-m "Initial import"
Adding mytree/foo.c
Adding mytree/bar.c
Adding mytree/subdir
Adding mytree/subdir/quux.h
Committed revision 1.
The previous example copied the contents of directory
mytree under the directory
some/project in the repository:
$ svn list file:///usr/local/svn/newrepos/some/project
bar.c
foo.c
subdir/
Note that after the import is finished, the original tree
is
not
converted into a working copy. To
start working, you still need to
svn
checkout
a fresh working copy of the tree.
[an error occurred while processing this directive]
|