~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_log.py

Start reproducing the problems reported in the bug.

* bzrlib/tests/test_log.py:
(LogCatcher): Avoid all known filtering by default.
(LogCatcher.__init__): Respect the signature or we lose part of
the command-line parameters (--levels at least).

* bzrlib/tests/blackbox/test_log.py:
(TestBug474807): Reproduce graph and problems reported in bug.

* bzrlib/log.py:
(calculate_view_revisions): Really deprecate ! We lost one year
here :-/
(_rebase_merge_depth): Deprecate too since it's only used by a
deprecated function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
    being dependent on the formatting.
130
130
    """
131
131
 
 
132
    supports_merge_revisions = True
132
133
    supports_delta = True
 
134
    preferred_levels = 0
133
135
 
134
 
    def __init__(self):
135
 
        super(LogCatcher, self).__init__(to_file=None)
 
136
    def __init__(self, *args, **kwargs):
 
137
        kwargs.update(dict(to_file=None))
 
138
        super(LogCatcher, self).__init__(*args, **kwargs)
136
139
        self.revisions = []
137
140
 
138
141
    def log_revision(self, revision):