[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 failing

From: John Szakmeister <john_at_szakmeister.net>
Date: 2005-06-04 17:00:42 CEST

On Saturday 04 June 2005 09:09, Michael Hipp wrote:
> John Szakmeister wrote:
> > On Saturday 04 June 2005 08:17, you wrote:
> >>Thanks. This seems ok. Gives the same result whether run as me or as
> >>root.
> >>
> >>$ svnlook youngest repo
> >>67
> >
> > Can you check the path to svnlook in your hot-copy.py.in script?
> > BTW, the .in is supposed to drop after you do the configure and
> > build. There may be some other path problems in the script if you're
> > using the .in file directly.
>
> I added the print statement below to the script.
> # Path to svnlook utility
> svnlook = "@SVN_BINDIR@/svnlook"
> print "svnlook:", svnlook

That's because hot-backup.py.in is a template for hot-backup.py. During
the configure process the @SVN_BINDIR@ is replaced with the appropriate
path.

> Here's what I get:
> $ ./hot-backup.py.in repo repobackups
> svnlook: @SVN_BINDIR@/svnlook
> Beginning hot backup of 'repo'.
> Traceback (most recent call last):
> File "./hot-backup.py.in", line 98, in ?
> youngest = string.strip(stdout_lines[0])
> IndexError: list index out of range
>
> Which hardly looks right. Here's what is needed:
> $ whereis svnlook
> svnlook: /usr/bin/svnlook /usr/share/man/man1/svnlook.1.gz
>
> So should I just hack the script and add the path or is it looking for
> an env variable?

Actually, the should be just a plain 'hot-backup.py' (not
'hot-backup.py.in') script in the tools/backup folder where you built
subversion. 'hot-backup.py' should have all the correct paths. It's
generated from 'hot-backup.py.in' as a result of the configure process.
If you use the correct one, it will already have the correct paths in
it. :-)

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jun 4 17:02:41 2005

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.