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

RE: wildcard svn move

From: Dale Worley <dworley_at_pingtel.com>
Date: 2005-01-13 19:45:21 CET

-----Original Message-----
From: Robert Sfeir [mailto:yosemitesam@gmail.com]

Seems I've hit a bit of a snag. I was hoping that svn move would
allow wildcard moves but it barfs. Is this something that's been
discussed and will be implemented, or did I miss some kind of
documentation which tells me how?

On Un*x systems, programs don't handle wildcards (with a few exceptions).
Instead, the shell expands the wildcard and substitutes the list of files
for the wildcard. Thus, when you type

svn move *.java ../../test/com/foo

the shell actually runs

svn move 1.java 2.java 3.java 4.java ../../test/com/foo

The problem is that "svn move" only moves one source to one destination, so
this last command is incorrect.

You might find a shell loop useful. For instance, if your shell is bash,
you can do

for F in *.java
    svn move $F ../../test/com/foo


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 13 19:50:13 2005

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