~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport.py

  • Committer: John Arbash Meinel
  • Date: 2005-07-12 04:38:52 UTC
  • mto: (1185.11.1)
  • mto: This revision was merged to the branch mainline in revision 1396.
  • Revision ID: john@arbash-meinel.com-20050712043852-caa52e4d9bd09259
Renaming is_remote to should_cache as it is more appropriate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
        """
99
99
        raise NotImplementedError
100
100
 
101
 
    def is_remote(self):
102
 
        """Return True if the connection is not local.
103
 
        This would indicate that files should be cached, etc.
 
101
    def should_cache(self):
 
102
        """Return True if the data pulled across should be cached locally.
104
103
        """
105
 
        # Most transport mechanisms are going to be Remote.
106
 
        return True
 
104
        return False
107
105
 
108
106
    def _pump(self, from_file, to_file):
109
107
        """Most children will need to copy from one file-like