~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: v.ladeuil+lp at free
  • Date: 2006-09-21 07:59:29 UTC
  • mto: (2051.1.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2052.
  • Revision ID: v.ladeuil+lp@free.fr-20060921075929-3572272c52c8e14f
Fix bug #61606 by providing cloning hint do daughter classes.

* bzrlib/transport/http/__init__.py:
(HttpTransportBase.clone): We can't decide for the class daughters how
the cloning occurs. We just give them the hint.

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):