You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Administrator <ad...@purpleblade.net> on 2008/01/11 23:53:29 UTC
how to revert many files at once?
Suppose I want to revert every file under a folder that ends with
.yui.lld ?
How would i do this?
I can do:
$find . -name '*.yui.lld' -exec svn revert {} \;
but this takes about two hours to accomplish. I need to do this revert
at least once or twice a day (ask me why).
Is there a faster way to batch revert with a command begginning like:
$svn <something_goes_here)
thanks
Jake
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: how to revert many files at once?
Posted by Scott Gifford <sg...@suspectclass.com>.
Administrator <ad...@purpleblade.net> writes:
> Suppose I want to revert every file under a folder that ends with
> .yui.lld ?
>
> How would i do this?
>
> I can do:
> $find . -name '*.yui.lld' -exec svn revert {} \;
This will be a little faster:
find . -name '*.yui.lld' |xargs svn revert
Yours "find -exec" runs svn once for every file, but xargs will just
run it once for every thousand files or so.
---Scott.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org