/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/blackbox/test_reference.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-16 23:19:12 UTC
  • mfrom: (7180 work)
  • mto: This revision was merged to the branch mainline in revision 7294.
  • Revision ID: jelmer@jelmer.uk-20181116231912-e043vpq22bdkxa6q
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        tree = self.make_branch_and_tree('tree')
43
43
        self.build_tree(['tree/newpath'])
44
44
        tree.add('newpath', b'file-id')
45
 
        tree.branch.set_reference_info('newpath', 'http://example.org', b'file-id')
 
45
        tree.branch.set_reference_info(
 
46
            'newpath', 'http://example.org', b'file-id')
46
47
        tree.branch.set_reference_info('lath', 'http://example.org/2',
47
 
                b'file-id2')
 
48
                                       b'file-id2')
48
49
        return tree
49
50
 
50
51
    def test_uses_working_tree_location(self):
89
90
    def test_missing_file_forced(self):
90
91
        tree = self.make_branch_and_tree('tree')
91
92
        out, err = self.run_bzr(
92
 
                'reference --force-unversioned file http://example.org',
93
 
                working_dir='tree')
 
93
            'reference --force-unversioned file http://example.org',
 
94
            working_dir='tree')
94
95
        location, file_id = tree.branch.get_reference_info('file')
95
96
        self.assertEqual('http://example.org', location)
96
97
        self.assertEqual('', out)