Name

svk add — Add files, directories, or symbolic links.

Synopsis

svk add PATH...

Description

Add files, directories, or symbolic links to your working copy and schedule them for addition to the repository. They will be uploaded and added to the repository on your next commit. If you add something and change your mind before committing, you can unschedule the addition using svk revert.

Alternate Names

None

Changes

Working Copy

Accesses Depot

No

Accesses Mirrored Repository

No

Switches

--non-recursive (-N)
--quiet (-q)

Examples

To add a file to your working copy:

$ svk add foo.c 
A   foo.c

When adding a directory, the default behavior of svk add is to recurse:

$ svk add testdir
A   testdir
A   testdir/a
A   testdir/b
A   testdir/c
A   testdir/d

You can add a directory without adding its contents:

$ svk add --non-recursive otherdir
A   otherdir

The command svk add * will even recurse down into directories that are already under version control, looking for unversioned objects deeper down in the tree.

$ svk add *
A   foo.c
A   somedir/bar.c
A   otherdir/docs/baz.doc
…