219
219
self.assertContainsRe(log, r'revno: 2\n')
220
220
self.assertContainsRe(log, r'revno: 3\n')
222
def test_log_short_verbose(self):
224
log = self.run_bzr(['log', '--short', '-v', '-r', '1'])[0]
225
# Check that we use the short status format and not the regular one
223
class TestLogVerbose(TestCaseWithTransport):
226
super(TestLogVerbose, self).setUp()
227
tree = self.make_branch_and_tree('.')
228
self.build_tree(['hello.txt'])
229
tree.add('hello.txt')
230
tree.commit(message='message1')
232
def assertUseShortDeltaFormat(self, cmd):
233
log = self.run_bzr(cmd)[0]
234
# Check that we use the short status format
226
235
self.assertContainsRe(log, '(?m)^A hello.txt$')
227
236
self.assertNotContainsRe(log, '(?m)^added:$')
238
def assertUseLongDeltaFormat(self, cmd):
239
log = self.run_bzr(cmd)[0]
240
# Check that we use the long status format
241
self.assertNotContainsRe(log, '(?m)^A hello.txt$')
242
self.assertContainsRe(log, '(?m)^added:$')
244
def test_log_short_verbose(self):
245
self.assertUseShortDeltaFormat(['log', '--short', '-v'])
229
247
def test_log_short_verbose_verbose(self):
231
log = self.run_bzr(['log', '--short', '-vv', '-r', '1'])[0]
232
# Check that we use the long status format and not the short one
233
self.assertNotContainsRe(log, '(?m)^A hello.txt$')
234
self.assertContainsRe(log, '(?m)^added:$')
248
self.assertUseLongDeltaFormat(['log', '--short', '-vv'])
236
250
def test_log_long_verbose(self):
238
log = self.run_bzr(['log', '--long', '-v', '-r', '1'])[0]
239
251
# Check that we use the long status format, ignoring the verbosity
241
self.assertNotContainsRe(log, '(?m)^A hello.txt$')
242
self.assertContainsRe(log, '(?m)^added:$')
253
self.assertUseLongDeltaFormat(['log', '--long', '-v'])
244
255
def test_log_long_verbose_verbose(self):
246
log = self.run_bzr(['log', '--long', '-vv', '-r', '1'])[0]
247
256
# Check that we use the long status format, ignoring the verbosity
249
self.assertNotContainsRe(log, '(?m)^A hello.txt$')
250
self.assertContainsRe(log, '(?m)^added:$')
258
self.assertUseLongDeltaFormat(['log', '--long', '-vv'])
253
261
class TestLogMerges(TestCaseWithoutPropsHandler):