41
41
timestamp=1156451297.96, timezone=0)
44
def run_log_quiet_long(self, args, env_changes={}):
45
cmd = ['--no-aliases', '--no-plugins', '-Oprogress_bar=none',
46
'log', '-q', '--log-format=long']
48
return self.run_bzr_subprocess(cmd, env_changes=env_changes)
50
44
def test_log_C(self):
51
45
self.disable_missing_extensions_warning()
52
out, err = self.run_log_quiet_long(
54
# C is not necessarily the default locale, so set both LANG and
55
# LC_ALL explicitly because LC_ALL is preferred on (some?) Linux
56
# systems but only LANG is respected on Windows.
57
env_changes={'LANG': 'C', 'LC_ALL': 'C', 'LC_CTYPE':None,
46
# C is not necessarily the default locale, so set both LANG and LC_ALL
47
# explicitly because LC_ALL is preferred on (some?) Linux systems but
48
# only LANG is respected on Windows.
49
out, err = self.run_bzr_subprocess(
50
'--no-aliases --no-plugins log -q --log-format=long tree',
51
env_changes={'LANG': 'C', 'BZR_PROGRESS_BAR':'none',
52
'LC_ALL': 'C', 'LC_CTYPE':None, 'LANGUAGE':None})
59
53
self.assertEqual('', err)
60
54
self.assertEqualDiff("""\
61
55
------------------------------------------------------------
70
64
def test_log_BOGUS(self):
71
out, err = self.run_log_quiet_long(
73
env_changes={'LANG':'BOGUS', 'LC_ALL':None, 'LC_CTYPE':None,
65
out, err = self.run_bzr_subprocess(
66
'--no-aliases --no-plugins log -q --log-format=long tree',
67
env_changes={'LANG':'BOGUS', 'BZR_PROGRESS_BAR':'none',
68
'LC_ALL':None, 'LC_CTYPE':None, 'LANGUAGE':None})
75
69
self.assertStartsWith(err, 'bzr: warning: unsupported locale setting')
76
70
self.assertEqualDiff("""\
77
71
------------------------------------------------------------