~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/fakenfs.py

  • Committer: Alexander Belchenko
  • Date: 2006-07-30 16:43:12 UTC
  • mto: (1711.2.111 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060730164312-b025fd3ff0cee59e
rename  gpl.txt => COPYING.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2008 Canonical Ltd
 
1
# Copyright (C) 2005, 2006 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
"""Transport implementation that adapts another transport to look like NFS.
18
18
 
24
24
 
25
25
from stat import S_ISDIR
26
26
 
27
 
from bzrlib import (
28
 
    errors,
29
 
    urlutils,
30
 
    )
 
27
import bzrlib.errors as errors
31
28
from bzrlib.transport.decorator import TransportDecorator, DecoratorServer
32
29
 
33
30
 
56
53
            else:
57
54
                raise
58
55
 
59
 
    def delete(self, relpath):
60
 
        if urlutils.basename(relpath).startswith('.nfs'):
61
 
            raise errors.ResourceBusy(self.abspath(relpath))
62
 
        return self._decorated.delete(relpath)
63
 
 
64
56
 
65
57
class FakeNFSServer(DecoratorServer):
66
58
    """Server for the FakeNFSTransportDecorator for testing with."""