Name

svk move — Move a file or directory.

Synopsis

svk move src DST

Description

This command moves a file or directory in your working copy or in the repository.

Tip

This command is equivalent to an svk copy followed by svk delete.

Note

SVK does not support moving between working copies and DEPOTs. In addition, you can only move files within a single depot—SVK does not support cross-depot moving. However if you have two mirrored repositories in the same depot, you can move files and directories between them.

WC -> WC

Move and schedule a file or directory for addition (with history).

DEPOTPATH -> DEPOTPATH

Complete in depot rename.

Alternate Names

mv, ren, rename

Changes

Working copy, depot if operating on a DEPOTPATH, Mirrored repository if either DEPOTPATH is a mirrored path.

Accesses Depot

Only if operating on DEPOTPATHs.

Accesses Mirrored Repository

Only if operating on a DEPOTPATH which is mirrored.

Switches

--revision (-r) REV
--parent (-p)
--message (-m) TEXT
--file (-F) FILE
--template
--encoding ENC
--patch (-P)
--sign (-S)
--check-only (-C)
--direct

Examples

Move a file in your working copy:

$ svk move foo.c bar.c
D   foo.c
A   bar.c

Move a file in the repository (an immediate commit, so it requires a commit message):

$ svk move --message "Move a file" //foo.c //bar.c
Committed revision 27.