~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

  • Committer: Andrew Bennetts
  • Date: 2007-03-28 07:08:42 UTC
  • mfrom: (2380 +trunk)
  • mto: (2018.5.146 hpss)
  • mto: This revision was merged to the branch mainline in revision 2414.
  • Revision ID: andrew.bennetts@canonical.com-20070328070842-r843houy668oxb9o
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
        if _abspath in self._files:
193
193
            self._translate_error(IOError(errno.ENOTDIR, relpath), relpath)
194
194
        for path in self._files:
195
 
            if path.startswith(_abspath):
 
195
            if path.startswith(_abspath + '/'):
196
196
                self._translate_error(IOError(errno.ENOTEMPTY, relpath),
197
197
                                      relpath)
198
198
        for path in self._dirs:
199
 
            if path.startswith(_abspath) and path != _abspath:
 
199
            if path.startswith(_abspath + '/') and path != _abspath:
200
200
                self._translate_error(IOError(errno.ENOTEMPTY, relpath), relpath)
201
201
        if not _abspath in self._dirs:
202
202
            raise NoSuchFile(relpath)