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

Re: How to copy multiple files with "svn copy" ?

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: 2006-11-16 13:29:56 CET

On 11/16/2006 7:11 AM, Christian Convey wrote:
> I have two directories, "foo" and "bar". Both are in the same repository,
> and I have local copies of both directories and their contents.
>
> "foo" has many Python files that I want to copy to the "bar" directory. So
> if I were using the regular Unix "cp" command, I'd normally do this: "cp
> foo/*.py bar".
>
> When I try to do that with Subversion, however: "svn cp foo/*.py bar", it
> seems upset that I'm asking it to work on more than one file.
>
> How do people typically get around this? Is this seen as a feature that
> Subversion ought to support sometime in the future?

Normally I would copy a whole directory, rather than needing to select a
subset of files by pattern, so I haven't needed to do what you want. If
I did, I'd probably just build it up using a shell command. In bash,

for f in foo/*.py ; do svn cp $f bar ; done

Duncan Murdoch

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Nov 16 13:30:43 2006

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.