~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testbranch.py

  • Committer: Robert Collins
  • Date: 2005-10-17 11:56:54 UTC
  • mfrom: (1185.16.59)
  • Revision ID: robertc@robertcollins.net-20051017115654-662239e1587524a8
mergeĀ fromĀ martin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import bzrlib.transactions as transactions
26
26
from bzrlib.selftest.HTTPTestUtil import TestCaseWithWebserver
27
27
 
 
28
# TODO: Make a branch using basis branch, and check that it 
 
29
# doesn't request any files that could have been avoided, by 
 
30
# hooking into the Transport.
 
31
 
28
32
class TestBranch(TestCaseInTempDir):
29
33
 
30
34
    def test_append_revisions(self):
83
87
        os.mkdir('c')
84
88
        br_c = copy_branch(br_a, 'c', basis_branch=br_b)
85
89
        self.assertEqual(br_a.revision_history(), br_c.revision_history())
86
 
        ## # basis branches currently disabled for weave format
87
 
        ## self.assertFalse(br_b.last_revision() in br_c.revision_history())
88
 
        ## br_c.get_revision(br_b.last_revision())
89
90
 
90
91
    def test_copy_partial(self):
91
92
        """Copy only part of the history of a branch."""