/[rdiff-backup]/rdiff-backup/rdiff_backup/rpath.py
ViewVC logotype

Diff of /rdiff-backup/rdiff_backup/rpath.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.96 by bescoto, Sat Nov 19 03:10:03 2005 UTC revision 1.97 by bescoto, Wed Nov 23 23:16:32 2005 UTC
# Line 357  class RORPath: Line 357  class RORPath:
357                          elif key == 'resourcefork' and not Globals.resource_forks_write:                          elif key == 'resourcefork' and not Globals.resource_forks_write:
358                                  pass                                  pass
359                          elif key == 'sha1': pass # one or other may not have set                          elif key == 'sha1': pass # one or other may not have set
360                            elif key == 'mirrorname' or key == 'incname': pass
361                          elif (not other.data.has_key(key) or                          elif (not other.data.has_key(key) or
362                                    self.data[key] != other.data[key]): return 0                                    self.data[key] != other.data[key]):
363                                    return 0
364    
365                  if self.lstat() and not self.issym() and Globals.change_ownership:                  if self.lstat() and not self.issym() and Globals.change_ownership:
366                          # Now compare ownership.  Symlinks don't have ownership                          # Now compare ownership.  Symlinks don't have ownership
# Line 654  class RORPath: Line 656  class RORPath:
656                  """Record resource fork in dictionary.  Does not write"""                  """Record resource fork in dictionary.  Does not write"""
657                  self.data['resourcefork'] = rfork                  self.data['resourcefork'] = rfork
658    
659            def has_alt_mirror_name(self):
660                    """True if rorp has an alternate mirror name specified"""
661                    return self.data.has_key('mirrorname')
662    
663            def get_alt_mirror_name(self):
664                    """Return alternate mirror name (for long filenames)"""
665                    return self.data['mirrorname']
666    
667            def set_alt_mirror_name(self, filename):
668                    """Set alternate mirror name to filename
669    
670                    Instead of writing to the traditional mirror file, store
671                    mirror information in filename in the long filename
672                    directory.
673    
674                    """
675                    self.data['mirrorname'] = filename
676    
677            def has_alt_inc_name(self):
678                    """True if rorp has an alternate increment base specified"""
679                    return self.data.has_key('incname')
680    
681            def get_alt_inc_name(self):
682                    """Return alternate increment base (used for long name support)"""
683                    return self.data['incname']
684    
685            def set_alt_inc_name(self, name):
686                    """Set alternate increment name to name
687    
688                    If set, increments will be in the long name directory with
689                    name as their base.  If the alt mirror name is set, this
690                    should be set to the same.
691    
692                    """
693                    self.data['incname'] = name
694    
695          def has_sha1(self):          def has_sha1(self):
696                  """True iff self has its sha1 digest set"""                  """True iff self has its sha1 digest set"""
697                  return self.data.has_key('sha1')                  return self.data.has_key('sha1')

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26