Nome

svn move — Move a file or directory.

Synopsis

svn move SRC DST

Descrizione

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

[Suggerimento] Suggerimento

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

[Nota] Nota

Subversion does not support moving between working copies and URLs. In addition, you can only move files within a single repository—Subversion does not support cross-repository moving.

WC -> WC

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

URL -> URL

Complete server-side rename.

Nomi alternativi

mv, rename, ren

Cambiamenti

Working copy, repository if operating on a URL

Accesso al deposito(repository)

Only if operating on a URL

Opzioni

--message (-m) TEXT
--file (-F) FILE
--revision (-r) REV
--quiet (-q)
--force
--username USER
--password PASS
--no-auth-cache
--non-interactive
--editor-cmd EDITOR
--encoding ENC
--force-log
--config-dir DIR

Esempi

Move a file in your working copy:

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

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

$ svn move -m "Move a file" http://svn.red-bean.com/repos/foo.c \
                            http://svn.red-bean.com/repos/bar.c

Committed revision 27.