Rev 4973: Get rid of normalize_log() and other related dead code. in file:///home/vila/src/bzr/bugs/476293-log-check-ancestor/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Fri Jan 22 09:46:40 GMT 2010
At file:///home/vila/src/bzr/bugs/476293-log-check-ancestor/
------------------------------------------------------------
revno: 4973
revision-id: v.ladeuil+lp at free.fr-20100122094640-of45fuz09t8gboxi
parent: v.ladeuil+lp at free.fr-20100122094443-q3uy6d3w4737sneg
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: respect-direction
timestamp: Fri 2010-01-22 10:46:40 +0100
message:
Get rid of normalize_log() and other related dead code.
-------------- next part --------------
=== modified file 'bzrlib/tests/blackbox/test_log.py'
--- a/bzrlib/tests/blackbox/test_log.py 2010-01-22 09:44:43 +0000
+++ b/bzrlib/tests/blackbox/test_log.py 2010-01-22 09:46:40 +0000
@@ -64,12 +64,6 @@
tree.commit(message='merge')
return tree
- def check_log(self, expected, args, working_dir='level0'):
- out, err = self.run_bzr(['log', '--timezone', 'utc'] + args,
- working_dir=working_dir)
- self.assertEqual('', err)
- self.assertEqualDiff(expected, test_log.normalize_log(out))
-
class TestLogWithLogCatcher(TestLog):
=== modified file 'bzrlib/tests/test_log.py'
--- a/bzrlib/tests/test_log.py 2010-01-22 09:44:43 +0000
+++ b/bzrlib/tests/test_log.py 2010-01-22 09:46:40 +0000
@@ -281,24 +281,6 @@
self.checkDelta(logentry.delta, added=['file1', 'file2'])
-
-def normalize_log(log):
- """Replaces the variable lines of logs with fixed lines"""
- author = 'author: Dolor Sit <test at example.com>'
- committer = 'committer: Lorem Ipsum <test at example.com>'
- lines = log.splitlines(True)
- for idx,line in enumerate(lines):
- stripped_line = line.lstrip()
- indent = ' ' * (len(line) - len(stripped_line))
- if stripped_line.startswith('author:'):
- lines[idx] = indent + author + '\n'
- elif stripped_line.startswith('committer:'):
- lines[idx] = indent + committer + '\n'
- elif stripped_line.startswith('timestamp:'):
- lines[idx] = indent + 'timestamp: Just now\n'
- return ''.join(lines)
-
-
class TestShortLogFormatter(TestCaseForLogFormatter):
def test_trailing_newlines(self):
More information about the bazaar-commits
mailing list