~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commit_merge.py

  • Committer: John Arbash Meinel
  • Date: 2007-11-16 02:11:34 UTC
  • mto: This revision was merged to the branch mainline in revision 3002.
  • Revision ID: john@arbash-meinel.com-20071116021134-e0fjjpjllimkhj3v
Re-introduce the None check in case someone asks to uncommit *to* the last revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import shutil
20
20
 
21
21
from bzrlib.tests import (
22
 
    SymlinkFeature,
23
22
    TestCaseWithTransport,
 
23
    TestSkipped,
24
24
    )
25
25
from bzrlib.branch import Branch
26
26
from bzrlib.errors import PointlessCommit, BzrError
102
102
        by.repository.check([by.last_revision()])
103
103
 
104
104
    def test_merge_with_symlink(self):
105
 
        self.requireFeature(SymlinkFeature)
 
105
        if not osutils.has_symlinks():
 
106
            raise TestSkipped('Symlinks are not supported on this platform')
106
107
        tree_a = self.make_branch_and_tree('tree_a')
107
108
        os.symlink('target', osutils.pathjoin('tree_a', 'link'))
108
109
        tree_a.add('link')