~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testmerge.py

  • Committer: Robert Collins
  • Date: 2005-09-12 12:49:28 UTC
  • mfrom: (1092.2.12)
  • mto: (1092.2.15)
  • mto: This revision was merged to the branch mainline in revision 1397.
  • Revision ID: robertc@robertcollins.net-20050912124928-1da074d2e9c3344b
mergeĀ fromĀ baz2bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from bzrlib.branch import Branch
 
2
from bzrlib.commit import commit
 
3
from bzrlib.selftest import TestCaseInTempDir
 
4
from bzrlib.merge import merge
 
5
class TestMerge(TestCaseInTempDir):
 
6
    """Test appending more than one revision"""
 
7
    def test_pending(self):
 
8
        br = Branch(".", init=True)
 
9
        commit(br, "lala!")
 
10
        self.assertEquals(len(br.pending_merges()), 0)
 
11
        merge(['.', -1], [None, None])
 
12
        self.assertEquals(len(br.pending_merges()), 0)