from commit import push_as_merged
from repository import SvnRepository
-from transport import bzr_to_svn_url
+from transport import bzr_to_svn_url, svn_config
from tree import SvnRevisionTree
mutter('hist: %r' % self.revision_history())
client_ctx = svn.client.create_context()
+ client_ctx.config = svn_config
svn.client.checkout(bzr_to_svn_url(self.base), to_location, rev,
True, client_ctx)
self.bzrdir = bzrdir
self._branch = branch
self.base_revnum = 0
- self.client_ctx = svn.client.create_context()
self.pool = Pool()
+ self.client_ctx = svn.client.create_context()
+ self.client_ctx.config = svn_config
self.client_ctx.log_msg_func2 = svn.client.svn_swig_py_get_commit_log_func
self.client_ctx.auth_baton = _create_auth_baton(self.pool)
self.date = date
self.author = author
mutter('committed %r, author: %r, date: %r' % (revision, author, date))
-
+
mutter('obtaining commit editor')
self.editor, editor_baton = self.repository.transport.get_commit_editor(
message, done, None, False)
orig_tree = tree.basis_tree()
tree.commit(message_callback=lambda x: "data")
+ def test_commit_nested(self):
+ repos_url = self.make_client('a', 'dc')
+ self.build_tree({"dc/branches/foobranch/file": "data"})
+ self.client_add("dc/branches")
+ self.client_commit("dc", "initial changes")
+ self.make_checkout(repos_url + "/branches/foobranch", "de")
+ tree = WorkingTree.open("de")
+ self.build_tree({'de/file': "foo"})
+ orig_tree = tree.basis_tree()
+ tree.commit(message="data")
+
def test_update_after_commit(self):
self.make_client('a', 'dc')
self.build_tree({"dc/bl": "data"})
self._client = svn.client.create_context(self.pool)
self._client.auth_baton = _create_auth_baton(self.pool)
+ self._client.config = svn_config
try:
mutter('opening SVN RA connection to %r' % self.svn_url)