~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2007-05-25 04:00:47 UTC
  • mfrom: (2466.9.1 log_limit)
  • mto: This revision was merged to the branch mainline in revision 2494.
  • Revision ID: aaron.bentley@utoronto.ca-20070525040047-w4ymt5gvi3gecx1g
Merge log --limit (Kent Gibson)

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
        log = self.runbzr("log -r-1")[0]
149
149
        self.assertContainsRe(log, r'    tags: tag1')
150
150
 
 
151
    def test_log_limit(self):
 
152
        self._prepare()
 
153
        log = self.runbzr("log --limit 2")[0]
 
154
        self.assertTrue('revno: 1\n' not in log)
 
155
        self.assertTrue('revno: 2\n' in log)
 
156
        self.assertTrue('revno: 3\n' in log)
 
157
 
151
158
 
152
159
class TestLogMerges(ExternalBase):
153
160