/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_mv.py

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import os
20
20
 
 
21
from bzrlib import (
 
22
    osutils,
 
23
    workingtree,
 
24
)
21
25
from bzrlib.tests import TestCaseWithTransport
22
26
 
23
27
 
128
132
 
129
133
        self.run_bzr('move', 'a', 'b')
130
134
        self.run_bzr('rename', 'b', 'a')
 
135
 
 
136
    def test_mv_through_symlinks(self):
 
137
        if not osutils.has_symlinks():
 
138
            raise TestSkipped('Symlinks are not supported on this platform')
 
139
        tree = self.make_branch_and_tree('.')
 
140
        self.build_tree(['a/', 'a/b'])
 
141
        os.symlink('a', 'c')
 
142
        os.symlink('.', 'd')
 
143
        tree.add(['a', 'a/b', 'c'], ['a-id', 'b-id', 'c-id'])
 
144
        self.run_bzr('mv', 'c/b', 'b')
 
145
        tree = workingtree.WorkingTree.open('.')
 
146
        self.assertEqual('b-id', tree.path2id('b'))