diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-12-31 08:46:22 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-12-31 08:46:22 +0000 |
commit | b53bfd4d41252426cb050ef896676034d92e3ef7 (patch) | |
tree | 5d03aedc0a408da049390e8e9d8a7d28ad596c49 /rdiff-backup/rdiff_backup/connection.py | |
parent | c08ca27a381443d6e72ee8d16269e5a535df58d1 (diff) | |
download | rdiff-backup-b53bfd4d41252426cb050ef896676034d92e3ef7.tar.gz |
Various changes for v0.11.1 (see CHANGELOG)
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@256 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/connection.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/connection.py | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/rdiff-backup/rdiff_backup/connection.py b/rdiff-backup/rdiff_backup/connection.py index dc4fb1e..5e23b91 100644 --- a/rdiff-backup/rdiff_backup/connection.py +++ b/rdiff-backup/rdiff_backup/connection.py @@ -96,7 +96,6 @@ class LowLevelPipeConnection(Connection): b - string q - quit signal t - TempFile - d - DSRPath R - RPath r - RORPath only c - PipeConnection object @@ -124,8 +123,6 @@ class LowLevelPipeConnection(Connection): elif isinstance(obj, connection.Connection):self._putconn(obj, req_num) elif isinstance(obj, TempFile.TempFile): self._puttempfile(obj, req_num) - elif isinstance(obj, destructive_stepping.DSRPath): - self._putdsrpath(obj, req_num) elif isinstance(obj, rpath.RPath): self._putrpath(obj, req_num) elif isinstance(obj, rpath.RORPath): self._putrorpath(obj, req_num) elif ((hasattr(obj, "read") or hasattr(obj, "write")) @@ -157,11 +154,6 @@ class LowLevelPipeConnection(Connection): tempfile.index, tempfile.data) self._write("t", cPickle.dumps(tf_repr, 1), req_num) - def _putdsrpath(self, dsrpath, req_num): - """Put DSRPath into pipe. See _putrpath""" - dsrpath_repr = (dsrpath.conn.conn_number, dsrpath.getstatedict()) - self._write("d", cPickle.dumps(dsrpath_repr, 1), req_num) - def _putrpath(self, rpath, req_num): """Put an rpath into the pipe @@ -246,7 +238,6 @@ class LowLevelPipeConnection(Connection): elif format_string == "t": result = self._gettempfile(data) elif format_string == "r": result = self._getrorpath(data) elif format_string == "R": result = self._getrpath(data) - elif format_string == "d": result = self._getdsrpath(data) else: assert format_string == "c", header_string result = Globals.connection_dict[int(data)] @@ -270,16 +261,6 @@ class LowLevelPipeConnection(Connection): return rpath.RPath(Globals.connection_dict[conn_number], base, index, data) - def _getdsrpath(self, raw_dsrpath_buf): - """Return DSRPath object indicated by buf""" - conn_number, state_dict = cPickle.loads(raw_dsrpath_buf) - empty_dsrp = destructive_stepping.DSRPath("bypass", - Globals.local_connection, None) - empty_dsrp.__setstate__(state_dict) - empty_dsrp.conn = Globals.connection_dict[conn_number] - empty_dsrp.file = None - return empty_dsrp - def _close(self): """Close the pipes associated with the connection""" self.outpipe.close() @@ -544,8 +525,8 @@ class VirtualFile: # put at bottom to reduce circularities. import Globals, Time, Rdiff, Hardlink, FilenameMapping, C, Security, \ Main, rorpiter, selection, increment, statistics, manage, lazy, \ - iterfile, rpath, robust, restore, manage, highlevel, connection, \ - TempFile, destructive_stepping, SetConnections + iterfile, rpath, robust, restore, manage, backup, connection, \ + TempFile, SetConnections, librsync from log import Log Globals.local_connection = LocalConnection() |