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

Re: Update with joker ?

From: Stefan Haller <haller_at_ableton.com>
Date: 2005-04-28 10:51:41 CEST

Anthony Muller <Anthony.Mueller@hyperoffice.fr> wrote:

> How can I get all files according a pattern ? For instance all files
> called *.xml ?

If you type "svn ls", you'll get a list of what's in the repository, no
matter if you have the files (or directories) in your working copy. You
could write a small script that filters this list according to your
pattern, and updates only the result of that filter. (I'd probably do
that in zsh, but there are lots of possible solutions.)

As a starting point, here's one way to get such a filtered list:

#!/bin/zsh
list=$(svn ls)
for f in ${(f)list}; do
  [[ $f = *.xml ]] && echo $f
done

-- 
Stefan Haller
Ableton
http://www.ableton.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 28 10:56:35 2005

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.