summaryrefslogtreecommitdiff
path: root/subvertpy/ra_svn.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-16 19:39:19 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-16 19:39:19 +0100
commit5f792569f09451699959a3a7ade28d0d759a6003 (patch)
tree3e6c0cb6b948afa3d3cab064f739f4774015e45d /subvertpy/ra_svn.py
parent8cd1b8152043866e935442c90cc6e092e3a5d593 (diff)
Support marking busy.
Diffstat (limited to 'subvertpy/ra_svn.py')
-rw-r--r--subvertpy/ra_svn.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/subvertpy/ra_svn.py b/subvertpy/ra_svn.py
index 5496f47d..2e934c77 100644
--- a/subvertpy/ra_svn.py
+++ b/subvertpy/ra_svn.py
@@ -185,6 +185,17 @@ class FileEditor:
self.conn.send_msg([literal("change-file-prop"), [self.id, name, value]])
+def mark_busy(unbound):
+
+ def convert(self, *args, **kwargs):
+ self.busy = True
+ try:
+ ret = unbound(self, *args, **kwargs)
+ finally:
+ self.busy = False
+ return ret
+
+
class SVNClient(SVNConnection):
def __init__(self, url, progress_cb=None, auth=None, config=None,
@@ -210,6 +221,7 @@ class SVNClient(SVNConnection):
self.recv_msg()
(self._uuid, self._root_url, other_caps) = self._unpack()
self._server_capabilities += other_caps
+ self.busy = False
def _unpack(self):
msg = self.recv_msg()
@@ -313,6 +325,7 @@ class SVNClient(SVNConnection):
def get_repos_root(self):
return self._root_url
+ @mark_busy
def get_latest_revnum(self):
self.send_msg([literal("get-latest-rev"), []])
self._recv_ack()