[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 and transactions problem

From: egoots <egoots_at_gmail.com>
Date: Sun, 11 May 2008 11:57:45 -0700

Gonzalez Diaz, Xoan wrote:
>
>
> Yes, you're right. I have tested also gz and, when you specify this
> archive-type, empty directories are backed up correctly.

A patch which fixes hot-backup.py is attached. Its only a one line
change (I submitted it to the dev list).

Index: hot-backup.py.in
===================================================================
--- hot-backup.py.in (revision 31118)
+++ hot-backup.py.in (working copy)
@@ -301,7 +301,7 @@
       def add_to_zip(baton, dirname, names):
         zp = baton[0]
         root = os.path.join(baton[1], '')
-
+ zp.writestr(zipfile.ZipInfo(dirname[len(root):]+"/"),"")
         for file in names:
           path = os.path.join(dirname, file)
           if os.path.isfile(path):

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-11 20:58:22 CEST

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.