diff options
author | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-06-12 04:05:27 +0000 |
---|---|---|
committer | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-06-12 04:05:27 +0000 |
commit | 911005b19c2d5e1d3b71de1d0b7cbbeee9d449a0 (patch) | |
tree | c08eab90cfd791bc421efd8acc0a379debd7ccc0 /rdiff-backup/src/increment.py | |
parent | 80dfd376f76ec3a102803eb3dac6bf7c10d678b8 (diff) | |
download | rdiff-backup-911005b19c2d5e1d3b71de1d0b7cbbeee9d449a0.tar.gz |
Fixed '-r now' bug, and some minor typo fixes
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@121 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/src/increment.py')
-rw-r--r-- | rdiff-backup/src/increment.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/rdiff-backup/src/increment.py b/rdiff-backup/src/increment.py index 5836f63..b03b464 100644 --- a/rdiff-backup/src/increment.py +++ b/rdiff-backup/src/increment.py @@ -10,12 +10,6 @@ execfile("statistics.py") class Inc: """Class containing increment functions""" - # This is a hack. _inc_file holds the dsrp of the latest - # increment file created, to be used in IncrementITR for - # statistics purposes. It should be given directly to the ITR - # object but there didn't seem to be a good way to pass it out. - _inc_file = None - def Increment_action(new, mirror, incpref): """Main file incrementing function, returns RobustAction @@ -116,7 +110,6 @@ class Inc: inctime = Resume.FindTime(rp.index, inctime) incrp = Inc.get_inc(rp, inctime, typestr) if not incrp.lstat(): break - Inc._inc_file = incrp return incrp MakeStatic(Inc) @@ -236,6 +229,7 @@ class IncrementITR(ErrorITR, StatsITR): else: # restore to previous state if old_dsrp_tf.lstat(): old_dsrp_tf.rename(dsrp) if self.incrp: self.incrp.delete() + mirror_tf.delete() RobustAction(init_thunk, final, error).execute() else: self.incrp = Robust.chain( @@ -247,7 +241,8 @@ class IncrementITR(ErrorITR, StatsITR): def end_process(self): """Do final work when leaving a tree (directory)""" diff_rorp, dsrp, incpref = self.diff_rorp, self.dsrp, self.incpref - if self.mirror_isdirectory and (diff_rorp or self.changed): + if (self.mirror_isdirectory and (diff_rorp or self.changed) + or self.directory_replacement): if self.directory_replacement: tf = self.directory_replacement self.incrp = Robust.chain( |