Commit 9dff09c0 authored by bescoto's avatar bescoto

Fix restore from 0.11.x


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@361 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 3ec0d8ba
......@@ -3,6 +3,9 @@ New in v0.12.2 (2003/08/??)
Patch by Arkadiusz Patyk fixes building with Python 2.3c1.
Restore of archives made by 0.10.x and earlier fixed, although hard
link information is not restored. (Bug reported by Jeff Lessem.)
New in v0.12.1 (2003/07/22)
---------------------------
......
......@@ -178,8 +178,7 @@ class MirrorStruct:
rorp = rf.get_attribs()
yield rorp
if rorp.isdir():
for sub_rf in rf.yield_sub_rfs():
for rorp in yield_attribs(sub_rf): yield rorp
for sub_rf in rf.yield_sub_rfs(): yield sub_rf.get_attribs()
def subtract_indicies(cls, index, rorp_iter):
"""Subtract index from index of each rorp in rorp_iter
......
......@@ -290,6 +290,19 @@ class Final(PathSetter):
popen_fp.close()
assert wc_output.split() == ["0", "0", "0"], wc_output
def testLegacy(self):
"""Test restoring directory with no mirror_metadata file"""
self.delete_tmpdirs()
self.set_connections(None, None, None, None)
self.exec_rb(10000, 'testfiles/various_file_types',
'testfiles/output')
self.exec_rb(20000, 'testfiles/empty', 'testfiles/output')
assert not os.system(MiscDir + '/myrm testfiles/output/rdiff-backup-data/mirror_metadata*')
self.exec_rb_extra_args(None, '-r0', 'testfiles/output',
'testfiles/restoretarget1')
assert CompareRecursive(Local.vftrp, Local.rpout1,
compare_hardlinks = 0)
class FinalSelection(PathSetter):
"""Test selection options"""
......
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