~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Merge up bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2008 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
43
43
        self.example_branch('a')
44
44
        self.run_bzr('branch a b')
45
45
        b = branch.Branch.open('b')
46
 
        self.assertEqual('b\n', b.control_files.get_utf8('branch-name').read())
47
46
        self.run_bzr('branch a c -r 1')
 
47
        # previously was erroneously created by branching
 
48
        self.assertFalse(b.control_files._transport.has('branch-name'))
48
49
        b.bzrdir.open_workingtree().commit(message='foo', allow_pointless=True)
49
50
 
50
51
    def test_branch_only_copies_history(self):