/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 bzrlib/_known_graph_pyx.pyx

Start going through the test failures.

It did catch 1 case where there should have been an exception clause.
So far, though, it doesn't seem super useful, and has some false
positives...

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
            parent_keys, child_keys)
109
109
 
110
110
 
111
 
cdef _KnownGraphNode _get_list_node(lst, Py_ssize_t pos):
 
111
cdef _KnownGraphNode _get_list_node(lst, Py_ssize_t pos): # no except
112
112
    cdef PyObject *temp_node
113
113
 
114
114
    temp_node = PyList_GET_ITEM(lst, pos)
115
115
    return <_KnownGraphNode>temp_node
116
116
 
117
117
 
118
 
cdef _KnownGraphNode _get_tuple_node(tpl, Py_ssize_t pos):
 
118
cdef _KnownGraphNode _get_tuple_node(tpl, Py_ssize_t pos): # no except
119
119
    cdef PyObject *temp_node
120
120
 
121
121
    temp_node = PyTuple_GET_ITEM(tpl, pos)
208
208
            child = <_KnownGraphNode>temp_node
209
209
            child.clear_references()
210
210
 
211
 
    cdef _KnownGraphNode _get_or_create_node(self, key):
 
211
    # Note: We don't need to set an 'except clause because _KnownGraphNode is
 
212
    #       an object type. However our crude test_source parser doesn't know
 
213
    #       how to tell that
 
214
    cdef _KnownGraphNode _get_or_create_node(self, key): # no except
212
215
        cdef PyObject *temp_node
213
216
        cdef _KnownGraphNode node
214
217
 
591
594
            self._revno_first, self._revno_second, self._revno_last,
592
595
            self.is_first_child, self.seen_by_child)
593
596
 
594
 
    cdef int has_pending_parents(self):
 
597
    cdef int has_pending_parents(self): # no except
595
598
        if self.left_pending_parent is not None or self.pending_parents:
596
599
            return 1
597
600
        return 0
642
645
            node = self.graph._nodes[tip_key]
643
646
            self._push_node(node, 0)
644
647
 
645
 
    cdef _MergeSortNode _get_ms_node(self, _KnownGraphNode node):
 
648
    # Note: _MergeSortNode is an object type so there is an implied except
 
649
    cdef _MergeSortNode _get_ms_node(self, _KnownGraphNode node): # no except
646
650
        cdef PyObject *temp_node
647
651
        cdef _MergeSortNode ms_node
648
652