~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-28 16:15:39 UTC
  • mfrom: (2051.1.1 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060928161539-3fc7d0f247fcfc5b
(vila) Provide cloning hint to children of HttpTransportBase

Show diffs side-by-side

added added

removed removed

Lines of Context:
371
371
 
372
372
    def clone(self, offset=None):
373
373
        """Return a new HttpTransportBase with root at self.base + offset
374
 
        For now HttpTransportBase does not actually connect, so just return
375
 
        a new HttpTransportBase object.
 
374
 
 
375
        We leave the daughter classes take advantage of the hint
 
376
        that it's a cloning not a raw creation.
376
377
        """
377
378
        if offset is None:
378
 
            return self.__class__(self.base)
 
379
            return self.__class__(self.base, self)
379
380
        else:
380
 
            return self.__class__(self.abspath(offset))
 
381
            return self.__class__(self.abspath(offset), self)
381
382
 
382
383
    @staticmethod
383
384
    def range_header(ranges, tail_amount):