Commit 0189e556 authored by bescoto's avatar bescoto

Found better (obvious) way of doing --list-at-time


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@450 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent f0204878
......@@ -588,8 +588,7 @@ def ListAtTime(rp):
mirror_rp = mirror_root.new_index(index)
inc_rp = mirror_rp.append_path("increments", index)
for rorp in rp.conn.restore.ListAtTime(mirror_rp, inc_rp, rest_time):
# This is a hack, see restore.ListChangeSince for rational
print rorp.index[0]
print rorp.get_indexpath()
def CheckDest(dest_rp):
......
......@@ -90,18 +90,13 @@ def ListChangedSince(mirror_rp, inc_rp, restore_to_time):
def ListAtTime(mirror_rp, inc_rp, time):
"""List the files in archive at the given time
Output is a RORP Iterator with info in index. See ListChangedSince.
"""
"""List the files in archive at the given time"""
assert mirror_rp.conn is Globals.local_connection, "Run locally only"
MirrorStruct.set_mirror_and_rest_times(time)
MirrorStruct.initialize_rf_cache(mirror_rp, inc_rp)
old_iter = MirrorStruct.get_mirror_rorp_iter(_rest_time, 1)
for rorp in old_iter:
yield rpath.RORPath((rorp.get_indexpath(),))
for rorp in old_iter: yield rorp
class MirrorStruct:
......
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