[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: Dale Worley <dworley_at_pingtel.com>
Date: 2005-04-27 19:46:41 CEST

> From: Anthony Muller [mailto:Anthony.Mueller@hyperoffice.fr]
>
> When I update a file 'toto.txt' which is locally present using this
> command: "svn update t*", everything is ok !

That is because your shell expands "t*" into "toto.txt" before invoking svn.
What svn sees is "svn update toto.txt".

> However, when the file is not locally present, the command
> failed ! :-(

Because "t*" matched no files, your shell left it unchanged. svn sees "svn
update t*", and reports that it cannot find a file named "t*".

Try doing "echo svn update t*" under different circumstances. It will show
how the command is modified by your shell before svn is invoked.
 
> Is possible to get all files recursively using joker like this : "svn
> update *.java"

Yes, but you need to do something like "svn update $( find . -name '*.java'
)" to ensure that svn has the right arguments when it is invoked.

Dale
 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Wed Apr 27 20:27:42 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.