~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2008-09-02 05:28:37 UTC
  • mfrom: (3675 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3677.
  • Revision ID: robertc@robertcollins.net-20080902052837-ec3qlv41q5e7f6fl
Resolve conflicts with NEWS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
        self.assertContainsRe(log, r'tags: tag1')
178
178
 
179
179
    def test_log_limit(self):
180
 
        self._prepare()
 
180
        tree = self.make_branch_and_tree('.')
 
181
        # We want more commits than our batch size starts at
 
182
        for pos in range(10):
 
183
            tree.commit("%s" % pos)
181
184
        log = self.run_bzr("log --limit 2")[0]
182
185
        self.assertNotContainsRe(log, r'revno: 1\n')
183
 
        self.assertContainsRe(log, r'revno: 2\n')
184
 
        self.assertContainsRe(log, r'revno: 3\n')
 
186
        self.assertNotContainsRe(log, r'revno: 2\n')
 
187
        self.assertNotContainsRe(log, r'revno: 3\n')
 
188
        self.assertNotContainsRe(log, r'revno: 4\n')
 
189
        self.assertNotContainsRe(log, r'revno: 5\n')
 
190
        self.assertNotContainsRe(log, r'revno: 6\n')
 
191
        self.assertNotContainsRe(log, r'revno: 7\n')
 
192
        self.assertNotContainsRe(log, r'revno: 8\n')
 
193
        self.assertContainsRe(log, r'revno: 9\n')
 
194
        self.assertContainsRe(log, r'revno: 10\n')
185
195
 
186
196
    def test_log_limit_short(self):
187
197
        self._prepare()