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

Re: refrobnicated repository again

From: Eric M. Hopper <hopper_at_omnifarious.org>
Date: 2002-01-25 19:52:30 CET

On Fri, Jan 25, 2002 at 10:40:28AM -0800, Greg Stein wrote:
> On Fri, Jan 25, 2002 at 10:36:02AM -0600, cmpilato@collab.net wrote:
> >...
> > Not really. We could do something that small inline in the
> > post-commit hook, right?
> >
> > for logfile in `db_archive -a -h ${repos}/db`; do rm ${logfile}; done
> >
> > I mean, that's all there is to it, correct?
>
> Invoke it from somewhere, somehow. Cron, foreground, background...
>
> But simpler:
>
> $ /usr/local/BerkeleyDB.4.0/bin/db_archive -a -h ${repos}/db | xargs rm
>
> Much nicer than a loop...

        Someone should create a directory in the repository who's name
has a space in it, which contains other directories and files with
spaces, double quotes, single quotes, backticks and carraige returns in
their names. This will save you many headaches later.

*grin*,

-- 
"It does me no injury for my neighbor to say there are twenty gods or no God.
It neither picks my pocket nor breaks my leg."  --- Thomas Jefferson
"Go to Heaven for the climate, Hell for the company."  -- Mark Twain
-- Eric Hopper (hopper_at_omnifarious.org  http://www.omnifarious.org/~hopper) --

  • application/pgp-signature attachment: stored
Received on Sat Oct 21 14:37:00 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.