~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-05-25 04:33:32 UTC
  • mfrom: (2493.1.1 bzr.ab.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070525043332-aw7j04dvjy6ua1v9
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