/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/test_export.py

  • Committer: Jelmer Vernooij
  • Date: 2009-07-23 16:30:49 UTC
  • mto: This revision was merged to the branch mainline in revision 4564.
  • Revision ID: jelmer@samba.org-20090723163049-93hqum4ce31ja4nq
Support exporting symlinks when exporting from a working tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
from bzrlib import (
21
21
    export,
 
22
    osutils,
22
23
    tests,
23
24
    )
24
25
 
34
35
        self.failUnlessExists('target/a/b')
35
36
        self.failIfExists('target/a/c')
36
37
 
 
38
    def test_dir_export_symlink(self):
 
39
        if osutils.has_symlinks() is False:
 
40
            return
 
41
        wt = self.make_branch_and_tree('.')
 
42
        os.symlink('source', 'link')
 
43
        wt.add(['link'])
 
44
        export.export(wt, 'target', format="dir")
 
45
        self.failUnlessExists('target/link')