~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_repository/test_revision.py

  • Committer: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        tree1 = self.make_branch_and_tree("br1")
70
70
 
71
71
        # create a revision
72
 
        tree1.commit(message="quux", allow_pointless=True, committer="jaq",
73
 
                     revprops={'empty':'',
74
 
                               'value':'one',
75
 
                               'unicode':u'\xb5',
76
 
                               'multiline':'foo\nbar\n\n'
77
 
                              })
78
 
        self.assertTrue(len(tree1.branch.revision_history()) > 0)
 
72
        rev1 = tree1.commit(message="quux", allow_pointless=True,
 
73
            committer="jaq",
 
74
            revprops={'empty':'',
 
75
                      'value':'one',
 
76
                      'unicode':u'\xb5',
 
77
                      'multiline':'foo\nbar\n\n'
 
78
                      })
 
79
        self.assertEquals(tree1.branch.last_revision(), rev1)
79
80
        rev_a = tree1.branch.repository.get_revision(
80
81
                            tree1.branch.last_revision())
81
82