/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2006-09-28 16:04:42 UTC
  • mfrom: (2025.2.1 bzr.http.clone)
  • mto: This revision was merged to the branch mainline in revision 2052.
  • Revision ID: john@arbash-meinel.com-20060928160442-53b112c0fe1477a8
(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):