[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: Daniel Rall <dlr_at_collab.net>
Date: 2006-03-31 20:37:03 CEST

This seems like a reasonable thing to do, but what happens if the
repository name also contains double-quotes?

On Fri, 31 Mar 2006, Gavin Band wrote:

> Dear list,
> Sorry if this is the wrong place for this.
> On my linux machine I had to modify line 97 of hot-backup.py from
>
> infile, outfile, errfile = os.popen3(svnlook + " youngest " + repo_dir)
>
> to
>
> infile, outfile, errfile = os.popen3(svnlook + " youngest \"" + repo_dir
> + "\"")
>
> (should be one line) because the path to my repository contains whitespace.
>
> An example of the problem:
>
> $ cd \tmp
> $ mkdir "A Directory"
> $ svnadmin create "A Directory/repos"
> $ hot-backup.py "A Directory/repos" /tmp
> Keeping up to 64 around.
> Beginning hot backup of 'A Directory/repos/'.
> Traceback (most recent call last):
> File "/usr/bin/svn-hot-backup", line 105, in ?
> youngest = string.strip(stdout_lines[0])
> IndexError: list index out of range

  • application/pgp-signature attachment: stored
Received on Fri Mar 31 20:37:29 2006

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