svk import — Recursively commit a copy of PATH to DEPOTPATH.
Recursively commit a copy of
PATH to
DEPOTPATH. If
PATH is omitted
“.” is assumed. Parent
directories are created in the repository as
necessary.
--from-checkout (-f) --to-checkout (-t) --message (-m) --file (-F) --template --encoding ENC --patch (-P) NAME --sign (-S) --check-only (-C) --non-recursive (-N) --direct
This imports the local directory
myproj into the root of your
depot:
$ svk import --message "New import" myproj // Committed revision 25. Directory /Users/sally/myproj imported to depotpath // as revision 25.
This imports the local directory myproj
into trunk/misc in your depot. The
directory trunk/misc need not exist before
you import into it—svk import will
recursively create directories for you:
$ svk import --message "New import" myproj //trunk/misc/myproj Committed revision 26. Import path //trunk/misc/myproj initialized. Committed revision 27. Directory /Users/sally/myproj imported to depotpath //trunk/misc/myproj as revision 27.
After importing data, note that the original tree is
not under version control. If you
wish to use the original tree as a working copy right away
you need to specify the --to-checkout
switch to import. Alternatively you can
svk checkout a fresh working copy of
the tree.
By default svk will not let you import from a tree
that is already a working copy. If you wish to do so
anyway you need to specify the
--from-checkout switch.