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

Re: how to revert many files at once?

From: Scott Gifford <sgifford_at_suspectclass.com>
Date: Fri, 11 Jan 2008 19:03:05 -0500

Administrator <admin_at_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_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-12 01:03:31 CET

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.