/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/_annotator_pyx.pyx

  • Committer: Breezy landing bot
  • Author(s): Martin
  • Date: 2017-06-05 01:55:02 UTC
  • mfrom: (6651.4.3 plugin_rewrite)
  • Revision ID: breezy.the.bot@gmail.com-20170605015502-tqiyvpz3qt00fge1
Rewrite of plugin module

Merged from https://code.launchpad.net/~gz/brz/plugin_rewrite/+merge/325033

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        PyObject *, PyObject *, int opid)
56
56
 
57
57
 
58
 
from bzrlib import _annotator_py
 
58
from breezy import _annotator_py
59
59
 
60
60
 
61
61
cdef int _check_annotations_are_lists(annotations,
174
174
    _check_annotations_are_lists(annotations, parent_annotations)
175
175
    par_list = <PyListObject *>parent_annotations
176
176
    ann_list = <PyListObject *>annotations
177
 
    # For NEWS and bzrlib/builtins.py, over 99% of the lines are simply copied
 
177
    # For NEWS and breezy/builtins.py, over 99% of the lines are simply copied
178
178
    # across from the parent entry. So this routine is heavily optimized for
179
179
    # that. Would be interesting if we could use memcpy() but we have to incref
180
180
    # and decref
269
269
        """
270
270
        cdef Py_ssize_t pos, num_lines
271
271
 
272
 
        from bzrlib import annotate
 
272
        from breezy import annotate
273
273
 
274
274
        custom_tiebreaker = annotate._break_annotation_tie
275
275
        annotations, lines = self.annotate(key)