Commit f179ac3b authored by owsla's avatar owsla

Properly initialize QuotedRPaths


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@867 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent c91f715c
New in v1.1.16 (????/??/??)
---------------------------
Properly initialize new QuotedRPaths. Fixes --list-at-time, etc. when
the target is remote. (Andrew Ferguson)
New in v1.1.15 (2008/01/03)
---------------------------
......
......@@ -124,8 +124,15 @@ class QuotedRPath(rpath.RPath):
def __init__(self, connection, base, index = (), data = None):
"""Make new QuotedRPath"""
self.quoted_index = tuple(map(quote, index))
rpath.RPath.__init__(self, connection, base, self.quoted_index, data)
self.conn = connection
self.index = index
self.base = base
if base is not None:
if base == "/": self.path = "/" + "/".join(self.quoted_index)
else: self.path = "/".join((base,) + self.quoted_index)
self.file = None
if data or base is None: self.data = data
else: self.setdata()
def __setstate__(self, rpath_state):
"""Reproduce QuotedRPath from __getstate__ output"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment