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

  • Committer: Jelmer Vernooij
  • Date: 2018-05-15 10:20:16 UTC
  • mfrom: (6967 work)
  • mto: (6973.5.1 python3-c)
  • mto: This revision was merged to the branch mainline in revision 6984.
  • Revision ID: jelmer@jelmer.uk-20180515102016-tnlhsl574pfpplin
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        export.export(wt, 'target', format="dir")
59
59
        self.assertPathExists('target/link')
60
60
 
 
61
    def test_nested_tree(self):
 
62
        wt = self.make_branch_and_tree('.', format='development-subtree')
 
63
        subtree = self.make_branch_and_tree('subtree')
 
64
        self.build_tree(['subtree/file'])
 
65
        subtree.add(['file'])
 
66
        wt.add(['subtree'])
 
67
        export.export(wt, 'target', format="dir")
 
68
        self.assertPathExists('target/subtree')
 
69
        # TODO(jelmer): Once iter_entries_by_dir supports nested tree iteration:
 
70
        # self.assertPathExists('target/subtree/file')
 
71
 
61
72
    def test_to_existing_empty_dir_success(self):
62
73
        self.build_tree(['source/', 'source/a', 'source/b/', 'source/b/c'])
63
74
        wt = self.make_branch_and_tree('source')