[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SVN copy multiple files

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Mon, 5 Dec 2016 14:12:00 +0100

On Mon, Dec 5, 2016 at 12:48 PM, Campbell, Nina
<nina.campbell_at_t-tales.com> wrote:
...
> For committing files in a single revision I use --targets but there doesn’t
> seem to be a ‘copy’ equivalent of this command. Am I missing something
> obvious?

'svn copy' does have a --parents option (introduced in 1.8 or 1.9, I'm
not sure):

[[[
C:\>svn help copy
copy (cp): Copy files and directories in a working copy or repository.
usage: copy SRC[@REV]... DST

  SRC and DST can each be either a working copy (WC) path or URL:
    WC -> WC: copy and schedule for addition (with history)
    WC -> URL: immediately commit a copy of WC to URL
    URL -> WC: check out URL into WC, schedule for addition
    URL -> URL: complete server-side copy; used to branch and tag
  All the SRCs must be of the same type. When copying multiple sources,
  they will be added as children of DST, which must be a directory.

...

  --parents : make intermediate directories
]]]

-- 
Johan
Received on 2016-12-05 14:12:33 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.