Commit 39840026 authored by bescoto's avatar bescoto

Better (obvious) way of doing --list-at-time


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@451 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 0189e556
...@@ -676,8 +676,7 @@ def ListAtTime(rp): ...@@ -676,8 +676,7 @@ def ListAtTime(rp):
mirror_rp = restore_root.new_index(restore_index) mirror_rp = restore_root.new_index(restore_index)
inc_rp = mirror_rp.append_path("increments", restore_index) inc_rp = mirror_rp.append_path("increments", restore_index)
for rorp in rp.conn.restore.ListAtTime(mirror_rp, inc_rp, rest_time): for rorp in rp.conn.restore.ListAtTime(mirror_rp, inc_rp, rest_time):
# Hack for remote operation, see restore.ListChangedSince for rational print rorp.get_indexpath()
print rorp.index[0]
def CheckDest(dest_rp): def CheckDest(dest_rp):
......
...@@ -100,8 +100,7 @@ def ListAtTime(mirror_rp, inc_rp, time): ...@@ -100,8 +100,7 @@ def ListAtTime(mirror_rp, inc_rp, time):
MirrorStruct.initialize_rf_cache(mirror_rp, inc_rp) MirrorStruct.initialize_rf_cache(mirror_rp, inc_rp)
old_iter = MirrorStruct.get_mirror_rorp_iter(_rest_time, 1) old_iter = MirrorStruct.get_mirror_rorp_iter(_rest_time, 1)
for rorp in old_iter: for rorp in old_iter: yield rorp
yield rpath.RORPath((rorp.get_indexpath(),))
class MirrorStruct: 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