~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http.py

  • Committer: Robert Collins
  • Date: 2005-10-10 23:18:27 UTC
  • mfrom: (1437)
  • mto: This revision was merged to the branch mainline in revision 1438.
  • Revision ID: robertc@robertcollins.net-20051010231827-f9e2dda2e92bf565
mergeĀ fromĀ upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
                    # In most filesystems, a request for the parent
90
90
                    # of root, just returns root.
91
91
                    continue
92
 
                basepath.pop()
 
92
                if len(basepath) > 0:
 
93
                    basepath.pop()
93
94
            elif p == '.':
94
95
                continue # No-op
95
96
            else:
144
145
        try:
145
146
            return get_url(self.abspath(relpath))
146
147
        except (BzrError, urllib2.URLError, IOError), e:
147
 
            raise NoSuchFile(orig_error=e)
148
 
        except Exception,e:
149
 
            raise HttpTransportError(orig_error=e)
 
148
            raise NoSuchFile(msg = "Error retrieving %s" 
 
149
                             % self.abspath(relpath),
 
150
                             orig_error=e)
150
151
 
151
152
    def get_partial(self, relpath, start, length=None):
152
153
        """Get just part of a file.