~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-02-24 01:38:17 UTC
  • mfrom: (3211.6.2 bzr.bug-188855)
  • Revision ID: pqm@pqm.ubuntu.com-20080224013817-4ps9nmrzjtg9ugtz
(James Henstridge) Fix MemoryTransport._abspath() for relpath=''
 (bug #188855)

Show diffs side-by-side

added added

removed removed

Lines of Context:
261
261
    def _abspath(self, relpath):
262
262
        """Generate an internal absolute path."""
263
263
        relpath = urlutils.unescape(relpath)
264
 
        if relpath == '':
265
 
            return '/'
266
 
        if relpath[0] == '/':
 
264
        if relpath[:1] == '/':
267
265
            return relpath
268
266
        cwd_parts = self._cwd.split('/')
269
267
        rel_parts = relpath.split('/')