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

Re: cvspurge subversio equivalent

From: Edvard Majakari <edvard.majakari_at_staselog.com>
Date: 2004-09-10 12:53:09 CEST

"Max Bowsher" <maxb@ukf.net> writes:

Thanks Helge and Max. Using Max's script I did the following in a svn
controlled directory:

$ touch foo
$ svnpurge.sh
    foo
$ svnpurge.sh
    foo
$ svnpurge.sh|xargs rm -f
$ svnpurge.sh
$

That is, for some reason DRYRUN doesn't work - yes I used bash and the
script as-is:

$ /bin/bash --version
GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.

Of course, with piping stuff to xargs it works fine.

This is quite slow, though works well enough; I was rather thinking is
there better way to do it except by interpreting svn's output. But then it
had to be implemented in svn, and I don't know if it is much faster there;
it still has to traverse every directory. Thanks for the tip tho'.

-- 
# Edvard Majakari		Software Engineer
# PGP PUBLIC KEY available    	Soli Deo Gloria!
One day, when he was naughty, Mr Bunnsy looked over the hedge into Farmer
Fred's field and it was full of fresh green lettuces. Mr Bunnsy, however, was 
not full of lettuces. This did not seem fair.  --Mr Bunnsy has an adventure 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 10 12:53:51 2004

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.