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

Re: hot-backup.py

From: Gavin Band <gavinband_at_tiscali.co.uk>
Date: 2006-04-03 09:57:02 CEST

Hi,
Looks like you're right - if I replace that line (line 97 of
hot-backup.py) with

infile, outfile, errfile = os.popen3([svnlook,"youngest",repo_dir])

then it seems to work with either whitespace or quotes.
gav.

On Sun, 2006-04-02 at 05:53 -0500, Peter Samuelson wrote:
> [Gavin Band]
> > If the name contains double quotes, neither version seems to work.
> > I'm afraid I don't know a way around this - is there a simple way to
> > turn a filename into a fully-escaped version?
>
> In perl you'd execute the command using a list instead of a string -
> that way no word splitting is done, either by perl or by a shell. I
> would assume python has a similar facility, to run fork+exec / spawn
> directly rather than through system() or popen() ... right?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 3 09:42:35 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.