~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

  • Committer: John Arbash Meinel
  • Date: 2006-04-25 15:05:42 UTC
  • mfrom: (1185.85.85 bzr-encoding)
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: john@arbash-meinel.com-20060425150542-c7b518dca9928691
[merge] the old bzr-encoding changes, reparenting them on bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from stat import *
28
28
from cStringIO import StringIO
29
29
 
 
30
from bzrlib.errors import TransportError, NoSuchFile, FileExists, LockError
30
31
from bzrlib.trace import mutter
31
 
from bzrlib.errors import TransportError, NoSuchFile, FileExists, LockError
32
 
from bzrlib.transport import Transport, register_transport, Server
 
32
from bzrlib.transport import (Transport, register_transport, Server,
 
33
                              urlescape, urlunescape)
 
34
 
33
35
 
34
36
 
35
37
class MemoryStat(object):
232
234
 
233
235
    def _abspath(self, relpath):
234
236
        """Generate an internal absolute path."""
 
237
        relpath = urlunescape(relpath)
235
238
        if relpath.find('..') != -1:
236
239
            raise AssertionError('relpath contains ..')
237
240
        if relpath == '.':