~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revision.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-30 13:54:37 UTC
  • mto: (1946.2.6 reduce-knit-churn)
  • mto: This revision was merged to the branch mainline in revision 1898.
  • Revision ID: john@arbash-meinel.com-20060730135437-1d722abdb14bff76
(jelmer) Install new intertree tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
307
307
        tree1 = self.make_branch_and_tree("br1")
308
308
 
309
309
        # create a revision
310
 
        tree1.commit(message="quux", allow_pointless=True, committer="jaq",
311
 
                     revprops={'empty':'',
312
 
                               'value':'one',
313
 
                               'unicode':'\xb5',
314
 
                               'multiline':'foo\nbar\n\n'
315
 
                              })
 
310
        tree1.commit(message="quux", allow_pointless=True, committer="jaq")
316
311
        assert len(tree1.branch.revision_history()) > 0
317
312
        rev_a = tree1.branch.repository.get_revision(tree1.branch.last_revision())
318
313
 
322
317
                     timezone=rev_a.timezone,
323
318
                     committer=rev_a.committer,
324
319
                     rev_id=rev_a.revision_id,
325
 
                     revprops=rev_a.properties,
326
320
                     allow_pointless=True, # there's nothing in this commit
327
321
                     strict=True,
328
322
                     verbose=True)
333
327
        self.assertEqual(rev_a.timezone, rev_b.timezone)
334
328
        self.assertEqual(rev_a.committer, rev_b.committer)
335
329
        self.assertEqual(rev_a.revision_id, rev_b.revision_id)
336
 
        self.assertEqual(rev_a.properties, rev_b.properties)