From time to time I want a clean svn repo again, esp. for parrot.
Something like a make distclean if that would work in parrot.
I could delete all files which are not in MANIFEST, but easier is this simple svn hack, svn-cleanup :
#!/bin/sh
# remove unknown files
svn status|perl -ane'print "$F[1]\n" if
xargs rm
# AND revert modified files. take care!!!
for f in $(svn status | \
perl -ane 'print "$F[1]\n" if
do
svn revert $f
done
This deletes all files not in the repo and reverts all my private modifications.
make svnclobber (Score:1)
/* Bernhard.Schmalhofer@gmx.de */
Wow. Just use git-svn instead (Score:1)
Re: (Score:1)
(This does assume bash with the
extgloboption set andfailglobunset, btw; the latter is the default, the former I think is not.)Re: (Score:1)
Thanks for the tip, but cloning the parrot repo with git svn did last about 24 hours. I wouldn't recommend that.
Re: (Score:1)
Ouch. Yeah, the Subversion protocol is very chatty and not designed with the idea in mind that someone would want to retrieve every single revision. I wonder what happened to the
git-svnservereffort…