Rev 1390: Add wrapper for get-file. in file:///data/jelmer/bzr-svn/stackable/
Jelmer Vernooij
jelmer at samba.org
Sat Jun 28 03:14:22 BST 2008
At file:///data/jelmer/bzr-svn/stackable/
------------------------------------------------------------
revno: 1390
revision-id: jelmer at samba.org-20080628021421-79f5nmgcq388xuc1
parent: jelmer at samba.org-20080628015301-6gd76dge9h4406fc
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: stackable
timestamp: Sat 2008-06-28 04:14:21 +0200
message:
Add wrapper for get-file.
modified:
transport.py transport.py-20060406231150-b3472d06b3a0818d
=== modified file 'transport.py'
--- a/transport.py 2008-06-26 22:23:21 +0000
+++ b/transport.py 2008-06-28 02:14:21 +0000
@@ -318,6 +318,15 @@
finally:
self.add_connection(conn)
+ def get_file(self, path, stream, revnum):
+ path = self._request_path(path)
+ conn = self.get_connection()
+ self.mutter('svn get-file -r%d %s' % (revnum, path))
+ try:
+ return conn.get_file(path, stream, revnum)
+ finally:
+ self.add_connection(conn)
+
def mutter(self, text, *args):
if 'transport' in debug.debug_flags:
mutter(text, *args)
More information about the bazaar-commits
mailing list