155
155
log = self.run_bzr("log -r-1")[0]
156
156
self.assertContainsRe(log, r' tags: tag1')
157
157
log = self.run_bzr("log -r3.1.1")[0]
158
self.assertContainsRe(log, r' tags: tag1')
158
self.assertContainsRe(log, r'tags: tag1')
160
160
def test_log_limit(self):
243
243
out,err = self.run_bzr('log -r1.1.2')
244
244
# the log will look something like:
245
245
# self.assertEqual("""\
246
#------------------------------------------------------------
248
#committer: Robert Collins <foo@example.com>
250
#timestamp: Tue 2006-03-28 22:31:40 +1100
246
253
# ------------------------------------------------------------
248
255
# committer: Robert Collins <foo@example.com>
256
# branch nick: smallerchild
250
257
# timestamp: Tue 2006-03-28 22:31:40 +1100
253
# ------------------------------------------------------------
255
# committer: Robert Collins <foo@example.com>
256
# branch nick: smallerchild
257
# timestamp: Tue 2006-03-28 22:31:40 +1100
261
261
# but we dont have a nice pattern matcher hooked up yet, so:
262
262
# we check for the indenting of the commit message and the
263
263
# revision numbers
264
264
self.assertTrue('revno: 2' not in out)
265
265
self.assertTrue(' merge branch 1' not in out)
266
self.assertTrue(' revno: 1.1.2' in out)
267
self.assertTrue(' merge branch 2' in out)
268
self.assertTrue(' revno: 1.1.1.1' in out)
269
self.assertTrue(' branch 2' in out)
270
self.assertTrue(' revno: 1.1.1\n' not in out)
271
self.assertTrue(' branch 1' not in out)
266
self.assertTrue('revno: 1.1.2' in out)
267
self.assertTrue(' merge branch 2' in out)
268
self.assertTrue(' revno: 1.1.1.1' in out)
269
self.assertTrue(' branch 2' in out)
270
self.assertTrue('revno: 1.1.1\n' not in out)
271
self.assertTrue(' branch 1' not in out)
272
272
self.assertTrue('revno: 1\n' not in out)
273
273
self.assertTrue(' first post' not in out)
274
274
self.assertEqual('', err)
278
278
out,err = self.run_bzr('log -r1.1.1..1.1.2')
279
279
# the log will look something like:
280
280
# self.assertEqual("""\
281
# ------------------------------------------------------------
283
# committer: Robert Collins <foo@example.com>
285
# timestamp: Tue 2006-03-28 22:31:40 +1100
288
# ------------------------------------------------------------
290
# committer: Robert Collins <foo@example.com>
291
# branch nick: smallerchild
292
# timestamp: Tue 2006-03-28 22:31:40 +1100
295
# ------------------------------------------------------------
297
# committer: Robert Collins <foo@example.com>
299
# timestamp: Tue 2006-03-28 22:31:40 +1100
281
#------------------------------------------------------------
283
#committer: Robert Collins <foo@example.com>
285
#timestamp: Tue 2006-03-28 22:31:40 +1100
288
# ------------------------------------------------------------
290
# committer: Robert Collins <foo@example.com>
291
# branch nick: smallerchild
292
# timestamp: Tue 2006-03-28 22:31:40 +1100
295
#------------------------------------------------------------
297
#committer: Robert Collins <foo@example.com>
299
#timestamp: Tue 2006-03-28 22:31:40 +1100
303
303
# but we dont have a nice pattern matcher hooked up yet, so:
304
304
# we check for the indenting of the commit message and the
305
305
# revision numbers
306
306
self.assertTrue('revno: 2' not in out)
307
307
self.assertTrue(' merge branch 1' not in out)
308
self.assertTrue(' revno: 1.1.2' in out)
309
self.assertTrue(' merge branch 2' in out)
310
self.assertTrue(' revno: 1.1.1.1' in out)
311
self.assertTrue(' branch 2' in out)
312
self.assertTrue(' revno: 1.1.1' in out)
313
self.assertTrue(' branch 1' in out)
308
self.assertTrue('revno: 1.1.2' in out)
309
self.assertTrue(' merge branch 2' in out)
310
self.assertTrue(' revno: 1.1.1.1' in out)
311
self.assertTrue(' branch 2' in out)
312
self.assertTrue('revno: 1.1.1' in out)
313
self.assertTrue(' branch 1' in out)
314
314
self.assertTrue('revno: 1\n' not in out)
315
315
self.assertTrue(' first post' not in out)
316
316
self.assertEqual('', err)