[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: Campbell, Nina <nina.campbell_at_t-tales.com>
Date: Mon, 5 Dec 2016 13:38:59 +0000

Thanks for your response. I am already handling the intermediate directories, the issue I'm having is copying multiple files to a URL in the same revision without having to put all of their paths on the command line. Sorry if I was unclear! (I mentioned --targets as an example because it allows the user to operate on a single file containing all of the desired files' paths.)

Cheers.

From: Johan Corveleyn [mailto:jcorvel_at_gmail.com]
> '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
> ]]]
Received on 2016-12-05 14:39:11 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.