~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2011-09-19 13:02:42 UTC
  • mto: This revision was merged to the branch mainline in revision 6147.
  • Revision ID: jelmer@samba.org-20110919130242-dp14u1nwn9yyrk6j
Some more comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
514
514
        parsed_source = self._split_url(source)
515
515
        parsed_target = self._split_url(target)
516
516
        pl = len(self._parsed_url.path)
 
517
        # determine the excess tail - the relative path that was in
 
518
        # the original request but not part of this transports' URL.
517
519
        excess_tail = parsed_source.path[pl:].strip("/")
518
520
        if not target.endswith(excess_tail):
519
521
            # The final part of the url has been renamed, we can't handle the