[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 : IndexError : list index out of range

From: Xavier Brouckaert <xbr_at_info.ucl.ac.be>
Date: 2003-07-24 11:06:55 CEST

> Um, well, does that utility exist?
>
> Can you run
>
> $ /usr/bin/svnlook youngest /usr/svnroot
>
> ?
Yes, it exists. But now, I discovered that it need to be run as root.
So,
# /usr/lib/subversion/hot-backup.py /usr/svnroot Backup-Subversion/
works ! :-)
The IndexError message wasn't really helpful. But with your command, I
got a "Permission denied" which helped me.

I'm not fluent in python but I suggest subversion developers to add this
small piece of code to hot-backup.py :
import posix
if posix.getuid() != 0:
        print "Need to be run as root"
        posix._exit(1)

Thank you,
Xavier Brouckaert

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 24 11:04:48 2003

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.