[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 15:00:34 +0100

Sorry, I misread your question (I read --parents instead of --targets
... must have my eyes checked ;-).

-- 
Johan
On Mon, Dec 5, 2016 at 2:38 PM, Campbell, Nina
<nina.campbell_at_t-tales.com> wrote:
> 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 15:01:01 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.