~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/http_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:
86
86
        # rather than using get_url
87
87
        # self._connection = None
88
88
 
 
89
    def should_cache(self):
 
90
        """Return True if the data pulled across should be cached locally.
 
91
        """
 
92
        return True
 
93
 
89
94
    def clone(self, offset=None):
90
95
        """Return a new HttpTransport with root at self.base + offset
91
96
        For now HttpTransport does not actually connect, so just return
102
107
        """
103
108
        if isinstance(relpath, basestring):
104
109
            relpath = [relpath]
105
 
        return '/'.join([self.base] + relpath)
 
110
        baseurl = self.base.rstrip('/')
 
111
        return '/'.join([baseurl] + relpath)
106
112
 
107
113
    def relpath(self, abspath):
108
114
        if not abspath.startswith(self.base):