svn copy — Copia un file o directory in una copia di lavoro o nel deposito(repository).
Copy a file in a working copy or in the repository.
SRC
and
DST
can each be either a
working copy (WC) path or URL:
Copia un file in una copia di lavoro o
nel deposito(repository).
SRC
e
DST
possono essere entrambi un percorso
di una copia di lavoro (WC) o un URL:
Copy and schedule an item for addition (with history).
Copia e pianifica un elemento per l'aggiunta (con storico).
Immediately commit a copy of WC to URL.
Fa il commit immediato di una copia del WC a un URL.
Check out URL into WC, and schedule it for addition.
Copia (check out) URL nella WC e lo pianifica per l'aggiunta.
Complete server-side copy. This is usually used to branch and tag.
Copia completa lato server. Usato solitamente per creare rami e tag.
![]() |
Nota |
---|---|
You can only copy files within a single repository. Subversion does not support cross-repository copying. Si possono copiare solamente i file dentro un singolo deposito(repository). Subversion non supporta le copie tra deposito(repository) diversi. |
Repository if destination is a URL.
Deposito(repository) se la destinazione è un URL.
Working copy if destination is a WC path.
Copia di lavoro se la destinazione è un percorso nella WC.
If source or destination is in the repository, or if needed to look up the source revision number.
Se sorgente o destinazione sono nel deposito(repository), o se occorre di scoprire il numero di versione del sorgente.
--message (-m) TEXT --file (-F) FILE --revision (-r) REV --quiet (-q) --username USER --password PASS --no-auth-cache --non-interactive --force-log --editor-cmd EDITOR --encoding ENC --config-dir DIR
Copy an item within your working copy (just schedules the copy—nothing goes into the repository until you commit):
Copia un file all'interno della propria copia di lavoro (la copia è solo pianificata—nulla va nel deposito(repository) fino al commit):
$ svn copy foo.txt bar.txt A bar.txt $ svn status A + bar.txt
Copy an item in your working copy to a URL in the repository (an immediate commit, so you must supply a commit message):
Copia un file dalla propria copia di lavoro ad un URL nel deposito(repository) (un commit immediato, perciò si deve fornire messaggio di commit):
$ svn copy near.txt file:///tmp/repos/test/far-away.txt -m "Remote copy."
Committed revision 8.
$ svn copy near.txt file:///tmp/repos/test/far-away.txt -m "Copia al deposito(repository)." Committed revision 8.
Copy an item from the repository to your working copy (just schedules the copy—nothing goes into the repository until you commit):
Copia un elemento dal deposito(repository) alla propria copia di lavoro (la copia è solo pianificata—nulla va nel deposito(repository) fino al commit):
![]() |
Suggerimento |
---|---|
This is the recommended way to resurrect a dead file in your repository! Questo è il modo raccomandato per resuscitare un file morto nel proprio deposito(repository)! |
$ svn copy file:///tmp/repos/test/far-away near-here A near-here
And finally, copying between two URLs:
E infine, copia tra due URL:
$ svn copy file:///tmp/repos/test/far-away file:///tmp/repos/test/over-there -m "remote copy." Committed revision 9.
![]() |
Suggerimento |
---|---|
This is the easiest way to “tag” a
revision in your repository—just svn
copy that revision (usually
Questo è il modo più semplice per creare una revisione
«tag» nel proprio deposito(repository)—basta eseguire svn
copy per questa revisione (solitamente
|
$ svn copy file:///tmp/repos/test/trunk file:///tmp/repos/test/tags/0.6.32-prerelease -m "tag tree" Committed revision 12.
And don't worry if you forgot to tag—you can always specify an older revision and tag anytime:
E non bisogna preoccuparsi se si dimentica di creare un tag— si può comunque specificare un revisione più vecchia e fare il tag in qualsiasi momento:
$ svn copy -r 11 file:///tmp/repos/test/trunk file:///tmp/repos/test/tags/0.6.32-prerelease
-m "Forgot to tag at rev 11"
Committed revision 13.
$ svn copy -r 11 file:///tmp/repos/test/trunk file:///tmp/repos/test/tags/0.6.32-prerelease -m "Dimenticato creare tag della vers. 11" Committed revision 13.