Rev 1360: Add wrapper for get_locations. in http://people.samba.org/bzr/jelmer/bzr-svn/0.4
Jelmer Vernooij
jelmer at samba.org
Thu Jun 26 23:23:02 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/0.4
------------------------------------------------------------
revno: 1360
revision-id: jelmer at samba.org-20080626222301-13psyjta8wuwr0yw
parent: jelmer at samba.org-20080626193403-gzvglk3obehulz09
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Fri 2008-06-27 00:23:01 +0200
message:
Add wrapper for get_locations.
modified:
transport.py transport.py-20060406231150-b3472d06b3a0818d
=== modified file 'transport.py'
--- a/transport.py 2008-06-24 13:36:25 +0000
+++ b/transport.py 2008-06-26 22:23:01 +0000
@@ -138,6 +138,8 @@
to fool Bazaar. """
@convert_svn_error
def __init__(self, url="", _backing_url=None, pool=None):
+ import pdb
+ pdb.set_trace()
bzr_url = url
self.svn_url = bzr_to_svn_url(url)
# _backing_url is an evil hack so the root directory of a repository
@@ -401,6 +403,14 @@
finally:
self.add_connection(conn)
+ def get_locations(self, path, peg_revnum, revnums):
+ conn = self.get_connection()
+ self.mutter('svn get_locations -r%d %s (%r)' % (peg_revnum,path,revnums))
+ try:
+ return conn.get_locations(path, peg_revnum, revnums)
+ finally:
+ self.add_connection(conn)
+
def get_commit_editor(self, revprops, done_cb=None,
lock_token=None, keep_locks=False):
conn = self._open_real_transport()
More information about the bazaar-commits
mailing list