Sorry, the patch was incomplete. This one should work:

--- /tmp/bzr.py 2005-11-10 14:44:41.000000000 +0100
+++ /usr/lib/python2.4/site-packages/vcpx/bzr.py  2006-02-16 13:17:40.296187515 
+0100
@@ -132,15 +132,15 @@
         """
         Add a whole subtree.
 
-        Use smart_add_branch() to add a whole new subtree to the
+        Use smart_add_tree() to add a whole new subtree to the
         repository.
         """
 
         from os.path import join
-        from bzrlib.add import smart_add_branch
+        from bzrlib.add import smart_add_tree
 
         self.log.info('Recursively adding directory "%s"...', subdir)
-        smart_add_branch(self._b, [join(self.basedir, subdir)], recurse=True)
+        smart_add_tree(self._b.working_tree(), [join(self.basedir, subdir)], 
recurse=True)
 
     def _commit(self, date, author, patchname, changelog=None, entries=None):
         from time import mktime
@@ -170,7 +170,7 @@
 
         revision_id = "%s-%s-%s" % (email, compact_date(timestamp),
                                     hexlify(rand_bytes(8)))
-        self._b.commit(logmessage, committer=author,
+        self._b.working_tree().commit(logmessage, committer=author,
                        specific_files=entries, rev_id=revision_id,
                        verbose=self.repository.projectref().verbose,
                        timestamp=timestamp)

-- 
 .''`.     martin f. krafft <[EMAIL PROTECTED]>
: :'  :    proud Debian developer and author: http://debiansystem.info
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP (sub)keys? Use subkeys.pgp.net as keyserver!
 
"Writing a book about Debian
 is like hitting a moving target
 with a champagne bottle cork."
                                                             -- arky

Attachment: signature.asc
Description: Digital signature (GPG/PGP)

Reply via email to