Rev 385: Fix segfault (no tests, requires a webdav repository to reproduce). in http://people.samba.org/bzr/jelmer/bzr-svn/bzr.dev

Jelmer Vernooij jelmer at samba.org
Mon Jan 8 04:50:17 GMT 2007


------------------------------------------------------------
revno: 385
revision-id: jelmer at samba.org-20070108044938-qsw6iptrtrff0kw9
parent: jelmer at samba.org-20070108044556-wv5lracm68pkuw2d
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: main
timestamp: Mon 2007-01-08 05:49:38 +0100
message:
  Fix segfault (no tests, requires a webdav repository to reproduce).
modified:
  checkout.py                    workingtree.py-20060306120941-b083cb0fdd4a69de
=== modified file 'checkout.py'
--- a/checkout.py	2007-01-08 04:45:56 +0000
+++ b/checkout.py	2007-01-08 04:49:38 +0000
@@ -33,7 +33,8 @@
 from repository import (SvnRepository, escape_svn_path, SVN_PROP_BZR_MERGE,
                         SVN_PROP_SVK_MERGE, revision_id_to_svk_feature) 
 from scheme import BranchingScheme
-from transport import (SvnRaTransport, svn_config, bzr_to_svn_url) 
+from transport import (SvnRaTransport, svn_config, bzr_to_svn_url, 
+                       _create_auth_baton) 
 from tree import SvnBasisTree
 
 import os
@@ -59,8 +60,10 @@
         self._branch = branch
         self.base_revnum = 0
         self.client_ctx = svn.client.create_context()
+        self.pool = Pool()
         self.client_ctx.log_msg_func2 = svn.client.svn_swig_py_get_commit_log_func
         self.client_ctx.log_msg_baton2 = self.log_message_func
+        self.client_ctx.auth_baton = _create_auth_baton(self.pool)
 
         wc = self._get_wc()
         status = svn.wc.revision_status(self.basedir, None, True, None, None)




More information about the bazaar-commits mailing list