~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Benoît Pierre
  • Date: 2011-10-10 20:55:52 UTC
  • mto: This revision was merged to the branch mainline in revision 6215.
  • Revision ID: benoit.pierre@gmail.com-20111010205552-7o6qoaiihy31hhxb
Avoid prompt duplication for shelf_ui tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
""", out)
126
126
        self.assertEqual('', err)
127
127
        tree1.commit('commit one')
128
 
        rev = branch1.repository.get_revision(branch1.revision_history()[0])
 
128
        rev = branch1.repository.get_revision(branch1.last_revision())
129
129
        datestring_first = osutils.format_date(rev.timestamp, rev.timezone)
130
130
 
131
131
        # Branch standalone with push location
317
317
        self.build_tree(['standalone/b'])
318
318
        tree1.add('b')
319
319
        tree1.commit('commit two')
320
 
        rev = branch1.repository.get_revision(branch1.revision_history()[-1])
 
320
        rev = branch1.repository.get_revision(branch1.last_revision())
321
321
        datestring_last = osutils.format_date(rev.timestamp, rev.timezone)
322
322
 
323
323
        # Out of date branched standalone branch will not be detected
571
571
        self.build_tree(['tree/lightcheckout/a'])
572
572
        tree2.add('a')
573
573
        tree2.commit('commit one')
574
 
        rev = repo.get_revision(branch2.revision_history()[0])
 
574
        rev = repo.get_revision(branch2.last_revision())
575
575
        datestring_first = osutils.format_date(rev.timestamp, rev.timezone)
576
576
        out, err = self.run_bzr('info tree/lightcheckout --verbose')
577
577
        self.assertEqualDiff(
690
690
        tree3.commit('commit two')
691
691
 
692
692
        # Out of date lightweight checkout
693
 
        rev = repo.get_revision(branch1.revision_history()[-1])
 
693
        rev = repo.get_revision(branch1.last_revision())
694
694
        datestring_last = osutils.format_date(rev.timestamp, rev.timezone)
695
695
        out, err = self.run_bzr('info tree/lightcheckout --verbose')
696
696
        self.assertEqualDiff(
846
846
        tree1 = branch1.bzrdir.open_workingtree()
847
847
        tree1.add('a')
848
848
        tree1.commit('commit one')
849
 
        rev = repo.get_revision(branch1.revision_history()[0])
 
849
        rev = repo.get_revision(branch1.last_revision())
850
850
        datestring_first = osutils.format_date(rev.timestamp, rev.timezone)
851
851
        out, err = self.run_bzr('info -v repo/branch1')
852
852
        self.assertEqualDiff(