/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/_annotator_pyx.pyx

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

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)