diff svnwrap/svn_swig_wrapper.py @ 20:2953c867ca99

Minor fixes to the push command to make it more robust.
author Augie Fackler <durin42@gmail.com>
date Wed, 08 Oct 2008 16:44:40 -0500
parents dfdc078661db
children c4523e651325
line wrap: on
line diff
--- a/svnwrap/svn_swig_wrapper.py
+++ b/svnwrap/svn_swig_wrapper.py
@@ -56,8 +56,9 @@ class Revision(object):
         # TODO parse this into a datetime
         self.date = date
         self.paths = {}
-        for p in paths:
-            self.paths[p[len(strip_path):]] = paths[p]
+        if paths:
+            for p in paths:
+                self.paths[p[len(strip_path):]] = paths[p]
 
     def __str__(self):
         return 'r%d by %s' % (self.revnum, self.author)
@@ -253,7 +254,8 @@ class SubversionRepo(object):
                                                    message,
                                                    commit_cb,
                                                    None,
-                                                   False)
+                                                   False,
+                                                   self.pool)
         checksum = []
         def driver_cb(parent, path, pool):
             if path in dirs: