~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/brokenrename.py

  • Committer: Vincent Ladeuil
  • Date: 2013-07-13 19:05:24 UTC
  • mto: This revision was merged to the branch mainline in revision 6580.
  • Revision ID: v.ladeuil+lp@free.fr-20130713190524-3bclzq4hpwkd6hkw
Urgh. pqm still runs python 2.6 so we have to maintain compatibility to land the fix 8-(

Show diffs side-by-side

added added

removed removed

Lines of Context:
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
"""Transport implementation that doesn't detect clashing renames.
18
18
"""
19
19
 
20
 
from stat import S_ISDIR
 
20
from __future__ import absolute_import
21
21
 
22
22
from bzrlib import (
23
23
        errors,
24
24
        urlutils,
25
25
        )
26
 
from bzrlib.transport.decorator import TransportDecorator, DecoratorServer
27
 
 
28
 
 
29
 
class BrokenRenameTransportDecorator(TransportDecorator):
 
26
from bzrlib.transport import decorator
 
27
 
 
28
 
 
29
class BrokenRenameTransportDecorator(decorator.TransportDecorator):
30
30
    """A transport that fails to detect clashing renames"""
31
31
 
32
32
    @classmethod
46
46
            return
47
47
 
48
48
 
49
 
class BrokenRenameServer(DecoratorServer):
50
 
    """Server for the BrokenRenameTransportDecorator for testing with."""
51
 
 
52
 
    def get_decorator_class(self):
53
 
        return BrokenRenameTransportDecorator
54
 
 
55
 
 
56
49
def get_test_permutations():
57
50
    """Return the permutations to be used in testing."""
58
51
    # we don't use this for general testing, only for the tests that