Merge lp:~bzr-core/ubuntu/oneiric/bzr/sru-2.4.2 into lp:ubuntu/oneiric/bzr

Proposed by Jelmer Vernooij
Status: Merged
Merge reported by: Colin Watson
Merged at revision: not available
Proposed branch: lp:~bzr-core/ubuntu/oneiric/bzr/sru-2.4.2
Merge into: lp:ubuntu/oneiric/bzr
Diff against target: 45810 lines (+8587/-8117)
64 files modified
.bzr-builddeb/default.conf (+1/-0)
Makefile (+2/-0)
bzr (+1/-1)
bzrlib/__init__.py (+1/-1)
bzrlib/_annotator_pyx.c (+140/-140)
bzrlib/_bencode_pyx.c (+231/-231)
bzrlib/_btree_serializer_pyx.c (+470/-470)
bzrlib/_chk_map_pyx.c (+260/-260)
bzrlib/_chunks_to_lines_pyx.c (+52/-52)
bzrlib/_dirstate_helpers_pyx.c (+5233/-5009)
bzrlib/_dirstate_helpers_pyx.pyx (+9/-6)
bzrlib/_groupcompress_pyx.c (+302/-302)
bzrlib/_knit_load_data_pyx.c (+115/-115)
bzrlib/_known_graph_pyx.c (+484/-484)
bzrlib/_readdir_pyx.c (+132/-132)
bzrlib/_rio_pyx.c (+119/-119)
bzrlib/_simple_set_pyx.c (+245/-245)
bzrlib/_simple_set_pyx.h (+1/-1)
bzrlib/branch.py (+2/-1)
bzrlib/builtins.py (+44/-7)
bzrlib/config.py (+44/-19)
bzrlib/diff-delta.c (+5/-0)
bzrlib/dirstate.py (+3/-2)
bzrlib/help_topics/__init__.py (+1/-2)
bzrlib/i18n.py (+5/-1)
bzrlib/osutils.py (+17/-2)
bzrlib/plugins/launchpad/__init__.py (+1/-1)
bzrlib/remote.py (+2/-1)
bzrlib/repository.py (+4/-0)
bzrlib/smart/repository.py (+1/-1)
bzrlib/tests/__init__.py (+10/-1)
bzrlib/tests/blackbox/test_branch.py (+14/-4)
bzrlib/tests/per_repository_reference/__init__.py (+28/-9)
bzrlib/tests/stub_sftp.py (+2/-2)
bzrlib/tests/test__dirstate_helpers.py (+53/-0)
bzrlib/tests/test_config.py (+73/-8)
bzrlib/tests/test_i18n.py (+15/-2)
bzrlib/tests/test_osutils.py (+10/-0)
bzrlib/tests/test_repository.py (+8/-0)
bzrlib/tests/test_selftest.py (+16/-9)
bzrlib/tests/test_server.py (+3/-2)
bzrlib/tests/test_test_server.py (+55/-19)
bzrlib/transport/__init__.py (+1/-1)
bzrlib/transport/http/_pycurl.py (+7/-5)
bzrlib/transport/local.py (+1/-1)
bzrlib/urlutils.py (+2/-3)
bzrlib/version.py (+1/-1)
bzrlib/vf_repository.py (+3/-1)
debian/changelog (+24/-0)
debian/patches/01_selftest_package (+5/-5)
debian/patches/04_fix_i18n (+0/-61)
debian/patches/10_testtools_compatibility (+0/-319)
debian/patches/11_localhost_locks (+22/-0)
debian/patches/series (+1/-2)
doc/en/admin-guide/simple-setups.txt (+4/-4)
doc/en/mini-tutorial/index.txt (+61/-38)
doc/en/release-notes/bzr-2.0.txt (+3/-0)
doc/en/release-notes/bzr-2.1.txt (+24/-0)
doc/en/release-notes/bzr-2.2.txt (+40/-14)
doc/en/release-notes/bzr-2.3.txt (+5/-0)
doc/en/release-notes/bzr-2.4.txt (+156/-0)
doc/en/whats-new/whats-new-in-2.2.txt (+3/-0)
doc/en/whats-new/whats-new-in-2.4.txt (+9/-0)
setup.py (+1/-1)
To merge this branch: bzr merge lp:~bzr-core/ubuntu/oneiric/bzr/sru-2.4.2
Reviewer Review Type Date Requested Status
Ubuntu Sponsors Pending
Ubuntu Stable Release Updates Team Pending
Review via email: mp+81039@code.launchpad.net

Description of the change

SRU bzr 2.4.2, which fixes about a dozen bugs.

Bazaar is in the SRU MicroReleaseExceptions group (https://lists.ubuntu.com/archives/technical-board/2010-September/000513.html)

To post a comment you must log in.
Revision history for this message
Martin Pool (mbp) wrote :

Actually merging it is blocked because https://bugs.launchpad.net/udd/+bug/848064 affects the target branch.

3951. By Jelmer Vernooij

releasing version 2.4.2-0ubuntu1

Revision history for this message
Colin Watson (cjwatson) wrote :

In practice this has been uploaded:

  https://launchpad.net/ubuntu/+source/bzr/2.4.2-0ubuntu1

... so I'm artificially marking it as merged to get it off the sponsorship queue.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '.bzr-builddeb/default.conf'
--- .bzr-builddeb/default.conf 2011-08-31 16:04:52 +0000
+++ .bzr-builddeb/default.conf 2011-11-03 14:37:19 +0000
@@ -1,3 +1,4 @@
1[BUILDDEB]1[BUILDDEB]
2upstream-branch = lp:bzr/2.42upstream-branch = lp:bzr/2.4
3export-upstream-revision = tag:bzr-$UPSTREAM_VERSION
3#upstream-branch = lp:bzr4#upstream-branch = lp:bzr
45
=== modified file 'Makefile'
--- Makefile 2011-05-21 17:34:06 +0000
+++ Makefile 2011-11-03 14:37:19 +0000
@@ -42,7 +42,9 @@
42 set -e42 set -e
43 # Generate a stream for PQM to watch.43 # Generate a stream for PQM to watch.
44 -$(RM) -f selftest.log44 -$(RM) -f selftest.log
45 echo `date` ": selftest starts" 1>&2
45 $(PYTHON) -Werror -Wignore::ImportWarning -O ./bzr selftest --subunit $(tests) | tee selftest.log46 $(PYTHON) -Werror -Wignore::ImportWarning -O ./bzr selftest --subunit $(tests) | tee selftest.log
47 echo `date` ": selftest ends" 1>&2
46 # An empty log file should catch errors in the $(PYTHON)48 # An empty log file should catch errors in the $(PYTHON)
47 # command above (the '|' swallow any errors since 'make'49 # command above (the '|' swallow any errors since 'make'
48 # sees the 'tee' exit code for the whole line50 # sees the 'tee' exit code for the whole line
4951
=== modified file 'bzr'
--- bzr 2011-08-31 16:04:52 +0000
+++ bzr 2011-11-03 14:37:19 +0000
@@ -23,7 +23,7 @@
23import warnings23import warnings
2424
25# update this on each release25# update this on each release
26_script_version = (2, 4, 0)26_script_version = (2, 4, 2)
2727
28try:28try:
29 version_info = sys.version_info29 version_info = sys.version_info
3030
=== modified file 'bzrlib/__init__.py'
--- bzrlib/__init__.py 2011-08-31 16:04:52 +0000
+++ bzrlib/__init__.py 2011-11-03 14:37:19 +0000
@@ -52,7 +52,7 @@
52# Python version 2.0 is (2, 0, 0, 'final', 0)." Additionally we use a52# Python version 2.0 is (2, 0, 0, 'final', 0)." Additionally we use a
53# releaselevel of 'dev' for unreleased under-development code.53# releaselevel of 'dev' for unreleased under-development code.
5454
55version_info = (2, 4, 0, 'final', 0)55version_info = (2, 4, 2, 'final', 0)
5656
57# API compatibility version57# API compatibility version
58api_minimum_version = (2, 4, 0)58api_minimum_version = (2, 4, 0)
5959
=== modified file 'bzrlib/_annotator_pyx.c'
--- bzrlib/_annotator_pyx.c 2011-08-31 15:04:43 +0000
+++ bzrlib/_annotator_pyx.c 2011-11-03 14:37:19 +0000
@@ -1,4 +1,4 @@
1/* Generated by Cython 0.13 on Thu Aug 11 09:45:13 2011 */1/* Generated by Cython 0.13 on Mon Sep 19 20:18:37 2011 */
22
3#define PY_SSIZE_T_CLEAN3#define PY_SSIZE_T_CLEAN
4#include "Python.h"4#include "Python.h"
@@ -538,7 +538,7 @@
538static PyObject *__pyx_n_s__self;538static PyObject *__pyx_n_s__self;
539static PyObject *__pyx_n_s__this_annotation;539static PyObject *__pyx_n_s__this_annotation;
540540
541/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":61541/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":61
542 * 542 *
543 * 543 *
544 * cdef int _check_annotations_are_lists(annotations, # <<<<<<<<<<<<<<544 * cdef int _check_annotations_are_lists(annotations, # <<<<<<<<<<<<<<
@@ -553,7 +553,7 @@
553 PyObject *__pyx_t_3 = NULL;553 PyObject *__pyx_t_3 = NULL;
554 __Pyx_RefNannySetupContext("_check_annotations_are_lists");554 __Pyx_RefNannySetupContext("_check_annotations_are_lists");
555555
556 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":63556 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":63
557 * cdef int _check_annotations_are_lists(annotations,557 * cdef int _check_annotations_are_lists(annotations,
558 * parent_annotations) except -1:558 * parent_annotations) except -1:
559 * if not PyList_CheckExact(annotations): # <<<<<<<<<<<<<<559 * if not PyList_CheckExact(annotations): # <<<<<<<<<<<<<<
@@ -563,7 +563,7 @@
563 __pyx_t_1 = (!PyList_CheckExact(__pyx_v_annotations));563 __pyx_t_1 = (!PyList_CheckExact(__pyx_v_annotations));
564 if (__pyx_t_1) {564 if (__pyx_t_1) {
565565
566 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":64566 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":64
567 * parent_annotations) except -1:567 * parent_annotations) except -1:
568 * if not PyList_CheckExact(annotations):568 * if not PyList_CheckExact(annotations):
569 * raise TypeError('annotations must be a list') # <<<<<<<<<<<<<<569 * raise TypeError('annotations must be a list') # <<<<<<<<<<<<<<
@@ -585,7 +585,7 @@
585 }585 }
586 __pyx_L3:;586 __pyx_L3:;
587587
588 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":65588 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":65
589 * if not PyList_CheckExact(annotations):589 * if not PyList_CheckExact(annotations):
590 * raise TypeError('annotations must be a list')590 * raise TypeError('annotations must be a list')
591 * if not PyList_CheckExact(parent_annotations): # <<<<<<<<<<<<<<591 * if not PyList_CheckExact(parent_annotations): # <<<<<<<<<<<<<<
@@ -595,7 +595,7 @@
595 __pyx_t_1 = (!PyList_CheckExact(__pyx_v_parent_annotations));595 __pyx_t_1 = (!PyList_CheckExact(__pyx_v_parent_annotations));
596 if (__pyx_t_1) {596 if (__pyx_t_1) {
597597
598 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":66598 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":66
599 * raise TypeError('annotations must be a list')599 * raise TypeError('annotations must be a list')
600 * if not PyList_CheckExact(parent_annotations):600 * if not PyList_CheckExact(parent_annotations):
601 * raise TypeError('parent_annotations must be a list') # <<<<<<<<<<<<<<601 * raise TypeError('parent_annotations must be a list') # <<<<<<<<<<<<<<
@@ -617,7 +617,7 @@
617 }617 }
618 __pyx_L4:;618 __pyx_L4:;
619619
620 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":67620 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":67
621 * if not PyList_CheckExact(parent_annotations):621 * if not PyList_CheckExact(parent_annotations):
622 * raise TypeError('parent_annotations must be a list')622 * raise TypeError('parent_annotations must be a list')
623 * return 0 # <<<<<<<<<<<<<<623 * return 0 # <<<<<<<<<<<<<<
@@ -639,7 +639,7 @@
639 return __pyx_r;639 return __pyx_r;
640}640}
641641
642/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":70642/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":70
643 * 643 *
644 * 644 *
645 * cdef int _check_match_ranges(parent_annotations, annotations, # <<<<<<<<<<<<<<645 * cdef int _check_match_ranges(parent_annotations, annotations, # <<<<<<<<<<<<<<
@@ -655,7 +655,7 @@
655 PyObject *__pyx_t_4 = NULL;655 PyObject *__pyx_t_4 = NULL;
656 __Pyx_RefNannySetupContext("_check_match_ranges");656 __Pyx_RefNannySetupContext("_check_match_ranges");
657657
658 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":73658 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":73
659 * Py_ssize_t parent_idx, Py_ssize_t lines_idx,659 * Py_ssize_t parent_idx, Py_ssize_t lines_idx,
660 * Py_ssize_t match_len) except -1:660 * Py_ssize_t match_len) except -1:
661 * if parent_idx + match_len > PyList_GET_SIZE(parent_annotations): # <<<<<<<<<<<<<<661 * if parent_idx + match_len > PyList_GET_SIZE(parent_annotations): # <<<<<<<<<<<<<<
@@ -665,7 +665,7 @@
665 __pyx_t_1 = ((__pyx_v_parent_idx + __pyx_v_match_len) > PyList_GET_SIZE(__pyx_v_parent_annotations));665 __pyx_t_1 = ((__pyx_v_parent_idx + __pyx_v_match_len) > PyList_GET_SIZE(__pyx_v_parent_annotations));
666 if (__pyx_t_1) {666 if (__pyx_t_1) {
667667
668 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":76668 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":76
669 * raise ValueError('Match length exceeds len of'669 * raise ValueError('Match length exceeds len of'
670 * ' parent_annotations %s > %s'670 * ' parent_annotations %s > %s'
671 * % (parent_idx + match_len, # <<<<<<<<<<<<<<671 * % (parent_idx + match_len, # <<<<<<<<<<<<<<
@@ -675,7 +675,7 @@
675 __pyx_t_2 = PyInt_FromSsize_t((__pyx_v_parent_idx + __pyx_v_match_len)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}675 __pyx_t_2 = PyInt_FromSsize_t((__pyx_v_parent_idx + __pyx_v_match_len)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
676 __Pyx_GOTREF(__pyx_t_2);676 __Pyx_GOTREF(__pyx_t_2);
677677
678 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":77678 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":77
679 * ' parent_annotations %s > %s'679 * ' parent_annotations %s > %s'
680 * % (parent_idx + match_len,680 * % (parent_idx + match_len,
681 * PyList_GET_SIZE(parent_annotations))) # <<<<<<<<<<<<<<681 * PyList_GET_SIZE(parent_annotations))) # <<<<<<<<<<<<<<
@@ -710,7 +710,7 @@
710 }710 }
711 __pyx_L3:;711 __pyx_L3:;
712712
713 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":78713 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":78
714 * % (parent_idx + match_len,714 * % (parent_idx + match_len,
715 * PyList_GET_SIZE(parent_annotations)))715 * PyList_GET_SIZE(parent_annotations)))
716 * if lines_idx + match_len > PyList_GET_SIZE(annotations): # <<<<<<<<<<<<<<716 * if lines_idx + match_len > PyList_GET_SIZE(annotations): # <<<<<<<<<<<<<<
@@ -720,7 +720,7 @@
720 __pyx_t_1 = ((__pyx_v_lines_idx + __pyx_v_match_len) > PyList_GET_SIZE(__pyx_v_annotations));720 __pyx_t_1 = ((__pyx_v_lines_idx + __pyx_v_match_len) > PyList_GET_SIZE(__pyx_v_annotations));
721 if (__pyx_t_1) {721 if (__pyx_t_1) {
722722
723 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":81723 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":81
724 * raise ValueError('Match length exceeds len of'724 * raise ValueError('Match length exceeds len of'
725 * ' annotations %s > %s'725 * ' annotations %s > %s'
726 * % (lines_idx + match_len, # <<<<<<<<<<<<<<726 * % (lines_idx + match_len, # <<<<<<<<<<<<<<
@@ -730,7 +730,7 @@
730 __pyx_t_3 = PyInt_FromSsize_t((__pyx_v_lines_idx + __pyx_v_match_len)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}730 __pyx_t_3 = PyInt_FromSsize_t((__pyx_v_lines_idx + __pyx_v_match_len)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
731 __Pyx_GOTREF(__pyx_t_3);731 __Pyx_GOTREF(__pyx_t_3);
732732
733 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":82733 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":82
734 * ' annotations %s > %s'734 * ' annotations %s > %s'
735 * % (lines_idx + match_len,735 * % (lines_idx + match_len,
736 * PyList_GET_SIZE(annotations))) # <<<<<<<<<<<<<<736 * PyList_GET_SIZE(annotations))) # <<<<<<<<<<<<<<
@@ -765,7 +765,7 @@
765 }765 }
766 __pyx_L4:;766 __pyx_L4:;
767767
768 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":83768 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":83
769 * % (lines_idx + match_len,769 * % (lines_idx + match_len,
770 * PyList_GET_SIZE(annotations)))770 * PyList_GET_SIZE(annotations)))
771 * return 0 # <<<<<<<<<<<<<<771 * return 0 # <<<<<<<<<<<<<<
@@ -788,7 +788,7 @@
788 return __pyx_r;788 return __pyx_r;
789}789}
790790
791/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":86791/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":86
792 * 792 *
793 * 793 *
794 * cdef PyObject *_next_tuple_entry(object tpl, Py_ssize_t *pos): # cannot_raise # <<<<<<<<<<<<<<794 * cdef PyObject *_next_tuple_entry(object tpl, Py_ssize_t *pos): # cannot_raise # <<<<<<<<<<<<<<
@@ -801,7 +801,7 @@
801 int __pyx_t_1;801 int __pyx_t_1;
802 __Pyx_RefNannySetupContext("_next_tuple_entry");802 __Pyx_RefNannySetupContext("_next_tuple_entry");
803803
804 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":94804 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":94
805 * This cannot raise an exception, as it does no error checking.805 * This cannot raise an exception, as it does no error checking.
806 * """806 * """
807 * pos[0] = pos[0] + 1 # <<<<<<<<<<<<<<807 * pos[0] = pos[0] + 1 # <<<<<<<<<<<<<<
@@ -810,7 +810,7 @@
810 */810 */
811 (__pyx_v_pos[0]) = ((__pyx_v_pos[0]) + 1);811 (__pyx_v_pos[0]) = ((__pyx_v_pos[0]) + 1);
812812
813 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":95813 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":95
814 * """814 * """
815 * pos[0] = pos[0] + 1815 * pos[0] = pos[0] + 1
816 * if pos[0] >= PyTuple_GET_SIZE(tpl): # <<<<<<<<<<<<<<816 * if pos[0] >= PyTuple_GET_SIZE(tpl): # <<<<<<<<<<<<<<
@@ -820,7 +820,7 @@
820 __pyx_t_1 = ((__pyx_v_pos[0]) >= PyTuple_GET_SIZE(__pyx_v_tpl));820 __pyx_t_1 = ((__pyx_v_pos[0]) >= PyTuple_GET_SIZE(__pyx_v_tpl));
821 if (__pyx_t_1) {821 if (__pyx_t_1) {
822822
823 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":96823 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":96
824 * pos[0] = pos[0] + 1824 * pos[0] = pos[0] + 1
825 * if pos[0] >= PyTuple_GET_SIZE(tpl):825 * if pos[0] >= PyTuple_GET_SIZE(tpl):
826 * return NULL # <<<<<<<<<<<<<<826 * return NULL # <<<<<<<<<<<<<<
@@ -833,7 +833,7 @@
833 }833 }
834 __pyx_L3:;834 __pyx_L3:;
835835
836 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":97836 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":97
837 * if pos[0] >= PyTuple_GET_SIZE(tpl):837 * if pos[0] >= PyTuple_GET_SIZE(tpl):
838 * return NULL838 * return NULL
839 * return PyTuple_GET_ITEM(tpl, pos[0]) # <<<<<<<<<<<<<<839 * return PyTuple_GET_ITEM(tpl, pos[0]) # <<<<<<<<<<<<<<
@@ -849,7 +849,7 @@
849 return __pyx_r;849 return __pyx_r;
850}850}
851851
852/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":100852/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":100
853 * 853 *
854 * 854 *
855 * cdef object _combine_annotations(ann_one, ann_two, cache): # <<<<<<<<<<<<<<855 * cdef object _combine_annotations(ann_one, ann_two, cache): # <<<<<<<<<<<<<<
@@ -877,7 +877,7 @@
877 __pyx_v_cache_key = ((PyObject *)Py_None); __Pyx_INCREF(Py_None);877 __pyx_v_cache_key = ((PyObject *)Py_None); __Pyx_INCREF(Py_None);
878 __pyx_v_new_ann = Py_None; __Pyx_INCREF(Py_None);878 __pyx_v_new_ann = Py_None; __Pyx_INCREF(Py_None);
879879
880 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":106880 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":106
881 * cdef PyObject *temp, *left, *right881 * cdef PyObject *temp, *left, *right
882 * 882 *
883 * if (PyObject_RichCompareBool(ann_one, ann_two, Py_LT)): # <<<<<<<<<<<<<<883 * if (PyObject_RichCompareBool(ann_one, ann_two, Py_LT)): # <<<<<<<<<<<<<<
@@ -887,7 +887,7 @@
887 __pyx_t_1 = PyObject_RichCompareBool(__pyx_v_ann_one, __pyx_v_ann_two, Py_LT); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}887 __pyx_t_1 = PyObject_RichCompareBool(__pyx_v_ann_one, __pyx_v_ann_two, Py_LT); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
888 if (__pyx_t_1) {888 if (__pyx_t_1) {
889889
890 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":107890 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":107
891 * 891 *
892 * if (PyObject_RichCompareBool(ann_one, ann_two, Py_LT)):892 * if (PyObject_RichCompareBool(ann_one, ann_two, Py_LT)):
893 * cache_key = (ann_one, ann_two) # <<<<<<<<<<<<<<893 * cache_key = (ann_one, ann_two) # <<<<<<<<<<<<<<
@@ -910,7 +910,7 @@
910 }910 }
911 /*else*/ {911 /*else*/ {
912912
913 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":109913 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":109
914 * cache_key = (ann_one, ann_two)914 * cache_key = (ann_one, ann_two)
915 * else:915 * else:
916 * cache_key = (ann_two, ann_one) # <<<<<<<<<<<<<<916 * cache_key = (ann_two, ann_one) # <<<<<<<<<<<<<<
@@ -932,7 +932,7 @@
932 }932 }
933 __pyx_L3:;933 __pyx_L3:;
934934
935 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":110935 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":110
936 * else:936 * else:
937 * cache_key = (ann_two, ann_one)937 * cache_key = (ann_two, ann_one)
938 * temp = PyDict_GetItem(cache, cache_key) # <<<<<<<<<<<<<<938 * temp = PyDict_GetItem(cache, cache_key) # <<<<<<<<<<<<<<
@@ -941,7 +941,7 @@
941 */941 */
942 __pyx_v_temp = PyDict_GetItem(__pyx_v_cache, ((PyObject *)__pyx_v_cache_key));942 __pyx_v_temp = PyDict_GetItem(__pyx_v_cache, ((PyObject *)__pyx_v_cache_key));
943943
944 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":111944 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":111
945 * cache_key = (ann_two, ann_one)945 * cache_key = (ann_two, ann_one)
946 * temp = PyDict_GetItem(cache, cache_key)946 * temp = PyDict_GetItem(cache, cache_key)
947 * if temp != NULL: # <<<<<<<<<<<<<<947 * if temp != NULL: # <<<<<<<<<<<<<<
@@ -951,7 +951,7 @@
951 __pyx_t_3 = (__pyx_v_temp != NULL);951 __pyx_t_3 = (__pyx_v_temp != NULL);
952 if (__pyx_t_3) {952 if (__pyx_t_3) {
953953
954 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":112954 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":112
955 * temp = PyDict_GetItem(cache, cache_key)955 * temp = PyDict_GetItem(cache, cache_key)
956 * if temp != NULL:956 * if temp != NULL:
957 * return <object>temp # <<<<<<<<<<<<<<957 * return <object>temp # <<<<<<<<<<<<<<
@@ -966,7 +966,7 @@
966 }966 }
967 __pyx_L4:;967 __pyx_L4:;
968968
969 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":114969 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":114
970 * return <object>temp970 * return <object>temp
971 * 971 *
972 * if not PyTuple_CheckExact(ann_one) or not PyTuple_CheckExact(ann_two): # <<<<<<<<<<<<<<972 * if not PyTuple_CheckExact(ann_one) or not PyTuple_CheckExact(ann_two): # <<<<<<<<<<<<<<
@@ -982,7 +982,7 @@
982 }982 }
983 if (__pyx_t_5) {983 if (__pyx_t_5) {
984984
985 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":115985 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":115
986 * 986 *
987 * if not PyTuple_CheckExact(ann_one) or not PyTuple_CheckExact(ann_two):987 * if not PyTuple_CheckExact(ann_one) or not PyTuple_CheckExact(ann_two):
988 * raise TypeError('annotations must be tuples') # <<<<<<<<<<<<<<988 * raise TypeError('annotations must be tuples') # <<<<<<<<<<<<<<
@@ -1004,7 +1004,7 @@
1004 }1004 }
1005 __pyx_L5:;1005 __pyx_L5:;
10061006
1007 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1181007 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":118
1008 * # We know that annotations are tuples, and that both sides are already1008 * # We know that annotations are tuples, and that both sides are already
1009 * # sorted, so we can just walk and update a new list.1009 * # sorted, so we can just walk and update a new list.
1010 * pos_one = -1 # <<<<<<<<<<<<<<1010 * pos_one = -1 # <<<<<<<<<<<<<<
@@ -1013,7 +1013,7 @@
1013 */1013 */
1014 __pyx_v_pos_one = -1;1014 __pyx_v_pos_one = -1;
10151015
1016 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1191016 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":119
1017 * # sorted, so we can just walk and update a new list.1017 * # sorted, so we can just walk and update a new list.
1018 * pos_one = -11018 * pos_one = -1
1019 * pos_two = -1 # <<<<<<<<<<<<<<1019 * pos_two = -1 # <<<<<<<<<<<<<<
@@ -1022,7 +1022,7 @@
1022 */1022 */
1023 __pyx_v_pos_two = -1;1023 __pyx_v_pos_two = -1;
10241024
1025 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1201025 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":120
1026 * pos_one = -11026 * pos_one = -1
1027 * pos_two = -11027 * pos_two = -1
1028 * out_pos = 0 # <<<<<<<<<<<<<<1028 * out_pos = 0 # <<<<<<<<<<<<<<
@@ -1031,7 +1031,7 @@
1031 */1031 */
1032 __pyx_v_out_pos = 0;1032 __pyx_v_out_pos = 0;
10331033
1034 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1211034 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":121
1035 * pos_two = -11035 * pos_two = -1
1036 * out_pos = 01036 * out_pos = 0
1037 * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<<1037 * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<<
@@ -1040,7 +1040,7 @@
1040 */1040 */
1041 __pyx_v_left = __pyx_f_6bzrlib_14_annotator_pyx__next_tuple_entry(__pyx_v_ann_one, (&__pyx_v_pos_one));1041 __pyx_v_left = __pyx_f_6bzrlib_14_annotator_pyx__next_tuple_entry(__pyx_v_ann_one, (&__pyx_v_pos_one));
10421042
1043 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1221043 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":122
1044 * out_pos = 01044 * out_pos = 0
1045 * left = _next_tuple_entry(ann_one, &pos_one)1045 * left = _next_tuple_entry(ann_one, &pos_one)
1046 * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<<1046 * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<<
@@ -1049,7 +1049,7 @@
1049 */1049 */
1050 __pyx_v_right = __pyx_f_6bzrlib_14_annotator_pyx__next_tuple_entry(__pyx_v_ann_two, (&__pyx_v_pos_two));1050 __pyx_v_right = __pyx_f_6bzrlib_14_annotator_pyx__next_tuple_entry(__pyx_v_ann_two, (&__pyx_v_pos_two));
10511051
1052 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1241052 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":124
1053 * right = _next_tuple_entry(ann_two, &pos_two)1053 * right = _next_tuple_entry(ann_two, &pos_two)
1054 * new_ann = PyTuple_New(PyTuple_GET_SIZE(ann_one)1054 * new_ann = PyTuple_New(PyTuple_GET_SIZE(ann_one)
1055 * + PyTuple_GET_SIZE(ann_two)) # <<<<<<<<<<<<<<1055 * + PyTuple_GET_SIZE(ann_two)) # <<<<<<<<<<<<<<
@@ -1062,7 +1062,7 @@
1062 __pyx_v_new_ann = __pyx_t_6;1062 __pyx_v_new_ann = __pyx_t_6;
1063 __pyx_t_6 = 0;1063 __pyx_t_6 = 0;
10641064
1065 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1251065 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":125
1066 * new_ann = PyTuple_New(PyTuple_GET_SIZE(ann_one)1066 * new_ann = PyTuple_New(PyTuple_GET_SIZE(ann_one)
1067 * + PyTuple_GET_SIZE(ann_two))1067 * + PyTuple_GET_SIZE(ann_two))
1068 * while left != NULL and right != NULL: # <<<<<<<<<<<<<<1068 * while left != NULL and right != NULL: # <<<<<<<<<<<<<<
@@ -1079,7 +1079,7 @@
1079 }1079 }
1080 if (!__pyx_t_4) break;1080 if (!__pyx_t_4) break;
10811081
1082 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1301082 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":130
1083 * # annotate NEWS' from 7.25s to 7.16s, so it *is* a visible impact.1083 * # annotate NEWS' from 7.25s to 7.16s, so it *is* a visible impact.
1084 * if (left == right1084 * if (left == right
1085 * or PyObject_RichCompareBool_ptr(left, right, Py_EQ)): # <<<<<<<<<<<<<<1085 * or PyObject_RichCompareBool_ptr(left, right, Py_EQ)): # <<<<<<<<<<<<<<
@@ -1094,7 +1094,7 @@
1094 }1094 }
1095 if (__pyx_t_5) {1095 if (__pyx_t_5) {
10961096
1097 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1321097 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":132
1098 * or PyObject_RichCompareBool_ptr(left, right, Py_EQ)):1098 * or PyObject_RichCompareBool_ptr(left, right, Py_EQ)):
1099 * # Identical values, step both1099 * # Identical values, step both
1100 * Py_INCREF_ptr(left) # <<<<<<<<<<<<<<1100 * Py_INCREF_ptr(left) # <<<<<<<<<<<<<<
@@ -1103,7 +1103,7 @@
1103 */1103 */
1104 Py_INCREF(__pyx_v_left);1104 Py_INCREF(__pyx_v_left);
11051105
1106 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1331106 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":133
1107 * # Identical values, step both1107 * # Identical values, step both
1108 * Py_INCREF_ptr(left)1108 * Py_INCREF_ptr(left)
1109 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) # <<<<<<<<<<<<<<1109 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) # <<<<<<<<<<<<<<
@@ -1112,7 +1112,7 @@
1112 */1112 */
1113 PyTuple_SET_ITEM(__pyx_v_new_ann, __pyx_v_out_pos, __pyx_v_left);1113 PyTuple_SET_ITEM(__pyx_v_new_ann, __pyx_v_out_pos, __pyx_v_left);
11141114
1115 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1341115 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":134
1116 * Py_INCREF_ptr(left)1116 * Py_INCREF_ptr(left)
1117 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left)1117 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left)
1118 * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<<1118 * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<<
@@ -1121,7 +1121,7 @@
1121 */1121 */
1122 __pyx_v_left = __pyx_f_6bzrlib_14_annotator_pyx__next_tuple_entry(__pyx_v_ann_one, (&__pyx_v_pos_one));1122 __pyx_v_left = __pyx_f_6bzrlib_14_annotator_pyx__next_tuple_entry(__pyx_v_ann_one, (&__pyx_v_pos_one));
11231123
1124 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1351124 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":135
1125 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left)1125 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left)
1126 * left = _next_tuple_entry(ann_one, &pos_one)1126 * left = _next_tuple_entry(ann_one, &pos_one)
1127 * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<<1127 * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<<
@@ -1132,7 +1132,7 @@
1132 goto __pyx_L8;1132 goto __pyx_L8;
1133 }1133 }
11341134
1135 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1361135 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":136
1136 * left = _next_tuple_entry(ann_one, &pos_one)1136 * left = _next_tuple_entry(ann_one, &pos_one)
1137 * right = _next_tuple_entry(ann_two, &pos_two)1137 * right = _next_tuple_entry(ann_two, &pos_two)
1138 * elif (PyObject_RichCompareBool_ptr(left, right, Py_LT)): # <<<<<<<<<<<<<<1138 * elif (PyObject_RichCompareBool_ptr(left, right, Py_LT)): # <<<<<<<<<<<<<<
@@ -1142,7 +1142,7 @@
1142 __pyx_t_1 = PyObject_RichCompareBool(__pyx_v_left, __pyx_v_right, Py_LT);1142 __pyx_t_1 = PyObject_RichCompareBool(__pyx_v_left, __pyx_v_right, Py_LT);
1143 if (__pyx_t_1) {1143 if (__pyx_t_1) {
11441144
1145 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1381145 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":138
1146 * elif (PyObject_RichCompareBool_ptr(left, right, Py_LT)):1146 * elif (PyObject_RichCompareBool_ptr(left, right, Py_LT)):
1147 * # left < right or right == NULL1147 * # left < right or right == NULL
1148 * Py_INCREF_ptr(left) # <<<<<<<<<<<<<<1148 * Py_INCREF_ptr(left) # <<<<<<<<<<<<<<
@@ -1151,7 +1151,7 @@
1151 */1151 */
1152 Py_INCREF(__pyx_v_left);1152 Py_INCREF(__pyx_v_left);
11531153
1154 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1391154 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":139
1155 * # left < right or right == NULL1155 * # left < right or right == NULL
1156 * Py_INCREF_ptr(left)1156 * Py_INCREF_ptr(left)
1157 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) # <<<<<<<<<<<<<<1157 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) # <<<<<<<<<<<<<<
@@ -1160,7 +1160,7 @@
1160 */1160 */
1161 PyTuple_SET_ITEM(__pyx_v_new_ann, __pyx_v_out_pos, __pyx_v_left);1161 PyTuple_SET_ITEM(__pyx_v_new_ann, __pyx_v_out_pos, __pyx_v_left);
11621162
1163 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1401163 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":140
1164 * Py_INCREF_ptr(left)1164 * Py_INCREF_ptr(left)
1165 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left)1165 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left)
1166 * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<<1166 * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<<
@@ -1172,7 +1172,7 @@
1172 }1172 }
1173 /*else*/ {1173 /*else*/ {
11741174
1175 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1421175 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":142
1176 * left = _next_tuple_entry(ann_one, &pos_one)1176 * left = _next_tuple_entry(ann_one, &pos_one)
1177 * else: # right < left or left == NULL1177 * else: # right < left or left == NULL
1178 * Py_INCREF_ptr(right) # <<<<<<<<<<<<<<1178 * Py_INCREF_ptr(right) # <<<<<<<<<<<<<<
@@ -1181,7 +1181,7 @@
1181 */1181 */
1182 Py_INCREF(__pyx_v_right);1182 Py_INCREF(__pyx_v_right);
11831183
1184 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1431184 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":143
1185 * else: # right < left or left == NULL1185 * else: # right < left or left == NULL
1186 * Py_INCREF_ptr(right)1186 * Py_INCREF_ptr(right)
1187 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) # <<<<<<<<<<<<<<1187 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) # <<<<<<<<<<<<<<
@@ -1190,7 +1190,7 @@
1190 */1190 */
1191 PyTuple_SET_ITEM(__pyx_v_new_ann, __pyx_v_out_pos, __pyx_v_right);1191 PyTuple_SET_ITEM(__pyx_v_new_ann, __pyx_v_out_pos, __pyx_v_right);
11921192
1193 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1441193 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":144
1194 * Py_INCREF_ptr(right)1194 * Py_INCREF_ptr(right)
1195 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right)1195 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right)
1196 * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<<1196 * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<<
@@ -1201,7 +1201,7 @@
1201 }1201 }
1202 __pyx_L8:;1202 __pyx_L8:;
12031203
1204 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1451204 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":145
1205 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right)1205 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right)
1206 * right = _next_tuple_entry(ann_two, &pos_two)1206 * right = _next_tuple_entry(ann_two, &pos_two)
1207 * out_pos = out_pos + 1 # <<<<<<<<<<<<<<1207 * out_pos = out_pos + 1 # <<<<<<<<<<<<<<
@@ -1211,7 +1211,7 @@
1211 __pyx_v_out_pos = (__pyx_v_out_pos + 1);1211 __pyx_v_out_pos = (__pyx_v_out_pos + 1);
1212 }1212 }
12131213
1214 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1461214 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":146
1215 * right = _next_tuple_entry(ann_two, &pos_two)1215 * right = _next_tuple_entry(ann_two, &pos_two)
1216 * out_pos = out_pos + 11216 * out_pos = out_pos + 1
1217 * while left != NULL: # <<<<<<<<<<<<<<1217 * while left != NULL: # <<<<<<<<<<<<<<
@@ -1222,7 +1222,7 @@
1222 __pyx_t_5 = (__pyx_v_left != NULL);1222 __pyx_t_5 = (__pyx_v_left != NULL);
1223 if (!__pyx_t_5) break;1223 if (!__pyx_t_5) break;
12241224
1225 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1471225 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":147
1226 * out_pos = out_pos + 11226 * out_pos = out_pos + 1
1227 * while left != NULL:1227 * while left != NULL:
1228 * Py_INCREF_ptr(left) # <<<<<<<<<<<<<<1228 * Py_INCREF_ptr(left) # <<<<<<<<<<<<<<
@@ -1231,7 +1231,7 @@
1231 */1231 */
1232 Py_INCREF(__pyx_v_left);1232 Py_INCREF(__pyx_v_left);
12331233
1234 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1481234 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":148
1235 * while left != NULL:1235 * while left != NULL:
1236 * Py_INCREF_ptr(left)1236 * Py_INCREF_ptr(left)
1237 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) # <<<<<<<<<<<<<<1237 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) # <<<<<<<<<<<<<<
@@ -1240,7 +1240,7 @@
1240 */1240 */
1241 PyTuple_SET_ITEM(__pyx_v_new_ann, __pyx_v_out_pos, __pyx_v_left);1241 PyTuple_SET_ITEM(__pyx_v_new_ann, __pyx_v_out_pos, __pyx_v_left);
12421242
1243 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1491243 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":149
1244 * Py_INCREF_ptr(left)1244 * Py_INCREF_ptr(left)
1245 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left)1245 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left)
1246 * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<<1246 * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<<
@@ -1249,7 +1249,7 @@
1249 */1249 */
1250 __pyx_v_left = __pyx_f_6bzrlib_14_annotator_pyx__next_tuple_entry(__pyx_v_ann_one, (&__pyx_v_pos_one));1250 __pyx_v_left = __pyx_f_6bzrlib_14_annotator_pyx__next_tuple_entry(__pyx_v_ann_one, (&__pyx_v_pos_one));
12511251
1252 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1501252 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":150
1253 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left)1253 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left)
1254 * left = _next_tuple_entry(ann_one, &pos_one)1254 * left = _next_tuple_entry(ann_one, &pos_one)
1255 * out_pos = out_pos + 1 # <<<<<<<<<<<<<<1255 * out_pos = out_pos + 1 # <<<<<<<<<<<<<<
@@ -1259,7 +1259,7 @@
1259 __pyx_v_out_pos = (__pyx_v_out_pos + 1);1259 __pyx_v_out_pos = (__pyx_v_out_pos + 1);
1260 }1260 }
12611261
1262 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1511262 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":151
1263 * left = _next_tuple_entry(ann_one, &pos_one)1263 * left = _next_tuple_entry(ann_one, &pos_one)
1264 * out_pos = out_pos + 11264 * out_pos = out_pos + 1
1265 * while right != NULL: # <<<<<<<<<<<<<<1265 * while right != NULL: # <<<<<<<<<<<<<<
@@ -1270,7 +1270,7 @@
1270 __pyx_t_5 = (__pyx_v_right != NULL);1270 __pyx_t_5 = (__pyx_v_right != NULL);
1271 if (!__pyx_t_5) break;1271 if (!__pyx_t_5) break;
12721272
1273 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1521273 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":152
1274 * out_pos = out_pos + 11274 * out_pos = out_pos + 1
1275 * while right != NULL:1275 * while right != NULL:
1276 * Py_INCREF_ptr(right) # <<<<<<<<<<<<<<1276 * Py_INCREF_ptr(right) # <<<<<<<<<<<<<<
@@ -1279,7 +1279,7 @@
1279 */1279 */
1280 Py_INCREF(__pyx_v_right);1280 Py_INCREF(__pyx_v_right);
12811281
1282 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1531282 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":153
1283 * while right != NULL:1283 * while right != NULL:
1284 * Py_INCREF_ptr(right)1284 * Py_INCREF_ptr(right)
1285 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) # <<<<<<<<<<<<<<1285 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) # <<<<<<<<<<<<<<
@@ -1288,7 +1288,7 @@
1288 */1288 */
1289 PyTuple_SET_ITEM(__pyx_v_new_ann, __pyx_v_out_pos, __pyx_v_right);1289 PyTuple_SET_ITEM(__pyx_v_new_ann, __pyx_v_out_pos, __pyx_v_right);
12901290
1291 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1541291 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":154
1292 * Py_INCREF_ptr(right)1292 * Py_INCREF_ptr(right)
1293 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right)1293 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right)
1294 * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<<1294 * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<<
@@ -1297,7 +1297,7 @@
1297 */1297 */
1298 __pyx_v_right = __pyx_f_6bzrlib_14_annotator_pyx__next_tuple_entry(__pyx_v_ann_two, (&__pyx_v_pos_two));1298 __pyx_v_right = __pyx_f_6bzrlib_14_annotator_pyx__next_tuple_entry(__pyx_v_ann_two, (&__pyx_v_pos_two));
12991299
1300 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1551300 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":155
1301 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right)1301 * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right)
1302 * right = _next_tuple_entry(ann_two, &pos_two)1302 * right = _next_tuple_entry(ann_two, &pos_two)
1303 * out_pos = out_pos + 1 # <<<<<<<<<<<<<<1303 * out_pos = out_pos + 1 # <<<<<<<<<<<<<<
@@ -1307,7 +1307,7 @@
1307 __pyx_v_out_pos = (__pyx_v_out_pos + 1);1307 __pyx_v_out_pos = (__pyx_v_out_pos + 1);
1308 }1308 }
13091309
1310 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1561310 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":156
1311 * right = _next_tuple_entry(ann_two, &pos_two)1311 * right = _next_tuple_entry(ann_two, &pos_two)
1312 * out_pos = out_pos + 11312 * out_pos = out_pos + 1
1313 * if out_pos != PyTuple_GET_SIZE(new_ann): # <<<<<<<<<<<<<<1313 * if out_pos != PyTuple_GET_SIZE(new_ann): # <<<<<<<<<<<<<<
@@ -1317,7 +1317,7 @@
1317 __pyx_t_5 = (__pyx_v_out_pos != PyTuple_GET_SIZE(__pyx_v_new_ann));1317 __pyx_t_5 = (__pyx_v_out_pos != PyTuple_GET_SIZE(__pyx_v_new_ann));
1318 if (__pyx_t_5) {1318 if (__pyx_t_5) {
13191319
1320 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1591320 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":159
1321 * # Timing _PyTuple_Resize was not significantly faster that slicing1321 * # Timing _PyTuple_Resize was not significantly faster that slicing
1322 * # PyTuple_Resize((<PyObject **>new_ann), out_pos)1322 * # PyTuple_Resize((<PyObject **>new_ann), out_pos)
1323 * new_ann = new_ann[0:out_pos] # <<<<<<<<<<<<<<1323 * new_ann = new_ann[0:out_pos] # <<<<<<<<<<<<<<
@@ -1333,7 +1333,7 @@
1333 }1333 }
1334 __pyx_L13:;1334 __pyx_L13:;
13351335
1336 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1601336 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":160
1337 * # PyTuple_Resize((<PyObject **>new_ann), out_pos)1337 * # PyTuple_Resize((<PyObject **>new_ann), out_pos)
1338 * new_ann = new_ann[0:out_pos]1338 * new_ann = new_ann[0:out_pos]
1339 * PyDict_SetItem(cache, cache_key, new_ann) # <<<<<<<<<<<<<<1339 * PyDict_SetItem(cache, cache_key, new_ann) # <<<<<<<<<<<<<<
@@ -1342,7 +1342,7 @@
1342 */1342 */
1343 __pyx_t_1 = PyDict_SetItem(__pyx_v_cache, ((PyObject *)__pyx_v_cache_key), __pyx_v_new_ann); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1_error;}1343 __pyx_t_1 = PyDict_SetItem(__pyx_v_cache, ((PyObject *)__pyx_v_cache_key), __pyx_v_new_ann); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13441344
1345 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1611345 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":161
1346 * new_ann = new_ann[0:out_pos]1346 * new_ann = new_ann[0:out_pos]
1347 * PyDict_SetItem(cache, cache_key, new_ann)1347 * PyDict_SetItem(cache, cache_key, new_ann)
1348 * return new_ann # <<<<<<<<<<<<<<1348 * return new_ann # <<<<<<<<<<<<<<
@@ -1369,7 +1369,7 @@
1369 return __pyx_r;1369 return __pyx_r;
1370}1370}
13711371
1372/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1641372/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":164
1373 * 1373 *
1374 * 1374 *
1375 * cdef int _apply_parent_annotations(annotations, parent_annotations, # <<<<<<<<<<<<<<1375 * cdef int _apply_parent_annotations(annotations, parent_annotations, # <<<<<<<<<<<<<<
@@ -1400,7 +1400,7 @@
1400 PyObject *__pyx_t_11 = NULL;1400 PyObject *__pyx_t_11 = NULL;
1401 __Pyx_RefNannySetupContext("_apply_parent_annotations");1401 __Pyx_RefNannySetupContext("_apply_parent_annotations");
14021402
1403 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1741403 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":174
1404 * cdef PyObject **par_temp, **ann_temp1404 * cdef PyObject **par_temp, **ann_temp
1405 * 1405 *
1406 * _check_annotations_are_lists(annotations, parent_annotations) # <<<<<<<<<<<<<<1406 * _check_annotations_are_lists(annotations, parent_annotations) # <<<<<<<<<<<<<<
@@ -1409,7 +1409,7 @@
1409 */1409 */
1410 __pyx_t_1 = __pyx_f_6bzrlib_14_annotator_pyx__check_annotations_are_lists(__pyx_v_annotations, __pyx_v_parent_annotations); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1_error;}1410 __pyx_t_1 = __pyx_f_6bzrlib_14_annotator_pyx__check_annotations_are_lists(__pyx_v_annotations, __pyx_v_parent_annotations); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14111411
1412 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1751412 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":175
1413 * 1413 *
1414 * _check_annotations_are_lists(annotations, parent_annotations)1414 * _check_annotations_are_lists(annotations, parent_annotations)
1415 * par_list = <PyListObject *>parent_annotations # <<<<<<<<<<<<<<1415 * par_list = <PyListObject *>parent_annotations # <<<<<<<<<<<<<<
@@ -1418,7 +1418,7 @@
1418 */1418 */
1419 __pyx_v_par_list = ((PyListObject *)__pyx_v_parent_annotations);1419 __pyx_v_par_list = ((PyListObject *)__pyx_v_parent_annotations);
14201420
1421 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1761421 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":176
1422 * _check_annotations_are_lists(annotations, parent_annotations)1422 * _check_annotations_are_lists(annotations, parent_annotations)
1423 * par_list = <PyListObject *>parent_annotations1423 * par_list = <PyListObject *>parent_annotations
1424 * ann_list = <PyListObject *>annotations # <<<<<<<<<<<<<<1424 * ann_list = <PyListObject *>annotations # <<<<<<<<<<<<<<
@@ -1427,7 +1427,7 @@
1427 */1427 */
1428 __pyx_v_ann_list = ((PyListObject *)__pyx_v_annotations);1428 __pyx_v_ann_list = ((PyListObject *)__pyx_v_annotations);
14291429
1430 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1811430 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":181
1431 * # that. Would be interesting if we could use memcpy() but we have to incref1431 * # that. Would be interesting if we could use memcpy() but we have to incref
1432 * # and decref1432 * # and decref
1433 * for parent_idx, lines_idx, match_len in matching_blocks: # <<<<<<<<<<<<<<1433 * for parent_idx, lines_idx, match_len in matching_blocks: # <<<<<<<<<<<<<<
@@ -1493,7 +1493,7 @@
1493 __pyx_v_match_len = __pyx_t_8;1493 __pyx_v_match_len = __pyx_t_8;
1494 }1494 }
14951495
1496 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1831496 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":183
1497 * for parent_idx, lines_idx, match_len in matching_blocks:1497 * for parent_idx, lines_idx, match_len in matching_blocks:
1498 * _check_match_ranges(parent_annotations, annotations,1498 * _check_match_ranges(parent_annotations, annotations,
1499 * parent_idx, lines_idx, match_len) # <<<<<<<<<<<<<<1499 * parent_idx, lines_idx, match_len) # <<<<<<<<<<<<<<
@@ -1502,7 +1502,7 @@
1502 */1502 */
1503 __pyx_t_1 = __pyx_f_6bzrlib_14_annotator_pyx__check_match_ranges(__pyx_v_parent_annotations, __pyx_v_annotations, __pyx_v_parent_idx, __pyx_v_lines_idx, __pyx_v_match_len); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}1503 __pyx_t_1 = __pyx_f_6bzrlib_14_annotator_pyx__check_match_ranges(__pyx_v_parent_annotations, __pyx_v_annotations, __pyx_v_parent_idx, __pyx_v_lines_idx, __pyx_v_match_len); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15041504
1505 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1841505 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":184
1506 * _check_match_ranges(parent_annotations, annotations,1506 * _check_match_ranges(parent_annotations, annotations,
1507 * parent_idx, lines_idx, match_len)1507 * parent_idx, lines_idx, match_len)
1508 * par_temp = par_list.ob_item + parent_idx # <<<<<<<<<<<<<<1508 * par_temp = par_list.ob_item + parent_idx # <<<<<<<<<<<<<<
@@ -1511,7 +1511,7 @@
1511 */1511 */
1512 __pyx_v_par_temp = (__pyx_v_par_list->ob_item + __pyx_v_parent_idx);1512 __pyx_v_par_temp = (__pyx_v_par_list->ob_item + __pyx_v_parent_idx);
15131513
1514 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1851514 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":185
1515 * parent_idx, lines_idx, match_len)1515 * parent_idx, lines_idx, match_len)
1516 * par_temp = par_list.ob_item + parent_idx1516 * par_temp = par_list.ob_item + parent_idx
1517 * ann_temp = ann_list.ob_item + lines_idx # <<<<<<<<<<<<<<1517 * ann_temp = ann_list.ob_item + lines_idx # <<<<<<<<<<<<<<
@@ -1520,7 +1520,7 @@
1520 */1520 */
1521 __pyx_v_ann_temp = (__pyx_v_ann_list->ob_item + __pyx_v_lines_idx);1521 __pyx_v_ann_temp = (__pyx_v_ann_list->ob_item + __pyx_v_lines_idx);
15221522
1523 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1861523 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":186
1524 * par_temp = par_list.ob_item + parent_idx1524 * par_temp = par_list.ob_item + parent_idx
1525 * ann_temp = ann_list.ob_item + lines_idx1525 * ann_temp = ann_list.ob_item + lines_idx
1526 * for idx from 0 <= idx < match_len: # <<<<<<<<<<<<<<1526 * for idx from 0 <= idx < match_len: # <<<<<<<<<<<<<<
@@ -1530,7 +1530,7 @@
1530 __pyx_t_8 = __pyx_v_match_len;1530 __pyx_t_8 = __pyx_v_match_len;
1531 for (__pyx_v_idx = 0; __pyx_v_idx < __pyx_t_8; __pyx_v_idx++) {1531 for (__pyx_v_idx = 0; __pyx_v_idx < __pyx_t_8; __pyx_v_idx++) {
15321532
1533 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1871533 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":187
1534 * ann_temp = ann_list.ob_item + lines_idx1534 * ann_temp = ann_list.ob_item + lines_idx
1535 * for idx from 0 <= idx < match_len:1535 * for idx from 0 <= idx < match_len:
1536 * Py_INCREF_ptr(par_temp[idx]) # <<<<<<<<<<<<<<1536 * Py_INCREF_ptr(par_temp[idx]) # <<<<<<<<<<<<<<
@@ -1539,7 +1539,7 @@
1539 */1539 */
1540 Py_INCREF((__pyx_v_par_temp[__pyx_v_idx]));1540 Py_INCREF((__pyx_v_par_temp[__pyx_v_idx]));
15411541
1542 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1881542 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":188
1543 * for idx from 0 <= idx < match_len:1543 * for idx from 0 <= idx < match_len:
1544 * Py_INCREF_ptr(par_temp[idx])1544 * Py_INCREF_ptr(par_temp[idx])
1545 * Py_DECREF_ptr(ann_temp[idx]) # <<<<<<<<<<<<<<1545 * Py_DECREF_ptr(ann_temp[idx]) # <<<<<<<<<<<<<<
@@ -1548,7 +1548,7 @@
1548 */1548 */
1549 Py_DECREF((__pyx_v_ann_temp[__pyx_v_idx]));1549 Py_DECREF((__pyx_v_ann_temp[__pyx_v_idx]));
15501550
1551 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1891551 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":189
1552 * Py_INCREF_ptr(par_temp[idx])1552 * Py_INCREF_ptr(par_temp[idx])
1553 * Py_DECREF_ptr(ann_temp[idx])1553 * Py_DECREF_ptr(ann_temp[idx])
1554 * ann_temp[idx] = par_temp[idx] # <<<<<<<<<<<<<<1554 * ann_temp[idx] = par_temp[idx] # <<<<<<<<<<<<<<
@@ -1560,7 +1560,7 @@
1560 }1560 }
1561 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;1561 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
15621562
1563 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1901563 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":190
1564 * Py_DECREF_ptr(ann_temp[idx])1564 * Py_DECREF_ptr(ann_temp[idx])
1565 * ann_temp[idx] = par_temp[idx]1565 * ann_temp[idx] = par_temp[idx]
1566 * return 0 # <<<<<<<<<<<<<<1566 * return 0 # <<<<<<<<<<<<<<
@@ -1586,7 +1586,7 @@
1586 return __pyx_r;1586 return __pyx_r;
1587}1587}
15881588
1589/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1931589/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":193
1590 * 1590 *
1591 * 1591 *
1592 * cdef int _merge_annotations(this_annotation, annotations, parent_annotations, # <<<<<<<<<<<<<<1592 * cdef int _merge_annotations(this_annotation, annotations, parent_annotations, # <<<<<<<<<<<<<<
@@ -1631,7 +1631,7 @@
1631 __pyx_v_ann = Py_None; __Pyx_INCREF(Py_None);1631 __pyx_v_ann = Py_None; __Pyx_INCREF(Py_None);
1632 __pyx_v_new_ann = Py_None; __Pyx_INCREF(Py_None);1632 __pyx_v_new_ann = Py_None; __Pyx_INCREF(Py_None);
16331633
1634 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1991634 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":199
1635 * cdef PyObject *ann_temp, *par_temp1635 * cdef PyObject *ann_temp, *par_temp
1636 * 1636 *
1637 * _check_annotations_are_lists(annotations, parent_annotations) # <<<<<<<<<<<<<<1637 * _check_annotations_are_lists(annotations, parent_annotations) # <<<<<<<<<<<<<<
@@ -1640,7 +1640,7 @@
1640 */1640 */
1641 __pyx_t_1 = __pyx_f_6bzrlib_14_annotator_pyx__check_annotations_are_lists(__pyx_v_annotations, __pyx_v_parent_annotations); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 199; __pyx_clineno = __LINE__; goto __pyx_L1_error;}1641 __pyx_t_1 = __pyx_f_6bzrlib_14_annotator_pyx__check_annotations_are_lists(__pyx_v_annotations, __pyx_v_parent_annotations); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 199; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16421642
1643 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2001643 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":200
1644 * 1644 *
1645 * _check_annotations_are_lists(annotations, parent_annotations)1645 * _check_annotations_are_lists(annotations, parent_annotations)
1646 * last_ann = None # <<<<<<<<<<<<<<1646 * last_ann = None # <<<<<<<<<<<<<<
@@ -1651,7 +1651,7 @@
1651 __Pyx_DECREF(__pyx_v_last_ann);1651 __Pyx_DECREF(__pyx_v_last_ann);
1652 __pyx_v_last_ann = Py_None;1652 __pyx_v_last_ann = Py_None;
16531653
1654 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2011654 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":201
1655 * _check_annotations_are_lists(annotations, parent_annotations)1655 * _check_annotations_are_lists(annotations, parent_annotations)
1656 * last_ann = None1656 * last_ann = None
1657 * last_parent = None # <<<<<<<<<<<<<<1657 * last_parent = None # <<<<<<<<<<<<<<
@@ -1662,7 +1662,7 @@
1662 __Pyx_DECREF(__pyx_v_last_parent);1662 __Pyx_DECREF(__pyx_v_last_parent);
1663 __pyx_v_last_parent = Py_None;1663 __pyx_v_last_parent = Py_None;
16641664
1665 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2021665 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":202
1666 * last_ann = None1666 * last_ann = None
1667 * last_parent = None1667 * last_parent = None
1668 * last_res = None # <<<<<<<<<<<<<<1668 * last_res = None # <<<<<<<<<<<<<<
@@ -1673,7 +1673,7 @@
1673 __Pyx_DECREF(__pyx_v_last_res);1673 __Pyx_DECREF(__pyx_v_last_res);
1674 __pyx_v_last_res = Py_None;1674 __pyx_v_last_res = Py_None;
16751675
1676 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2031676 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":203
1677 * last_parent = None1677 * last_parent = None
1678 * last_res = None1678 * last_res = None
1679 * for parent_idx, lines_idx, match_len in matching_blocks: # <<<<<<<<<<<<<<1679 * for parent_idx, lines_idx, match_len in matching_blocks: # <<<<<<<<<<<<<<
@@ -1739,7 +1739,7 @@
1739 __pyx_v_match_len = __pyx_t_8;1739 __pyx_v_match_len = __pyx_t_8;
1740 }1740 }
17411741
1742 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2051742 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":205
1743 * for parent_idx, lines_idx, match_len in matching_blocks:1743 * for parent_idx, lines_idx, match_len in matching_blocks:
1744 * _check_match_ranges(parent_annotations, annotations,1744 * _check_match_ranges(parent_annotations, annotations,
1745 * parent_idx, lines_idx, match_len) # <<<<<<<<<<<<<<1745 * parent_idx, lines_idx, match_len) # <<<<<<<<<<<<<<
@@ -1748,7 +1748,7 @@
1748 */1748 */
1749 __pyx_t_1 = __pyx_f_6bzrlib_14_annotator_pyx__check_match_ranges(__pyx_v_parent_annotations, __pyx_v_annotations, __pyx_v_parent_idx, __pyx_v_lines_idx, __pyx_v_match_len); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}1749 __pyx_t_1 = __pyx_f_6bzrlib_14_annotator_pyx__check_match_ranges(__pyx_v_parent_annotations, __pyx_v_annotations, __pyx_v_parent_idx, __pyx_v_lines_idx, __pyx_v_match_len); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17501750
1751 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2081751 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":208
1752 * # For lines which match this parent, we will now resolve whether1752 * # For lines which match this parent, we will now resolve whether
1753 * # this parent wins over the current annotation1753 * # this parent wins over the current annotation
1754 * for idx from 0 <= idx < match_len: # <<<<<<<<<<<<<<1754 * for idx from 0 <= idx < match_len: # <<<<<<<<<<<<<<
@@ -1758,7 +1758,7 @@
1758 __pyx_t_8 = __pyx_v_match_len;1758 __pyx_t_8 = __pyx_v_match_len;
1759 for (__pyx_v_idx = 0; __pyx_v_idx < __pyx_t_8; __pyx_v_idx++) {1759 for (__pyx_v_idx = 0; __pyx_v_idx < __pyx_t_8; __pyx_v_idx++) {
17601760
1761 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2091761 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":209
1762 * # this parent wins over the current annotation1762 * # this parent wins over the current annotation
1763 * for idx from 0 <= idx < match_len:1763 * for idx from 0 <= idx < match_len:
1764 * ann_idx = lines_idx + idx # <<<<<<<<<<<<<<1764 * ann_idx = lines_idx + idx # <<<<<<<<<<<<<<
@@ -1767,7 +1767,7 @@
1767 */1767 */
1768 __pyx_v_ann_idx = (__pyx_v_lines_idx + __pyx_v_idx);1768 __pyx_v_ann_idx = (__pyx_v_lines_idx + __pyx_v_idx);
17691769
1770 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2101770 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":210
1771 * for idx from 0 <= idx < match_len:1771 * for idx from 0 <= idx < match_len:
1772 * ann_idx = lines_idx + idx1772 * ann_idx = lines_idx + idx
1773 * ann_temp = PyList_GET_ITEM(annotations, ann_idx) # <<<<<<<<<<<<<<1773 * ann_temp = PyList_GET_ITEM(annotations, ann_idx) # <<<<<<<<<<<<<<
@@ -1776,7 +1776,7 @@
1776 */1776 */
1777 __pyx_v_ann_temp = PyList_GET_ITEM(__pyx_v_annotations, __pyx_v_ann_idx);1777 __pyx_v_ann_temp = PyList_GET_ITEM(__pyx_v_annotations, __pyx_v_ann_idx);
17781778
1779 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2111779 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":211
1780 * ann_idx = lines_idx + idx1780 * ann_idx = lines_idx + idx
1781 * ann_temp = PyList_GET_ITEM(annotations, ann_idx)1781 * ann_temp = PyList_GET_ITEM(annotations, ann_idx)
1782 * par_temp = PyList_GET_ITEM(parent_annotations, parent_idx + idx) # <<<<<<<<<<<<<<1782 * par_temp = PyList_GET_ITEM(parent_annotations, parent_idx + idx) # <<<<<<<<<<<<<<
@@ -1785,7 +1785,7 @@
1785 */1785 */
1786 __pyx_v_par_temp = PyList_GET_ITEM(__pyx_v_parent_annotations, (__pyx_v_parent_idx + __pyx_v_idx));1786 __pyx_v_par_temp = PyList_GET_ITEM(__pyx_v_parent_annotations, (__pyx_v_parent_idx + __pyx_v_idx));
17871787
1788 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2121788 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":212
1789 * ann_temp = PyList_GET_ITEM(annotations, ann_idx)1789 * ann_temp = PyList_GET_ITEM(annotations, ann_idx)
1790 * par_temp = PyList_GET_ITEM(parent_annotations, parent_idx + idx)1790 * par_temp = PyList_GET_ITEM(parent_annotations, parent_idx + idx)
1791 * if (ann_temp == par_temp): # <<<<<<<<<<<<<<1791 * if (ann_temp == par_temp): # <<<<<<<<<<<<<<
@@ -1795,7 +1795,7 @@
1795 __pyx_t_12 = (__pyx_v_ann_temp == __pyx_v_par_temp);1795 __pyx_t_12 = (__pyx_v_ann_temp == __pyx_v_par_temp);
1796 if (__pyx_t_12) {1796 if (__pyx_t_12) {
17971797
1798 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2201798 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":220
1799 * # PyObject_RichCompareBool using pointer comparison drops1799 * # PyObject_RichCompareBool using pointer comparison drops
1800 * # timing from 215ms => 125ms1800 * # timing from 215ms => 125ms
1801 * continue # <<<<<<<<<<<<<<1801 * continue # <<<<<<<<<<<<<<
@@ -1807,7 +1807,7 @@
1807 }1807 }
1808 __pyx_L7:;1808 __pyx_L7:;
18091809
1810 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2211810 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":221
1811 * # timing from 215ms => 125ms1811 * # timing from 215ms => 125ms
1812 * continue1812 * continue
1813 * par_ann = <object>par_temp # <<<<<<<<<<<<<<1813 * par_ann = <object>par_temp # <<<<<<<<<<<<<<
@@ -1818,7 +1818,7 @@
1818 __Pyx_DECREF(__pyx_v_par_ann);1818 __Pyx_DECREF(__pyx_v_par_ann);
1819 __pyx_v_par_ann = ((PyObject *)__pyx_v_par_temp);1819 __pyx_v_par_ann = ((PyObject *)__pyx_v_par_temp);
18201820
1821 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2221821 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":222
1822 * continue1822 * continue
1823 * par_ann = <object>par_temp1823 * par_ann = <object>par_temp
1824 * ann = <object>ann_temp # <<<<<<<<<<<<<<1824 * ann = <object>ann_temp # <<<<<<<<<<<<<<
@@ -1829,7 +1829,7 @@
1829 __Pyx_DECREF(__pyx_v_ann);1829 __Pyx_DECREF(__pyx_v_ann);
1830 __pyx_v_ann = ((PyObject *)__pyx_v_ann_temp);1830 __pyx_v_ann = ((PyObject *)__pyx_v_ann_temp);
18311831
1832 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2231832 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":223
1833 * par_ann = <object>par_temp1833 * par_ann = <object>par_temp
1834 * ann = <object>ann_temp1834 * ann = <object>ann_temp
1835 * if (ann is this_annotation): # <<<<<<<<<<<<<<1835 * if (ann is this_annotation): # <<<<<<<<<<<<<<
@@ -1839,7 +1839,7 @@
1839 __pyx_t_12 = (__pyx_v_ann == __pyx_v_this_annotation);1839 __pyx_t_12 = (__pyx_v_ann == __pyx_v_this_annotation);
1840 if (__pyx_t_12) {1840 if (__pyx_t_12) {
18411841
1842 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2261842 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":226
1843 * # Originally claimed 'this', but it was really in this1843 * # Originally claimed 'this', but it was really in this
1844 * # parent1844 * # parent
1845 * Py_INCREF(par_ann) # <<<<<<<<<<<<<<1845 * Py_INCREF(par_ann) # <<<<<<<<<<<<<<
@@ -1848,7 +1848,7 @@
1848 */1848 */
1849 Py_INCREF(__pyx_v_par_ann);1849 Py_INCREF(__pyx_v_par_ann);
18501850
1851 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2271851 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":227
1852 * # parent1852 * # parent
1853 * Py_INCREF(par_ann)1853 * Py_INCREF(par_ann)
1854 * PyList_SetItem(annotations, ann_idx, par_ann) # <<<<<<<<<<<<<<1854 * PyList_SetItem(annotations, ann_idx, par_ann) # <<<<<<<<<<<<<<
@@ -1857,7 +1857,7 @@
1857 */1857 */
1858 __pyx_t_1 = PyList_SetItem(__pyx_v_annotations, __pyx_v_ann_idx, __pyx_v_par_ann); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L1_error;}1858 __pyx_t_1 = PyList_SetItem(__pyx_v_annotations, __pyx_v_ann_idx, __pyx_v_par_ann); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18591859
1860 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2281860 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":228
1861 * Py_INCREF(par_ann)1861 * Py_INCREF(par_ann)
1862 * PyList_SetItem(annotations, ann_idx, par_ann)1862 * PyList_SetItem(annotations, ann_idx, par_ann)
1863 * continue # <<<<<<<<<<<<<<1863 * continue # <<<<<<<<<<<<<<
@@ -1869,7 +1869,7 @@
1869 }1869 }
1870 __pyx_L8:;1870 __pyx_L8:;
18711871
1872 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2311872 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":231
1873 * # Resolve the fact that both sides have a different value for1873 * # Resolve the fact that both sides have a different value for
1874 * # last modified1874 * # last modified
1875 * if (ann is last_ann and par_ann is last_parent): # <<<<<<<<<<<<<<1875 * if (ann is last_ann and par_ann is last_parent): # <<<<<<<<<<<<<<
@@ -1885,7 +1885,7 @@
1885 }1885 }
1886 if (__pyx_t_14) {1886 if (__pyx_t_14) {
18871887
1888 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2321888 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":232
1889 * # last modified1889 * # last modified
1890 * if (ann is last_ann and par_ann is last_parent):1890 * if (ann is last_ann and par_ann is last_parent):
1891 * Py_INCREF(last_res) # <<<<<<<<<<<<<<1891 * Py_INCREF(last_res) # <<<<<<<<<<<<<<
@@ -1894,7 +1894,7 @@
1894 */1894 */
1895 Py_INCREF(__pyx_v_last_res);1895 Py_INCREF(__pyx_v_last_res);
18961896
1897 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2331897 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":233
1898 * if (ann is last_ann and par_ann is last_parent):1898 * if (ann is last_ann and par_ann is last_parent):
1899 * Py_INCREF(last_res)1899 * Py_INCREF(last_res)
1900 * PyList_SetItem(annotations, ann_idx, last_res) # <<<<<<<<<<<<<<1900 * PyList_SetItem(annotations, ann_idx, last_res) # <<<<<<<<<<<<<<
@@ -1906,7 +1906,7 @@
1906 }1906 }
1907 /*else*/ {1907 /*else*/ {
19081908
1909 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2351909 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":235
1910 * PyList_SetItem(annotations, ann_idx, last_res)1910 * PyList_SetItem(annotations, ann_idx, last_res)
1911 * else:1911 * else:
1912 * new_ann = _combine_annotations(ann, par_ann, ann_cache) # <<<<<<<<<<<<<<1912 * new_ann = _combine_annotations(ann, par_ann, ann_cache) # <<<<<<<<<<<<<<
@@ -1919,7 +1919,7 @@
1919 __pyx_v_new_ann = __pyx_t_4;1919 __pyx_v_new_ann = __pyx_t_4;
1920 __pyx_t_4 = 0;1920 __pyx_t_4 = 0;
19211921
1922 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2361922 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":236
1923 * else:1923 * else:
1924 * new_ann = _combine_annotations(ann, par_ann, ann_cache)1924 * new_ann = _combine_annotations(ann, par_ann, ann_cache)
1925 * Py_INCREF(new_ann) # <<<<<<<<<<<<<<1925 * Py_INCREF(new_ann) # <<<<<<<<<<<<<<
@@ -1928,7 +1928,7 @@
1928 */1928 */
1929 Py_INCREF(__pyx_v_new_ann);1929 Py_INCREF(__pyx_v_new_ann);
19301930
1931 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2371931 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":237
1932 * new_ann = _combine_annotations(ann, par_ann, ann_cache)1932 * new_ann = _combine_annotations(ann, par_ann, ann_cache)
1933 * Py_INCREF(new_ann)1933 * Py_INCREF(new_ann)
1934 * PyList_SetItem(annotations, ann_idx, new_ann) # <<<<<<<<<<<<<<1934 * PyList_SetItem(annotations, ann_idx, new_ann) # <<<<<<<<<<<<<<
@@ -1937,7 +1937,7 @@
1937 */1937 */
1938 __pyx_t_1 = PyList_SetItem(__pyx_v_annotations, __pyx_v_ann_idx, __pyx_v_new_ann); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;}1938 __pyx_t_1 = PyList_SetItem(__pyx_v_annotations, __pyx_v_ann_idx, __pyx_v_new_ann); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19391939
1940 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2381940 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":238
1941 * Py_INCREF(new_ann)1941 * Py_INCREF(new_ann)
1942 * PyList_SetItem(annotations, ann_idx, new_ann)1942 * PyList_SetItem(annotations, ann_idx, new_ann)
1943 * last_ann = ann # <<<<<<<<<<<<<<1943 * last_ann = ann # <<<<<<<<<<<<<<
@@ -1948,7 +1948,7 @@
1948 __Pyx_DECREF(__pyx_v_last_ann);1948 __Pyx_DECREF(__pyx_v_last_ann);
1949 __pyx_v_last_ann = __pyx_v_ann;1949 __pyx_v_last_ann = __pyx_v_ann;
19501950
1951 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2391951 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":239
1952 * PyList_SetItem(annotations, ann_idx, new_ann)1952 * PyList_SetItem(annotations, ann_idx, new_ann)
1953 * last_ann = ann1953 * last_ann = ann
1954 * last_parent = par_ann # <<<<<<<<<<<<<<1954 * last_parent = par_ann # <<<<<<<<<<<<<<
@@ -1959,7 +1959,7 @@
1959 __Pyx_DECREF(__pyx_v_last_parent);1959 __Pyx_DECREF(__pyx_v_last_parent);
1960 __pyx_v_last_parent = __pyx_v_par_ann;1960 __pyx_v_last_parent = __pyx_v_par_ann;
19611961
1962 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2401962 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":240
1963 * last_ann = ann1963 * last_ann = ann
1964 * last_parent = par_ann1964 * last_parent = par_ann
1965 * last_res = new_ann # <<<<<<<<<<<<<<1965 * last_res = new_ann # <<<<<<<<<<<<<<
@@ -1976,7 +1976,7 @@
1976 }1976 }
1977 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;1977 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19781978
1979 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2411979 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":241
1980 * last_parent = par_ann1980 * last_parent = par_ann
1981 * last_res = new_ann1981 * last_res = new_ann
1982 * return 0 # <<<<<<<<<<<<<<1982 * return 0 # <<<<<<<<<<<<<<
@@ -2008,7 +2008,7 @@
2008 return __pyx_r;2008 return __pyx_r;
2009}2009}
20102010
2011/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2472011/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":247
2012 * """Class that drives performing annotations."""2012 * """Class that drives performing annotations."""
2013 * 2013 *
2014 * def _update_from_first_parent(self, key, annotations, lines, parent_key): # <<<<<<<<<<<<<<2014 * def _update_from_first_parent(self, key, annotations, lines, parent_key): # <<<<<<<<<<<<<<
@@ -2106,7 +2106,7 @@
2106 __pyx_v_parent_annotations = Py_None; __Pyx_INCREF(Py_None);2106 __pyx_v_parent_annotations = Py_None; __Pyx_INCREF(Py_None);
2107 __pyx_v_matching_blocks = Py_None; __Pyx_INCREF(Py_None);2107 __pyx_v_matching_blocks = Py_None; __Pyx_INCREF(Py_None);
21082108
2109 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2502109 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":250
2110 * """Reannotate this text relative to its first parent."""2110 * """Reannotate this text relative to its first parent."""
2111 * (parent_annotations,2111 * (parent_annotations,
2112 * matching_blocks) = self._get_parent_annotations_and_matches( # <<<<<<<<<<<<<<2112 * matching_blocks) = self._get_parent_annotations_and_matches( # <<<<<<<<<<<<<<
@@ -2116,7 +2116,7 @@
2116 __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s_6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}2116 __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s_6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2117 __Pyx_GOTREF(__pyx_t_1);2117 __Pyx_GOTREF(__pyx_t_1);
21182118
2119 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2512119 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":251
2120 * (parent_annotations,2120 * (parent_annotations,
2121 * matching_blocks) = self._get_parent_annotations_and_matches(2121 * matching_blocks) = self._get_parent_annotations_and_matches(
2122 * key, lines, parent_key) # <<<<<<<<<<<<<<2122 * key, lines, parent_key) # <<<<<<<<<<<<<<
@@ -2143,7 +2143,7 @@
2143 __pyx_t_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_t_2);2143 __pyx_t_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_t_2);
2144 __pyx_t_1 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_t_1);2144 __pyx_t_1 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_t_1);
21452145
2146 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2492146 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":249
2147 * def _update_from_first_parent(self, key, annotations, lines, parent_key):2147 * def _update_from_first_parent(self, key, annotations, lines, parent_key):
2148 * """Reannotate this text relative to its first parent."""2148 * """Reannotate this text relative to its first parent."""
2149 * (parent_annotations, # <<<<<<<<<<<<<<2149 * (parent_annotations, # <<<<<<<<<<<<<<
@@ -2175,7 +2175,7 @@
2175 __pyx_t_1 = 0;2175 __pyx_t_1 = 0;
2176 }2176 }
21772177
2178 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2542178 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":254
2179 * 2179 *
2180 * _apply_parent_annotations(annotations, parent_annotations,2180 * _apply_parent_annotations(annotations, parent_annotations,
2181 * matching_blocks) # <<<<<<<<<<<<<<2181 * matching_blocks) # <<<<<<<<<<<<<<
@@ -2201,7 +2201,7 @@
2201 return __pyx_r;2201 return __pyx_r;
2202}2202}
22032203
2204/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2562204/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":256
2205 * matching_blocks)2205 * matching_blocks)
2206 * 2206 *
2207 * def _update_from_other_parents(self, key, annotations, lines, # <<<<<<<<<<<<<<2207 * def _update_from_other_parents(self, key, annotations, lines, # <<<<<<<<<<<<<<
@@ -2309,7 +2309,7 @@
2309 __pyx_v_parent_annotations = Py_None; __Pyx_INCREF(Py_None);2309 __pyx_v_parent_annotations = Py_None; __Pyx_INCREF(Py_None);
2310 __pyx_v_matching_blocks = Py_None; __Pyx_INCREF(Py_None);2310 __pyx_v_matching_blocks = Py_None; __Pyx_INCREF(Py_None);
23112311
2312 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2602312 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":260
2313 * """Reannotate this text relative to a second (or more) parent."""2313 * """Reannotate this text relative to a second (or more) parent."""
2314 * (parent_annotations,2314 * (parent_annotations,
2315 * matching_blocks) = self._get_parent_annotations_and_matches( # <<<<<<<<<<<<<<2315 * matching_blocks) = self._get_parent_annotations_and_matches( # <<<<<<<<<<<<<<
@@ -2319,7 +2319,7 @@
2319 __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s_6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}2319 __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s_6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2320 __Pyx_GOTREF(__pyx_t_1);2320 __Pyx_GOTREF(__pyx_t_1);
23212321
2322 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2612322 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":261
2323 * (parent_annotations,2323 * (parent_annotations,
2324 * matching_blocks) = self._get_parent_annotations_and_matches(2324 * matching_blocks) = self._get_parent_annotations_and_matches(
2325 * key, lines, parent_key) # <<<<<<<<<<<<<<2325 * key, lines, parent_key) # <<<<<<<<<<<<<<
@@ -2346,7 +2346,7 @@
2346 __pyx_t_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_t_2);2346 __pyx_t_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_t_2);
2347 __pyx_t_1 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_t_1);2347 __pyx_t_1 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_t_1);
23482348
2349 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2592349 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":259
2350 * this_annotation, parent_key):2350 * this_annotation, parent_key):
2351 * """Reannotate this text relative to a second (or more) parent."""2351 * """Reannotate this text relative to a second (or more) parent."""
2352 * (parent_annotations, # <<<<<<<<<<<<<<2352 * (parent_annotations, # <<<<<<<<<<<<<<
@@ -2378,7 +2378,7 @@
2378 __pyx_t_1 = 0;2378 __pyx_t_1 = 0;
2379 }2379 }
23802380
2381 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2632381 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":263
2382 * key, lines, parent_key)2382 * key, lines, parent_key)
2383 * _merge_annotations(this_annotation, annotations, parent_annotations,2383 * _merge_annotations(this_annotation, annotations, parent_annotations,
2384 * matching_blocks, self._ann_tuple_cache) # <<<<<<<<<<<<<<2384 * matching_blocks, self._ann_tuple_cache) # <<<<<<<<<<<<<<
@@ -2407,7 +2407,7 @@
2407 return __pyx_r;2407 return __pyx_r;
2408}2408}
24092409
2410/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2652410/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":265
2411 * matching_blocks, self._ann_tuple_cache)2411 * matching_blocks, self._ann_tuple_cache)
2412 * 2412 *
2413 * def annotate_flat(self, key): # <<<<<<<<<<<<<<2413 * def annotate_flat(self, key): # <<<<<<<<<<<<<<
@@ -2496,7 +2496,7 @@
2496 __pyx_v_head = Py_None; __Pyx_INCREF(Py_None);2496 __pyx_v_head = Py_None; __Pyx_INCREF(Py_None);
2497 __pyx_v_the_heads = Py_None; __Pyx_INCREF(Py_None);2497 __pyx_v_the_heads = Py_None; __Pyx_INCREF(Py_None);
24982498
2499 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2722499 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":272
2500 * cdef Py_ssize_t pos, num_lines2500 * cdef Py_ssize_t pos, num_lines
2501 * 2501 *
2502 * from bzrlib import annotate # <<<<<<<<<<<<<<2502 * from bzrlib import annotate # <<<<<<<<<<<<<<
@@ -2519,7 +2519,7 @@
2519 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;2519 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2520 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;2520 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
25212521
2522 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2742522 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":274
2523 * from bzrlib import annotate2523 * from bzrlib import annotate
2524 * 2524 *
2525 * custom_tiebreaker = annotate._break_annotation_tie # <<<<<<<<<<<<<<2525 * custom_tiebreaker = annotate._break_annotation_tie # <<<<<<<<<<<<<<
@@ -2532,7 +2532,7 @@
2532 __pyx_v_custom_tiebreaker = __pyx_t_2;2532 __pyx_v_custom_tiebreaker = __pyx_t_2;
2533 __pyx_t_2 = 0;2533 __pyx_t_2 = 0;
25342534
2535 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2752535 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":275
2536 * 2536 *
2537 * custom_tiebreaker = annotate._break_annotation_tie2537 * custom_tiebreaker = annotate._break_annotation_tie
2538 * annotations, lines = self.annotate(key) # <<<<<<<<<<<<<<2538 * annotations, lines = self.annotate(key) # <<<<<<<<<<<<<<
@@ -2579,7 +2579,7 @@
2579 __pyx_t_2 = 0;2579 __pyx_t_2 = 0;
2580 }2580 }
25812581
2582 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2762582 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":276
2583 * custom_tiebreaker = annotate._break_annotation_tie2583 * custom_tiebreaker = annotate._break_annotation_tie
2584 * annotations, lines = self.annotate(key)2584 * annotations, lines = self.annotate(key)
2585 * num_lines = len(lines) # <<<<<<<<<<<<<<2585 * num_lines = len(lines) # <<<<<<<<<<<<<<
@@ -2589,7 +2589,7 @@
2589 __pyx_t_5 = PyObject_Length(__pyx_v_lines); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}2589 __pyx_t_5 = PyObject_Length(__pyx_v_lines); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2590 __pyx_v_num_lines = __pyx_t_5;2590 __pyx_v_num_lines = __pyx_t_5;
25912591
2592 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2772592 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":277
2593 * annotations, lines = self.annotate(key)2593 * annotations, lines = self.annotate(key)
2594 * num_lines = len(lines)2594 * num_lines = len(lines)
2595 * out = [] # <<<<<<<<<<<<<<2595 * out = [] # <<<<<<<<<<<<<<
@@ -2602,7 +2602,7 @@
2602 __pyx_v_out = __pyx_t_3;2602 __pyx_v_out = __pyx_t_3;
2603 __pyx_t_3 = 0;2603 __pyx_t_3 = 0;
26042604
2605 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2782605 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":278
2606 * num_lines = len(lines)2606 * num_lines = len(lines)
2607 * out = []2607 * out = []
2608 * heads = self._get_heads_provider().heads # <<<<<<<<<<<<<<2608 * heads = self._get_heads_provider().heads # <<<<<<<<<<<<<<
@@ -2621,7 +2621,7 @@
2621 __pyx_v_heads = __pyx_t_3;2621 __pyx_v_heads = __pyx_t_3;
2622 __pyx_t_3 = 0;2622 __pyx_t_3 = 0;
26232623
2624 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2792624 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":279
2625 * out = []2625 * out = []
2626 * heads = self._get_heads_provider().heads2626 * heads = self._get_heads_provider().heads
2627 * for pos from 0 <= pos < num_lines: # <<<<<<<<<<<<<<2627 * for pos from 0 <= pos < num_lines: # <<<<<<<<<<<<<<
@@ -2631,7 +2631,7 @@
2631 __pyx_t_5 = __pyx_v_num_lines;2631 __pyx_t_5 = __pyx_v_num_lines;
2632 for (__pyx_v_pos = 0; __pyx_v_pos < __pyx_t_5; __pyx_v_pos++) {2632 for (__pyx_v_pos = 0; __pyx_v_pos < __pyx_t_5; __pyx_v_pos++) {
26332633
2634 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2802634 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":280
2635 * heads = self._get_heads_provider().heads2635 * heads = self._get_heads_provider().heads
2636 * for pos from 0 <= pos < num_lines:2636 * for pos from 0 <= pos < num_lines:
2637 * annotation = annotations[pos] # <<<<<<<<<<<<<<2637 * annotation = annotations[pos] # <<<<<<<<<<<<<<
@@ -2644,7 +2644,7 @@
2644 __pyx_v_annotation = __pyx_t_3;2644 __pyx_v_annotation = __pyx_t_3;
2645 __pyx_t_3 = 0;2645 __pyx_t_3 = 0;
26462646
2647 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2812647 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":281
2648 * for pos from 0 <= pos < num_lines:2648 * for pos from 0 <= pos < num_lines:
2649 * annotation = annotations[pos]2649 * annotation = annotations[pos]
2650 * line = lines[pos] # <<<<<<<<<<<<<<2650 * line = lines[pos] # <<<<<<<<<<<<<<
@@ -2657,7 +2657,7 @@
2657 __pyx_v_line = __pyx_t_3;2657 __pyx_v_line = __pyx_t_3;
2658 __pyx_t_3 = 0;2658 __pyx_t_3 = 0;
26592659
2660 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2822660 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":282
2661 * annotation = annotations[pos]2661 * annotation = annotations[pos]
2662 * line = lines[pos]2662 * line = lines[pos]
2663 * if len(annotation) == 1: # <<<<<<<<<<<<<<2663 * if len(annotation) == 1: # <<<<<<<<<<<<<<
@@ -2668,7 +2668,7 @@
2668 __pyx_t_7 = (__pyx_t_6 == 1);2668 __pyx_t_7 = (__pyx_t_6 == 1);
2669 if (__pyx_t_7) {2669 if (__pyx_t_7) {
26702670
2671 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2832671 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":283
2672 * line = lines[pos]2672 * line = lines[pos]
2673 * if len(annotation) == 1:2673 * if len(annotation) == 1:
2674 * head = annotation[0] # <<<<<<<<<<<<<<2674 * head = annotation[0] # <<<<<<<<<<<<<<
@@ -2684,7 +2684,7 @@
2684 }2684 }
2685 /*else*/ {2685 /*else*/ {
26862686
2687 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2852687 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":285
2688 * head = annotation[0]2688 * head = annotation[0]
2689 * else:2689 * else:
2690 * the_heads = heads(annotation) # <<<<<<<<<<<<<<2690 * the_heads = heads(annotation) # <<<<<<<<<<<<<<
@@ -2703,7 +2703,7 @@
2703 __pyx_v_the_heads = __pyx_t_2;2703 __pyx_v_the_heads = __pyx_t_2;
2704 __pyx_t_2 = 0;2704 __pyx_t_2 = 0;
27052705
2706 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2862706 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":286
2707 * else:2707 * else:
2708 * the_heads = heads(annotation)2708 * the_heads = heads(annotation)
2709 * if len(the_heads) == 1: # <<<<<<<<<<<<<<2709 * if len(the_heads) == 1: # <<<<<<<<<<<<<<
@@ -2714,7 +2714,7 @@
2714 __pyx_t_7 = (__pyx_t_6 == 1);2714 __pyx_t_7 = (__pyx_t_6 == 1);
2715 if (__pyx_t_7) {2715 if (__pyx_t_7) {
27162716
2717 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2872717 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":287
2718 * the_heads = heads(annotation)2718 * the_heads = heads(annotation)
2719 * if len(the_heads) == 1:2719 * if len(the_heads) == 1:
2720 * for head in the_heads: break # get the item out of the set # <<<<<<<<<<<<<<2720 * for head in the_heads: break # get the item out of the set # <<<<<<<<<<<<<<
@@ -2753,7 +2753,7 @@
2753 }2753 }
2754 /*else*/ {2754 /*else*/ {
27552755
2756 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2912756 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":291
2757 * # We need to resolve the ambiguity, for now just pick the2757 * # We need to resolve the ambiguity, for now just pick the
2758 * # sorted smallest2758 * # sorted smallest
2759 * head = self._resolve_annotation_tie(the_heads, line, # <<<<<<<<<<<<<<2759 * head = self._resolve_annotation_tie(the_heads, line, # <<<<<<<<<<<<<<
@@ -2763,7 +2763,7 @@
2763 __pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s_8); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;}2763 __pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s_8); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2764 __Pyx_GOTREF(__pyx_t_2);2764 __Pyx_GOTREF(__pyx_t_2);
27652765
2766 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2922766 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":292
2767 * # sorted smallest2767 * # sorted smallest
2768 * head = self._resolve_annotation_tie(the_heads, line,2768 * head = self._resolve_annotation_tie(the_heads, line,
2769 * custom_tiebreaker) # <<<<<<<<<<<<<<2769 * custom_tiebreaker) # <<<<<<<<<<<<<<
@@ -2793,7 +2793,7 @@
2793 }2793 }
2794 __pyx_L8:;2794 __pyx_L8:;
27952795
2796 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2932796 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":293
2797 * head = self._resolve_annotation_tie(the_heads, line,2797 * head = self._resolve_annotation_tie(the_heads, line,
2798 * custom_tiebreaker)2798 * custom_tiebreaker)
2799 * PyList_Append(out, (head, line)) # <<<<<<<<<<<<<<2799 * PyList_Append(out, (head, line)) # <<<<<<<<<<<<<<
@@ -2811,7 +2811,7 @@
2811 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;2811 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2812 }2812 }
28132813
2814 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2942814 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":294
2815 * custom_tiebreaker)2815 * custom_tiebreaker)
2816 * PyList_Append(out, (head, line))2816 * PyList_Append(out, (head, line))
2817 * return out # <<<<<<<<<<<<<<2817 * return out # <<<<<<<<<<<<<<
@@ -2977,7 +2977,7 @@
2977 /*--- Function import code ---*/2977 /*--- Function import code ---*/
2978 /*--- Execution code ---*/2978 /*--- Execution code ---*/
29792979
2980 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":582980 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":58
2981 * 2981 *
2982 * 2982 *
2983 * from bzrlib import _annotator_py # <<<<<<<<<<<<<<2983 * from bzrlib import _annotator_py # <<<<<<<<<<<<<<
@@ -2998,7 +2998,7 @@
2998 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;2998 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2999 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;2999 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
30003000
3001 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2443001 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":244
3002 * 3002 *
3003 * 3003 *
3004 * class Annotator(_annotator_py.Annotator): # <<<<<<<<<<<<<<3004 * class Annotator(_annotator_py.Annotator): # <<<<<<<<<<<<<<
@@ -3022,7 +3022,7 @@
3022 __Pyx_GOTREF(__pyx_t_3);3022 __Pyx_GOTREF(__pyx_t_3);
3023 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;3023 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
30243024
3025 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2473025 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":247
3026 * """Class that drives performing annotations."""3026 * """Class that drives performing annotations."""
3027 * 3027 *
3028 * def _update_from_first_parent(self, key, annotations, lines, parent_key): # <<<<<<<<<<<<<<3028 * def _update_from_first_parent(self, key, annotations, lines, parent_key): # <<<<<<<<<<<<<<
@@ -3037,7 +3037,7 @@
3037 if (PyObject_SetAttr(__pyx_t_3, __pyx_n_s_11, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3037 if (PyObject_SetAttr(__pyx_t_3, __pyx_n_s_11, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3038 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;3038 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
30393039
3040 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2563040 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":256
3041 * matching_blocks)3041 * matching_blocks)
3042 * 3042 *
3043 * def _update_from_other_parents(self, key, annotations, lines, # <<<<<<<<<<<<<<3043 * def _update_from_other_parents(self, key, annotations, lines, # <<<<<<<<<<<<<<
@@ -3052,7 +3052,7 @@
3052 if (PyObject_SetAttr(__pyx_t_3, __pyx_n_s_12, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 256; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3052 if (PyObject_SetAttr(__pyx_t_3, __pyx_n_s_12, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 256; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3053 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;3053 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
30543054
3055 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":2653055 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":265
3056 * matching_blocks, self._ann_tuple_cache)3056 * matching_blocks, self._ann_tuple_cache)
3057 * 3057 *
3058 * def annotate_flat(self, key): # <<<<<<<<<<<<<<3058 * def annotate_flat(self, key): # <<<<<<<<<<<<<<
@@ -3070,7 +3070,7 @@
3070 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;3070 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3071 __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;3071 __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
30723072
3073 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":13073 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":1
3074 * # Copyright (C) 2009, 2010 Canonical Ltd # <<<<<<<<<<<<<<3074 * # Copyright (C) 2009, 2010 Canonical Ltd # <<<<<<<<<<<<<<
3075 * #3075 * #
3076 * # This program is free software; you can redistribute it and/or modify3076 * # This program is free software; you can redistribute it and/or modify
30773077
=== modified file 'bzrlib/_bencode_pyx.c'
--- bzrlib/_bencode_pyx.c 2011-08-31 15:04:43 +0000
+++ bzrlib/_bencode_pyx.c 2011-11-03 14:37:19 +0000
@@ -1,4 +1,4 @@
1/* Generated by Cython 0.13 on Thu Aug 11 09:45:14 2011 */1/* Generated by Cython 0.13 on Mon Sep 19 20:18:38 2011 */
22
3#define PY_SSIZE_T_CLEAN3#define PY_SSIZE_T_CLEAN
4#include "Python.h"4#include "Python.h"
@@ -281,7 +281,7 @@
281281
282/* Type declarations */282/* Type declarations */
283283
284/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":240284/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":240
285 * 285 *
286 * 286 *
287 * cdef enum: # <<<<<<<<<<<<<<287 * cdef enum: # <<<<<<<<<<<<<<
@@ -294,7 +294,7 @@
294 __pyx_e_6bzrlib_12_bencode_pyx_INT_BUF_SIZE = 32294 __pyx_e_6bzrlib_12_bencode_pyx_INT_BUF_SIZE = 32
295};295};
296296
297/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":54297/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":54
298 * int snprintf(char* buffer, size_t nsize, char* fmt, ...)298 * int snprintf(char* buffer, size_t nsize, char* fmt, ...)
299 * 299 *
300 * cdef class Decoder # <<<<<<<<<<<<<<300 * cdef class Decoder # <<<<<<<<<<<<<<
@@ -311,7 +311,7 @@
311 PyObject *text;311 PyObject *text;
312};312};
313313
314/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":55314/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":55
315 * 315 *
316 * cdef class Decoder316 * cdef class Decoder
317 * cdef class Encoder # <<<<<<<<<<<<<<317 * cdef class Encoder # <<<<<<<<<<<<<<
@@ -329,7 +329,7 @@
329};329};
330330
331331
332/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":245332/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":245
333 * 333 *
334 * 334 *
335 * cdef class Encoder: # <<<<<<<<<<<<<<335 * cdef class Encoder: # <<<<<<<<<<<<<<
@@ -349,7 +349,7 @@
349static struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *__pyx_vtabptr_6bzrlib_12_bencode_pyx_Encoder;349static struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *__pyx_vtabptr_6bzrlib_12_bencode_pyx_Encoder;
350350
351351
352/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":69352/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":69
353 * 353 *
354 * 354 *
355 * cdef class Decoder: # <<<<<<<<<<<<<<355 * cdef class Decoder: # <<<<<<<<<<<<<<
@@ -636,7 +636,7 @@
636static PyObject *__pyx_int_0;636static PyObject *__pyx_int_0;
637static int __pyx_k_15;637static int __pyx_k_15;
638638
639/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":72639/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":72
640 * """Bencode decoder"""640 * """Bencode decoder"""
641 * 641 *
642 * cdef readonly char *tail # <<<<<<<<<<<<<<642 * cdef readonly char *tail # <<<<<<<<<<<<<<
@@ -668,7 +668,7 @@
668 return __pyx_r;668 return __pyx_r;
669}669}
670670
671/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":73671/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":73
672 * 672 *
673 * cdef readonly char *tail673 * cdef readonly char *tail
674 * cdef readonly int size # <<<<<<<<<<<<<<674 * cdef readonly int size # <<<<<<<<<<<<<<
@@ -700,7 +700,7 @@
700 return __pyx_r;700 return __pyx_r;
701}701}
702702
703/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":74703/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":74
704 * cdef readonly char *tail704 * cdef readonly char *tail
705 * cdef readonly int size705 * cdef readonly int size
706 * cdef readonly int _yield_tuples # <<<<<<<<<<<<<<706 * cdef readonly int _yield_tuples # <<<<<<<<<<<<<<
@@ -732,7 +732,7 @@
732 return __pyx_r;732 return __pyx_r;
733}733}
734734
735/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":77735/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":77
736 * cdef object text736 * cdef object text
737 * 737 *
738 * def __init__(self, s, yield_tuples=0): # <<<<<<<<<<<<<<738 * def __init__(self, s, yield_tuples=0): # <<<<<<<<<<<<<<
@@ -799,7 +799,7 @@
799 return -1;799 return -1;
800 __pyx_L4_argument_unpacking_done:;800 __pyx_L4_argument_unpacking_done:;
801801
802 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":81802 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":81
803 * @param s: Python string.803 * @param s: Python string.
804 * """804 * """
805 * if not PyString_CheckExact(s): # <<<<<<<<<<<<<<805 * if not PyString_CheckExact(s): # <<<<<<<<<<<<<<
@@ -809,7 +809,7 @@
809 __pyx_t_1 = (!PyString_CheckExact(__pyx_v_s));809 __pyx_t_1 = (!PyString_CheckExact(__pyx_v_s));
810 if (__pyx_t_1) {810 if (__pyx_t_1) {
811811
812 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":82812 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":82
813 * """813 * """
814 * if not PyString_CheckExact(s):814 * if not PyString_CheckExact(s):
815 * raise TypeError("String required") # <<<<<<<<<<<<<<815 * raise TypeError("String required") # <<<<<<<<<<<<<<
@@ -831,7 +831,7 @@
831 }831 }
832 __pyx_L6:;832 __pyx_L6:;
833833
834 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":84834 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":84
835 * raise TypeError("String required")835 * raise TypeError("String required")
836 * 836 *
837 * self.text = s # <<<<<<<<<<<<<<837 * self.text = s # <<<<<<<<<<<<<<
@@ -844,7 +844,7 @@
844 __Pyx_DECREF(((struct __pyx_obj_6bzrlib_12_bencode_pyx_Decoder *)__pyx_v_self)->text);844 __Pyx_DECREF(((struct __pyx_obj_6bzrlib_12_bencode_pyx_Decoder *)__pyx_v_self)->text);
845 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Decoder *)__pyx_v_self)->text = __pyx_v_s;845 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Decoder *)__pyx_v_self)->text = __pyx_v_s;
846846
847 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":85847 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":85
848 * 848 *
849 * self.text = s849 * self.text = s
850 * self.tail = PyString_AS_STRING(s) # <<<<<<<<<<<<<<850 * self.tail = PyString_AS_STRING(s) # <<<<<<<<<<<<<<
@@ -854,7 +854,7 @@
854 __pyx_t_4 = PyString_AS_STRING(__pyx_v_s); if (unlikely(__pyx_t_4 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;}854 __pyx_t_4 = PyString_AS_STRING(__pyx_v_s); if (unlikely(__pyx_t_4 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
855 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Decoder *)__pyx_v_self)->tail = __pyx_t_4;855 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Decoder *)__pyx_v_self)->tail = __pyx_t_4;
856856
857 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":86857 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":86
858 * self.text = s858 * self.text = s
859 * self.tail = PyString_AS_STRING(s)859 * self.tail = PyString_AS_STRING(s)
860 * self.size = PyString_GET_SIZE(s) # <<<<<<<<<<<<<<860 * self.size = PyString_GET_SIZE(s) # <<<<<<<<<<<<<<
@@ -864,7 +864,7 @@
864 __pyx_t_5 = PyString_GET_SIZE(__pyx_v_s); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}864 __pyx_t_5 = PyString_GET_SIZE(__pyx_v_s); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
865 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Decoder *)__pyx_v_self)->size = __pyx_t_5;865 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Decoder *)__pyx_v_self)->size = __pyx_t_5;
866866
867 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":87867 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":87
868 * self.tail = PyString_AS_STRING(s)868 * self.tail = PyString_AS_STRING(s)
869 * self.size = PyString_GET_SIZE(s)869 * self.size = PyString_GET_SIZE(s)
870 * self._yield_tuples = int(yield_tuples) # <<<<<<<<<<<<<<870 * self._yield_tuples = int(yield_tuples) # <<<<<<<<<<<<<<
@@ -895,7 +895,7 @@
895 return __pyx_r;895 return __pyx_r;
896}896}
897897
898/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":89898/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":89
899 * self._yield_tuples = int(yield_tuples)899 * self._yield_tuples = int(yield_tuples)
900 * 900 *
901 * def decode(self): # <<<<<<<<<<<<<<901 * def decode(self): # <<<<<<<<<<<<<<
@@ -913,7 +913,7 @@
913 __Pyx_RefNannySetupContext("decode");913 __Pyx_RefNannySetupContext("decode");
914 __pyx_v_result = Py_None; __Pyx_INCREF(Py_None);914 __pyx_v_result = Py_None; __Pyx_INCREF(Py_None);
915915
916 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":90916 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":90
917 * 917 *
918 * def decode(self):918 * def decode(self):
919 * result = self._decode_object() # <<<<<<<<<<<<<<919 * result = self._decode_object() # <<<<<<<<<<<<<<
@@ -926,7 +926,7 @@
926 __pyx_v_result = __pyx_t_1;926 __pyx_v_result = __pyx_t_1;
927 __pyx_t_1 = 0;927 __pyx_t_1 = 0;
928928
929 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":91929 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":91
930 * def decode(self):930 * def decode(self):
931 * result = self._decode_object()931 * result = self._decode_object()
932 * if self.size != 0: # <<<<<<<<<<<<<<932 * if self.size != 0: # <<<<<<<<<<<<<<
@@ -936,7 +936,7 @@
936 __pyx_t_2 = (((struct __pyx_obj_6bzrlib_12_bencode_pyx_Decoder *)__pyx_v_self)->size != 0);936 __pyx_t_2 = (((struct __pyx_obj_6bzrlib_12_bencode_pyx_Decoder *)__pyx_v_self)->size != 0);
937 if (__pyx_t_2) {937 if (__pyx_t_2) {
938938
939 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":92939 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":92
940 * result = self._decode_object()940 * result = self._decode_object()
941 * if self.size != 0:941 * if self.size != 0:
942 * raise ValueError('junk in stream') # <<<<<<<<<<<<<<942 * raise ValueError('junk in stream') # <<<<<<<<<<<<<<
@@ -958,7 +958,7 @@
958 }958 }
959 __pyx_L5:;959 __pyx_L5:;
960960
961 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":93961 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":93
962 * if self.size != 0:962 * if self.size != 0:
963 * raise ValueError('junk in stream')963 * raise ValueError('junk in stream')
964 * return result # <<<<<<<<<<<<<<964 * return result # <<<<<<<<<<<<<<
@@ -984,7 +984,7 @@
984 return __pyx_r;984 return __pyx_r;
985}985}
986986
987/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":95987/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":95
988 * return result988 * return result
989 * 989 *
990 * def decode_object(self): # <<<<<<<<<<<<<<990 * def decode_object(self): # <<<<<<<<<<<<<<
@@ -998,7 +998,7 @@
998 PyObject *__pyx_t_1 = NULL;998 PyObject *__pyx_t_1 = NULL;
999 __Pyx_RefNannySetupContext("decode_object");999 __Pyx_RefNannySetupContext("decode_object");
10001000
1001 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":961001 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":96
1002 * 1002 *
1003 * def decode_object(self):1003 * def decode_object(self):
1004 * return self._decode_object() # <<<<<<<<<<<<<<1004 * return self._decode_object() # <<<<<<<<<<<<<<
@@ -1024,7 +1024,7 @@
1024 return __pyx_r;1024 return __pyx_r;
1025}1025}
10261026
1027/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":981027/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":98
1028 * return self._decode_object()1028 * return self._decode_object()
1029 * 1029 *
1030 * cdef object _decode_object(self): # <<<<<<<<<<<<<<1030 * cdef object _decode_object(self): # <<<<<<<<<<<<<<
@@ -1041,7 +1041,7 @@
1041 int __pyx_t_4;1041 int __pyx_t_4;
1042 __Pyx_RefNannySetupContext("_decode_object");1042 __Pyx_RefNannySetupContext("_decode_object");
10431043
1044 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1011044 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":101
1045 * cdef char ch1045 * cdef char ch
1046 * 1046 *
1047 * if 0 == self.size: # <<<<<<<<<<<<<<1047 * if 0 == self.size: # <<<<<<<<<<<<<<
@@ -1051,7 +1051,7 @@
1051 __pyx_t_1 = (0 == __pyx_v_self->size);1051 __pyx_t_1 = (0 == __pyx_v_self->size);
1052 if (__pyx_t_1) {1052 if (__pyx_t_1) {
10531053
1054 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1021054 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":102
1055 * 1055 *
1056 * if 0 == self.size:1056 * if 0 == self.size:
1057 * raise ValueError('stream underflow') # <<<<<<<<<<<<<<1057 * raise ValueError('stream underflow') # <<<<<<<<<<<<<<
@@ -1073,7 +1073,7 @@
1073 }1073 }
1074 __pyx_L3:;1074 __pyx_L3:;
10751075
1076 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1041076 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":104
1077 * raise ValueError('stream underflow')1077 * raise ValueError('stream underflow')
1078 * 1078 *
1079 * if Py_EnterRecursiveCall("_decode_object"): # <<<<<<<<<<<<<<1079 * if Py_EnterRecursiveCall("_decode_object"): # <<<<<<<<<<<<<<
@@ -1083,7 +1083,7 @@
1083 __pyx_t_4 = Py_EnterRecursiveCall(__pyx_k___decode_object);1083 __pyx_t_4 = Py_EnterRecursiveCall(__pyx_k___decode_object);
1084 if (__pyx_t_4) {1084 if (__pyx_t_4) {
10851085
1086 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1051086 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":105
1087 * 1087 *
1088 * if Py_EnterRecursiveCall("_decode_object"):1088 * if Py_EnterRecursiveCall("_decode_object"):
1089 * raise RuntimeError("too deeply nested") # <<<<<<<<<<<<<<1089 * raise RuntimeError("too deeply nested") # <<<<<<<<<<<<<<
@@ -1105,7 +1105,7 @@
1105 }1105 }
1106 __pyx_L4:;1106 __pyx_L4:;
11071107
1108 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1061108 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":106
1109 * if Py_EnterRecursiveCall("_decode_object"):1109 * if Py_EnterRecursiveCall("_decode_object"):
1110 * raise RuntimeError("too deeply nested")1110 * raise RuntimeError("too deeply nested")
1111 * try: # <<<<<<<<<<<<<<1111 * try: # <<<<<<<<<<<<<<
@@ -1114,7 +1114,7 @@
1114 */1114 */
1115 /*try:*/ {1115 /*try:*/ {
11161116
1117 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1071117 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":107
1118 * raise RuntimeError("too deeply nested")1118 * raise RuntimeError("too deeply nested")
1119 * try:1119 * try:
1120 * ch = self.tail[0] # <<<<<<<<<<<<<<1120 * ch = self.tail[0] # <<<<<<<<<<<<<<
@@ -1123,7 +1123,7 @@
1123 */1123 */
1124 __pyx_v_ch = (__pyx_v_self->tail[0]);1124 __pyx_v_ch = (__pyx_v_self->tail[0]);
11251125
1126 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1081126 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":108
1127 * try:1127 * try:
1128 * ch = self.tail[0]1128 * ch = self.tail[0]
1129 * if c'0' <= ch <= c'9': # <<<<<<<<<<<<<<1129 * if c'0' <= ch <= c'9': # <<<<<<<<<<<<<<
@@ -1136,7 +1136,7 @@
1136 }1136 }
1137 if (__pyx_t_1) {1137 if (__pyx_t_1) {
11381138
1139 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1091139 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":109
1140 * ch = self.tail[0]1140 * ch = self.tail[0]
1141 * if c'0' <= ch <= c'9':1141 * if c'0' <= ch <= c'9':
1142 * return self._decode_string() # <<<<<<<<<<<<<<1142 * return self._decode_string() # <<<<<<<<<<<<<<
@@ -1152,7 +1152,7 @@
1152 goto __pyx_L8;1152 goto __pyx_L8;
1153 }1153 }
11541154
1155 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1101155 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":110
1156 * if c'0' <= ch <= c'9':1156 * if c'0' <= ch <= c'9':
1157 * return self._decode_string()1157 * return self._decode_string()
1158 * elif ch == c'l': # <<<<<<<<<<<<<<1158 * elif ch == c'l': # <<<<<<<<<<<<<<
@@ -1162,7 +1162,7 @@
1162 __pyx_t_1 = (__pyx_v_ch == 'l');1162 __pyx_t_1 = (__pyx_v_ch == 'l');
1163 if (__pyx_t_1) {1163 if (__pyx_t_1) {
11641164
1165 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1111165 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":111
1166 * return self._decode_string()1166 * return self._decode_string()
1167 * elif ch == c'l':1167 * elif ch == c'l':
1168 * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<1168 * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<
@@ -1171,7 +1171,7 @@
1171 */1171 */
1172 D_UPDATE_TAIL(__pyx_v_self, 1);1172 D_UPDATE_TAIL(__pyx_v_self, 1);
11731173
1174 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1121174 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":112
1175 * elif ch == c'l':1175 * elif ch == c'l':
1176 * D_UPDATE_TAIL(self, 1)1176 * D_UPDATE_TAIL(self, 1)
1177 * return self._decode_list() # <<<<<<<<<<<<<<1177 * return self._decode_list() # <<<<<<<<<<<<<<
@@ -1187,7 +1187,7 @@
1187 goto __pyx_L8;1187 goto __pyx_L8;
1188 }1188 }
11891189
1190 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1131190 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":113
1191 * D_UPDATE_TAIL(self, 1)1191 * D_UPDATE_TAIL(self, 1)
1192 * return self._decode_list()1192 * return self._decode_list()
1193 * elif ch == c'i': # <<<<<<<<<<<<<<1193 * elif ch == c'i': # <<<<<<<<<<<<<<
@@ -1197,7 +1197,7 @@
1197 __pyx_t_1 = (__pyx_v_ch == 'i');1197 __pyx_t_1 = (__pyx_v_ch == 'i');
1198 if (__pyx_t_1) {1198 if (__pyx_t_1) {
11991199
1200 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1141200 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":114
1201 * return self._decode_list()1201 * return self._decode_list()
1202 * elif ch == c'i':1202 * elif ch == c'i':
1203 * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<1203 * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<
@@ -1206,7 +1206,7 @@
1206 */1206 */
1207 D_UPDATE_TAIL(__pyx_v_self, 1);1207 D_UPDATE_TAIL(__pyx_v_self, 1);
12081208
1209 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1151209 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":115
1210 * elif ch == c'i':1210 * elif ch == c'i':
1211 * D_UPDATE_TAIL(self, 1)1211 * D_UPDATE_TAIL(self, 1)
1212 * return self._decode_int() # <<<<<<<<<<<<<<1212 * return self._decode_int() # <<<<<<<<<<<<<<
@@ -1222,7 +1222,7 @@
1222 goto __pyx_L8;1222 goto __pyx_L8;
1223 }1223 }
12241224
1225 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1161225 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":116
1226 * D_UPDATE_TAIL(self, 1)1226 * D_UPDATE_TAIL(self, 1)
1227 * return self._decode_int()1227 * return self._decode_int()
1228 * elif ch == c'd': # <<<<<<<<<<<<<<1228 * elif ch == c'd': # <<<<<<<<<<<<<<
@@ -1232,7 +1232,7 @@
1232 __pyx_t_1 = (__pyx_v_ch == 'd');1232 __pyx_t_1 = (__pyx_v_ch == 'd');
1233 if (__pyx_t_1) {1233 if (__pyx_t_1) {
12341234
1235 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1171235 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":117
1236 * return self._decode_int()1236 * return self._decode_int()
1237 * elif ch == c'd':1237 * elif ch == c'd':
1238 * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<1238 * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<
@@ -1241,7 +1241,7 @@
1241 */1241 */
1242 D_UPDATE_TAIL(__pyx_v_self, 1);1242 D_UPDATE_TAIL(__pyx_v_self, 1);
12431243
1244 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1181244 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":118
1245 * elif ch == c'd':1245 * elif ch == c'd':
1246 * D_UPDATE_TAIL(self, 1)1246 * D_UPDATE_TAIL(self, 1)
1247 * return self._decode_dict() # <<<<<<<<<<<<<<1247 * return self._decode_dict() # <<<<<<<<<<<<<<
@@ -1258,7 +1258,7 @@
1258 }1258 }
1259 /*else*/ {1259 /*else*/ {
12601260
1261 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1201261 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":120
1262 * return self._decode_dict()1262 * return self._decode_dict()
1263 * else:1263 * else:
1264 * raise ValueError('unknown object type identifier %r' % ch) # <<<<<<<<<<<<<<1264 * raise ValueError('unknown object type identifier %r' % ch) # <<<<<<<<<<<<<<
@@ -1285,7 +1285,7 @@
1285 __pyx_L8:;1285 __pyx_L8:;
1286 }1286 }
12871287
1288 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1221288 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":122
1289 * raise ValueError('unknown object type identifier %r' % ch)1289 * raise ValueError('unknown object type identifier %r' % ch)
1290 * finally:1290 * finally:
1291 * Py_LeaveRecursiveCall() # <<<<<<<<<<<<<<1291 * Py_LeaveRecursiveCall() # <<<<<<<<<<<<<<
@@ -1336,7 +1336,7 @@
1336 return __pyx_r;1336 return __pyx_r;
1337}1337}
13381338
1339/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1241339/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":124
1340 * Py_LeaveRecursiveCall()1340 * Py_LeaveRecursiveCall()
1341 * 1341 *
1342 * cdef int _read_digits(self, char stop_char) except -1: # <<<<<<<<<<<<<<1342 * cdef int _read_digits(self, char stop_char) except -1: # <<<<<<<<<<<<<<
@@ -1356,7 +1356,7 @@
1356 int __pyx_t_7;1356 int __pyx_t_7;
1357 __Pyx_RefNannySetupContext("_read_digits");1357 __Pyx_RefNannySetupContext("_read_digits");
13581358
1359 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1261359 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":126
1360 * cdef int _read_digits(self, char stop_char) except -1:1360 * cdef int _read_digits(self, char stop_char) except -1:
1361 * cdef int i1361 * cdef int i
1362 * i = 0 # <<<<<<<<<<<<<<1362 * i = 0 # <<<<<<<<<<<<<<
@@ -1365,7 +1365,7 @@
1365 */1365 */
1366 __pyx_v_i = 0;1366 __pyx_v_i = 0;
13671367
1368 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1271368 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":127
1369 * cdef int i1369 * cdef int i
1370 * i = 01370 * i = 0
1371 * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or # <<<<<<<<<<<<<<1371 * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or # <<<<<<<<<<<<<<
@@ -1374,7 +1374,7 @@
1374 */1374 */
1375 while (1) {1375 while (1) {
13761376
1377 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1281377 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":128
1378 * i = 01378 * i = 0
1379 * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or1379 * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or
1380 * self.tail[i] == c'-') and i < self.size: # <<<<<<<<<<<<<<1380 * self.tail[i] == c'-') and i < self.size: # <<<<<<<<<<<<<<
@@ -1384,7 +1384,7 @@
1384 __pyx_t_1 = ((__pyx_v_self->tail[__pyx_v_i]) >= '0');1384 __pyx_t_1 = ((__pyx_v_self->tail[__pyx_v_i]) >= '0');
1385 if (__pyx_t_1) {1385 if (__pyx_t_1) {
13861386
1387 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1271387 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":127
1388 * cdef int i1388 * cdef int i
1389 * i = 01389 * i = 0
1390 * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or # <<<<<<<<<<<<<<1390 * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or # <<<<<<<<<<<<<<
@@ -1398,7 +1398,7 @@
1398 }1398 }
1399 if (!__pyx_t_3) {1399 if (!__pyx_t_3) {
14001400
1401 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1281401 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":128
1402 * i = 01402 * i = 0
1403 * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or1403 * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or
1404 * self.tail[i] == c'-') and i < self.size: # <<<<<<<<<<<<<<1404 * self.tail[i] == c'-') and i < self.size: # <<<<<<<<<<<<<<
@@ -1418,7 +1418,7 @@
1418 }1418 }
1419 if (!__pyx_t_1) break;1419 if (!__pyx_t_1) break;
14201420
1421 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1291421 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":129
1422 * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or1422 * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or
1423 * self.tail[i] == c'-') and i < self.size:1423 * self.tail[i] == c'-') and i < self.size:
1424 * i = i + 1 # <<<<<<<<<<<<<<1424 * i = i + 1 # <<<<<<<<<<<<<<
@@ -1428,7 +1428,7 @@
1428 __pyx_v_i = (__pyx_v_i + 1);1428 __pyx_v_i = (__pyx_v_i + 1);
1429 }1429 }
14301430
1431 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1311431 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":131
1432 * i = i + 11432 * i = i + 1
1433 * 1433 *
1434 * if self.tail[i] != stop_char: # <<<<<<<<<<<<<<1434 * if self.tail[i] != stop_char: # <<<<<<<<<<<<<<
@@ -1438,7 +1438,7 @@
1438 __pyx_t_1 = ((__pyx_v_self->tail[__pyx_v_i]) != __pyx_v_stop_char);1438 __pyx_t_1 = ((__pyx_v_self->tail[__pyx_v_i]) != __pyx_v_stop_char);
1439 if (__pyx_t_1) {1439 if (__pyx_t_1) {
14401440
1441 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1331441 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":133
1442 * if self.tail[i] != stop_char:1442 * if self.tail[i] != stop_char:
1443 * raise ValueError("Stop character %c not found: %c" %1443 * raise ValueError("Stop character %c not found: %c" %
1444 * (stop_char, self.tail[i])) # <<<<<<<<<<<<<<1444 * (stop_char, self.tail[i])) # <<<<<<<<<<<<<<
@@ -1475,7 +1475,7 @@
1475 }1475 }
1476 __pyx_L5:;1476 __pyx_L5:;
14771477
1478 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1341478 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":134
1479 * raise ValueError("Stop character %c not found: %c" %1479 * raise ValueError("Stop character %c not found: %c" %
1480 * (stop_char, self.tail[i]))1480 * (stop_char, self.tail[i]))
1481 * if (self.tail[0] == c'0' or # <<<<<<<<<<<<<<1481 * if (self.tail[0] == c'0' or # <<<<<<<<<<<<<<
@@ -1485,7 +1485,7 @@
1485 __pyx_t_1 = ((__pyx_v_self->tail[0]) == '0');1485 __pyx_t_1 = ((__pyx_v_self->tail[0]) == '0');
1486 if (!__pyx_t_1) {1486 if (!__pyx_t_1) {
14871487
1488 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1351488 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":135
1489 * (stop_char, self.tail[i]))1489 * (stop_char, self.tail[i]))
1490 * if (self.tail[0] == c'0' or1490 * if (self.tail[0] == c'0' or
1491 * (self.tail[0] == c'-' and self.tail[1] == c'0')): # <<<<<<<<<<<<<<1491 * (self.tail[0] == c'-' and self.tail[1] == c'0')): # <<<<<<<<<<<<<<
@@ -1505,7 +1505,7 @@
1505 }1505 }
1506 if (__pyx_t_2) {1506 if (__pyx_t_2) {
15071507
1508 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1361508 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":136
1509 * if (self.tail[0] == c'0' or1509 * if (self.tail[0] == c'0' or
1510 * (self.tail[0] == c'-' and self.tail[1] == c'0')):1510 * (self.tail[0] == c'-' and self.tail[1] == c'0')):
1511 * if i == 1: # <<<<<<<<<<<<<<1511 * if i == 1: # <<<<<<<<<<<<<<
@@ -1515,7 +1515,7 @@
1515 __pyx_t_2 = (__pyx_v_i == 1);1515 __pyx_t_2 = (__pyx_v_i == 1);
1516 if (__pyx_t_2) {1516 if (__pyx_t_2) {
15171517
1518 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1371518 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":137
1519 * (self.tail[0] == c'-' and self.tail[1] == c'0')):1519 * (self.tail[0] == c'-' and self.tail[1] == c'0')):
1520 * if i == 1:1520 * if i == 1:
1521 * return i # <<<<<<<<<<<<<<1521 * return i # <<<<<<<<<<<<<<
@@ -1528,7 +1528,7 @@
1528 }1528 }
1529 /*else*/ {1529 /*else*/ {
15301530
1531 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1391531 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":139
1532 * return i1532 * return i
1533 * else:1533 * else:
1534 * raise ValueError # leading zeroes are not allowed # <<<<<<<<<<<<<<1534 * raise ValueError # leading zeroes are not allowed # <<<<<<<<<<<<<<
@@ -1543,7 +1543,7 @@
1543 }1543 }
1544 __pyx_L6:;1544 __pyx_L6:;
15451545
1546 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1401546 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":140
1547 * else:1547 * else:
1548 * raise ValueError # leading zeroes are not allowed1548 * raise ValueError # leading zeroes are not allowed
1549 * return i # <<<<<<<<<<<<<<1549 * return i # <<<<<<<<<<<<<<
@@ -1566,7 +1566,7 @@
1566 return __pyx_r;1566 return __pyx_r;
1567}1567}
15681568
1569/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1421569/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":142
1570 * return i1570 * return i
1571 * 1571 *
1572 * cdef object _decode_int(self): # <<<<<<<<<<<<<<1572 * cdef object _decode_int(self): # <<<<<<<<<<<<<<
@@ -1583,7 +1583,7 @@
1583 __Pyx_RefNannySetupContext("_decode_int");1583 __Pyx_RefNannySetupContext("_decode_int");
1584 __pyx_v_ret = Py_None; __Pyx_INCREF(Py_None);1584 __pyx_v_ret = Py_None; __Pyx_INCREF(Py_None);
15851585
1586 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1441586 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":144
1587 * cdef object _decode_int(self):1587 * cdef object _decode_int(self):
1588 * cdef int i1588 * cdef int i
1589 * i = self._read_digits(c'e') # <<<<<<<<<<<<<<1589 * i = self._read_digits(c'e') # <<<<<<<<<<<<<<
@@ -1593,7 +1593,7 @@
1593 __pyx_t_1 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Decoder *)__pyx_v_self->__pyx_vtab)->_read_digits(__pyx_v_self, 'e'); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}1593 __pyx_t_1 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Decoder *)__pyx_v_self->__pyx_vtab)->_read_digits(__pyx_v_self, 'e'); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1594 __pyx_v_i = __pyx_t_1;1594 __pyx_v_i = __pyx_t_1;
15951595
1596 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1451596 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":145
1597 * cdef int i1597 * cdef int i
1598 * i = self._read_digits(c'e')1598 * i = self._read_digits(c'e')
1599 * self.tail[i] = 0 # <<<<<<<<<<<<<<1599 * self.tail[i] = 0 # <<<<<<<<<<<<<<
@@ -1602,7 +1602,7 @@
1602 */1602 */
1603 (__pyx_v_self->tail[__pyx_v_i]) = 0;1603 (__pyx_v_self->tail[__pyx_v_i]) = 0;
16041604
1605 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1461605 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":146
1606 * i = self._read_digits(c'e')1606 * i = self._read_digits(c'e')
1607 * self.tail[i] = 01607 * self.tail[i] = 0
1608 * try: # <<<<<<<<<<<<<<1608 * try: # <<<<<<<<<<<<<<
@@ -1611,7 +1611,7 @@
1611 */1611 */
1612 /*try:*/ {1612 /*try:*/ {
16131613
1614 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1471614 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":147
1615 * self.tail[i] = 01615 * self.tail[i] = 0
1616 * try:1616 * try:
1617 * ret = PyInt_FromString(self.tail, NULL, 10) # <<<<<<<<<<<<<<1617 * ret = PyInt_FromString(self.tail, NULL, 10) # <<<<<<<<<<<<<<
@@ -1625,7 +1625,7 @@
1625 __pyx_t_2 = 0;1625 __pyx_t_2 = 0;
1626 }1626 }
16271627
1628 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1491628 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":149
1629 * ret = PyInt_FromString(self.tail, NULL, 10)1629 * ret = PyInt_FromString(self.tail, NULL, 10)
1630 * finally:1630 * finally:
1631 * self.tail[i] = c'e' # <<<<<<<<<<<<<<1631 * self.tail[i] = c'e' # <<<<<<<<<<<<<<
@@ -1659,7 +1659,7 @@
1659 }1659 }
1660 }1660 }
16611661
1662 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1501662 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":150
1663 * finally:1663 * finally:
1664 * self.tail[i] = c'e'1664 * self.tail[i] = c'e'
1665 * D_UPDATE_TAIL(self, i+1) # <<<<<<<<<<<<<<1665 * D_UPDATE_TAIL(self, i+1) # <<<<<<<<<<<<<<
@@ -1668,7 +1668,7 @@
1668 */1668 */
1669 D_UPDATE_TAIL(__pyx_v_self, (__pyx_v_i + 1));1669 D_UPDATE_TAIL(__pyx_v_self, (__pyx_v_i + 1));
16701670
1671 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1511671 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":151
1672 * self.tail[i] = c'e'1672 * self.tail[i] = c'e'
1673 * D_UPDATE_TAIL(self, i+1)1673 * D_UPDATE_TAIL(self, i+1)
1674 * return ret # <<<<<<<<<<<<<<1674 * return ret # <<<<<<<<<<<<<<
@@ -1693,7 +1693,7 @@
1693 return __pyx_r;1693 return __pyx_r;
1694}1694}
16951695
1696/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1531696/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":153
1697 * return ret1697 * return ret
1698 * 1698 *
1699 * cdef object _decode_string(self): # <<<<<<<<<<<<<<1699 * cdef object _decode_string(self): # <<<<<<<<<<<<<<
@@ -1715,7 +1715,7 @@
1715 __Pyx_RefNannySetupContext("_decode_string");1715 __Pyx_RefNannySetupContext("_decode_string");
1716 __pyx_v_result = Py_None; __Pyx_INCREF(Py_None);1716 __pyx_v_result = Py_None; __Pyx_INCREF(Py_None);
17171717
1718 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1601718 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":160
1719 * # or they wouldn't have called _decode_string1719 * # or they wouldn't have called _decode_string
1720 * # strtol will stop at trailing whitespace, etc1720 * # strtol will stop at trailing whitespace, etc
1721 * n = strtol(self.tail, &next_tail, 10) # <<<<<<<<<<<<<<1721 * n = strtol(self.tail, &next_tail, 10) # <<<<<<<<<<<<<<
@@ -1724,7 +1724,7 @@
1724 */1724 */
1725 __pyx_v_n = strtol(__pyx_v_self->tail, (&__pyx_v_next_tail), 10);1725 __pyx_v_n = strtol(__pyx_v_self->tail, (&__pyx_v_next_tail), 10);
17261726
1727 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1611727 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":161
1728 * # strtol will stop at trailing whitespace, etc1728 * # strtol will stop at trailing whitespace, etc
1729 * n = strtol(self.tail, &next_tail, 10)1729 * n = strtol(self.tail, &next_tail, 10)
1730 * if next_tail == NULL or next_tail[0] != c':': # <<<<<<<<<<<<<<1730 * if next_tail == NULL or next_tail[0] != c':': # <<<<<<<<<<<<<<
@@ -1740,7 +1740,7 @@
1740 }1740 }
1741 if (__pyx_t_3) {1741 if (__pyx_t_3) {
17421742
1743 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1621743 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":162
1744 * n = strtol(self.tail, &next_tail, 10)1744 * n = strtol(self.tail, &next_tail, 10)
1745 * if next_tail == NULL or next_tail[0] != c':':1745 * if next_tail == NULL or next_tail[0] != c':':
1746 * raise ValueError('string len not terminated by ":"') # <<<<<<<<<<<<<<1746 * raise ValueError('string len not terminated by ":"') # <<<<<<<<<<<<<<
@@ -1762,7 +1762,7 @@
1762 }1762 }
1763 __pyx_L3:;1763 __pyx_L3:;
17641764
1765 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1641765 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":164
1766 * raise ValueError('string len not terminated by ":"')1766 * raise ValueError('string len not terminated by ":"')
1767 * # strtol allows leading zeros, so validate that we don't have that1767 * # strtol allows leading zeros, so validate that we don't have that
1768 * if (self.tail[0] == c'0' # <<<<<<<<<<<<<<1768 * if (self.tail[0] == c'0' # <<<<<<<<<<<<<<
@@ -1772,7 +1772,7 @@
1772 __pyx_t_3 = ((__pyx_v_self->tail[0]) == '0');1772 __pyx_t_3 = ((__pyx_v_self->tail[0]) == '0');
1773 if (__pyx_t_3) {1773 if (__pyx_t_3) {
17741774
1775 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1651775 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":165
1776 * # strtol allows leading zeros, so validate that we don't have that1776 * # strtol allows leading zeros, so validate that we don't have that
1777 * if (self.tail[0] == c'0'1777 * if (self.tail[0] == c'0'
1778 * and (n != 0 or (next_tail - self.tail != 1))): # <<<<<<<<<<<<<<1778 * and (n != 0 or (next_tail - self.tail != 1))): # <<<<<<<<<<<<<<
@@ -1792,7 +1792,7 @@
1792 }1792 }
1793 if (__pyx_t_1) {1793 if (__pyx_t_1) {
17941794
1795 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1661795 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":166
1796 * if (self.tail[0] == c'0'1796 * if (self.tail[0] == c'0'
1797 * and (n != 0 or (next_tail - self.tail != 1))):1797 * and (n != 0 or (next_tail - self.tail != 1))):
1798 * raise ValueError('leading zeros are not allowed') # <<<<<<<<<<<<<<1798 * raise ValueError('leading zeros are not allowed') # <<<<<<<<<<<<<<
@@ -1814,7 +1814,7 @@
1814 }1814 }
1815 __pyx_L4:;1815 __pyx_L4:;
18161816
1817 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1671817 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":167
1818 * and (n != 0 or (next_tail - self.tail != 1))):1818 * and (n != 0 or (next_tail - self.tail != 1))):
1819 * raise ValueError('leading zeros are not allowed')1819 * raise ValueError('leading zeros are not allowed')
1820 * D_UPDATE_TAIL(self, next_tail - self.tail + 1) # <<<<<<<<<<<<<<1820 * D_UPDATE_TAIL(self, next_tail - self.tail + 1) # <<<<<<<<<<<<<<
@@ -1823,7 +1823,7 @@
1823 */1823 */
1824 D_UPDATE_TAIL(__pyx_v_self, ((__pyx_v_next_tail - __pyx_v_self->tail) + 1));1824 D_UPDATE_TAIL(__pyx_v_self, ((__pyx_v_next_tail - __pyx_v_self->tail) + 1));
18251825
1826 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1681826 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":168
1827 * raise ValueError('leading zeros are not allowed')1827 * raise ValueError('leading zeros are not allowed')
1828 * D_UPDATE_TAIL(self, next_tail - self.tail + 1)1828 * D_UPDATE_TAIL(self, next_tail - self.tail + 1)
1829 * if n == 0: # <<<<<<<<<<<<<<1829 * if n == 0: # <<<<<<<<<<<<<<
@@ -1833,7 +1833,7 @@
1833 __pyx_t_1 = (__pyx_v_n == 0);1833 __pyx_t_1 = (__pyx_v_n == 0);
1834 if (__pyx_t_1) {1834 if (__pyx_t_1) {
18351835
1836 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1691836 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":169
1837 * D_UPDATE_TAIL(self, next_tail - self.tail + 1)1837 * D_UPDATE_TAIL(self, next_tail - self.tail + 1)
1838 * if n == 0:1838 * if n == 0:
1839 * return '' # <<<<<<<<<<<<<<1839 * return '' # <<<<<<<<<<<<<<
@@ -1848,7 +1848,7 @@
1848 }1848 }
1849 __pyx_L5:;1849 __pyx_L5:;
18501850
1851 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1701851 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":170
1852 * if n == 0:1852 * if n == 0:
1853 * return ''1853 * return ''
1854 * if n > self.size: # <<<<<<<<<<<<<<1854 * if n > self.size: # <<<<<<<<<<<<<<
@@ -1858,7 +1858,7 @@
1858 __pyx_t_1 = (__pyx_v_n > __pyx_v_self->size);1858 __pyx_t_1 = (__pyx_v_n > __pyx_v_self->size);
1859 if (__pyx_t_1) {1859 if (__pyx_t_1) {
18601860
1861 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1711861 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":171
1862 * return ''1862 * return ''
1863 * if n > self.size:1863 * if n > self.size:
1864 * raise ValueError('stream underflow') # <<<<<<<<<<<<<<1864 * raise ValueError('stream underflow') # <<<<<<<<<<<<<<
@@ -1880,7 +1880,7 @@
1880 }1880 }
1881 __pyx_L6:;1881 __pyx_L6:;
18821882
1883 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1721883 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":172
1884 * if n > self.size:1884 * if n > self.size:
1885 * raise ValueError('stream underflow')1885 * raise ValueError('stream underflow')
1886 * if n < 0: # <<<<<<<<<<<<<<1886 * if n < 0: # <<<<<<<<<<<<<<
@@ -1890,7 +1890,7 @@
1890 __pyx_t_1 = (__pyx_v_n < 0);1890 __pyx_t_1 = (__pyx_v_n < 0);
1891 if (__pyx_t_1) {1891 if (__pyx_t_1) {
18921892
1893 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1731893 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":173
1894 * raise ValueError('stream underflow')1894 * raise ValueError('stream underflow')
1895 * if n < 0:1895 * if n < 0:
1896 * raise ValueError('string size below zero: %d' % n) # <<<<<<<<<<<<<<1896 * raise ValueError('string size below zero: %d' % n) # <<<<<<<<<<<<<<
@@ -1917,7 +1917,7 @@
1917 }1917 }
1918 __pyx_L7:;1918 __pyx_L7:;
19191919
1920 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1751920 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":175
1921 * raise ValueError('string size below zero: %d' % n)1921 * raise ValueError('string size below zero: %d' % n)
1922 * 1922 *
1923 * result = PyString_FromStringAndSize(self.tail, n) # <<<<<<<<<<<<<<1923 * result = PyString_FromStringAndSize(self.tail, n) # <<<<<<<<<<<<<<
@@ -1930,7 +1930,7 @@
1930 __pyx_v_result = __pyx_t_4;1930 __pyx_v_result = __pyx_t_4;
1931 __pyx_t_4 = 0;1931 __pyx_t_4 = 0;
19321932
1933 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1761933 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":176
1934 * 1934 *
1935 * result = PyString_FromStringAndSize(self.tail, n)1935 * result = PyString_FromStringAndSize(self.tail, n)
1936 * D_UPDATE_TAIL(self, n) # <<<<<<<<<<<<<<1936 * D_UPDATE_TAIL(self, n) # <<<<<<<<<<<<<<
@@ -1939,7 +1939,7 @@
1939 */1939 */
1940 D_UPDATE_TAIL(__pyx_v_self, __pyx_v_n);1940 D_UPDATE_TAIL(__pyx_v_self, __pyx_v_n);
19411941
1942 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1771942 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":177
1943 * result = PyString_FromStringAndSize(self.tail, n)1943 * result = PyString_FromStringAndSize(self.tail, n)
1944 * D_UPDATE_TAIL(self, n)1944 * D_UPDATE_TAIL(self, n)
1945 * return result # <<<<<<<<<<<<<<1945 * return result # <<<<<<<<<<<<<<
@@ -1965,7 +1965,7 @@
1965 return __pyx_r;1965 return __pyx_r;
1966}1966}
19671967
1968/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1791968/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":179
1969 * return result1969 * return result
1970 * 1970 *
1971 * cdef object _decode_list(self): # <<<<<<<<<<<<<<1971 * cdef object _decode_list(self): # <<<<<<<<<<<<<<
@@ -1983,7 +1983,7 @@
1983 __Pyx_RefNannySetupContext("_decode_list");1983 __Pyx_RefNannySetupContext("_decode_list");
1984 __pyx_v_result = ((PyObject *)Py_None); __Pyx_INCREF(Py_None);1984 __pyx_v_result = ((PyObject *)Py_None); __Pyx_INCREF(Py_None);
19851985
1986 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1801986 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":180
1987 * 1987 *
1988 * cdef object _decode_list(self):1988 * cdef object _decode_list(self):
1989 * result = [] # <<<<<<<<<<<<<<1989 * result = [] # <<<<<<<<<<<<<<
@@ -1996,7 +1996,7 @@
1996 __pyx_v_result = __pyx_t_1;1996 __pyx_v_result = __pyx_t_1;
1997 __pyx_t_1 = 0;1997 __pyx_t_1 = 0;
19981998
1999 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1821999 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":182
2000 * result = []2000 * result = []
2001 * 2001 *
2002 * while self.size > 0: # <<<<<<<<<<<<<<2002 * while self.size > 0: # <<<<<<<<<<<<<<
@@ -2007,7 +2007,7 @@
2007 __pyx_t_2 = (__pyx_v_self->size > 0);2007 __pyx_t_2 = (__pyx_v_self->size > 0);
2008 if (!__pyx_t_2) break;2008 if (!__pyx_t_2) break;
20092009
2010 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1832010 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":183
2011 * 2011 *
2012 * while self.size > 0:2012 * while self.size > 0:
2013 * if self.tail[0] == c'e': # <<<<<<<<<<<<<<2013 * if self.tail[0] == c'e': # <<<<<<<<<<<<<<
@@ -2017,7 +2017,7 @@
2017 __pyx_t_2 = ((__pyx_v_self->tail[0]) == 'e');2017 __pyx_t_2 = ((__pyx_v_self->tail[0]) == 'e');
2018 if (__pyx_t_2) {2018 if (__pyx_t_2) {
20192019
2020 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1842020 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":184
2021 * while self.size > 0:2021 * while self.size > 0:
2022 * if self.tail[0] == c'e':2022 * if self.tail[0] == c'e':
2023 * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<2023 * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<
@@ -2026,7 +2026,7 @@
2026 */2026 */
2027 D_UPDATE_TAIL(__pyx_v_self, 1);2027 D_UPDATE_TAIL(__pyx_v_self, 1);
20282028
2029 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1852029 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":185
2030 * if self.tail[0] == c'e':2030 * if self.tail[0] == c'e':
2031 * D_UPDATE_TAIL(self, 1)2031 * D_UPDATE_TAIL(self, 1)
2032 * if self._yield_tuples: # <<<<<<<<<<<<<<2032 * if self._yield_tuples: # <<<<<<<<<<<<<<
@@ -2035,7 +2035,7 @@
2035 */2035 */
2036 if (__pyx_v_self->_yield_tuples) {2036 if (__pyx_v_self->_yield_tuples) {
20372037
2038 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1862038 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":186
2039 * D_UPDATE_TAIL(self, 1)2039 * D_UPDATE_TAIL(self, 1)
2040 * if self._yield_tuples:2040 * if self._yield_tuples:
2041 * return tuple(result) # <<<<<<<<<<<<<<2041 * return tuple(result) # <<<<<<<<<<<<<<
@@ -2055,7 +2055,7 @@
2055 }2055 }
2056 /*else*/ {2056 /*else*/ {
20572057
2058 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1882058 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":188
2059 * return tuple(result)2059 * return tuple(result)
2060 * else:2060 * else:
2061 * return result # <<<<<<<<<<<<<<2061 * return result # <<<<<<<<<<<<<<
@@ -2072,7 +2072,7 @@
2072 }2072 }
2073 /*else*/ {2073 /*else*/ {
20742074
2075 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1932075 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":193
2076 * # string, since we know that won't be creating recursion2076 * # string, since we know that won't be creating recursion
2077 * # if self.tail[0] >= c'0' and self.tail[0] <= c'9':2077 * # if self.tail[0] >= c'0' and self.tail[0] <= c'9':
2078 * PyList_Append(result, self._decode_object()) # <<<<<<<<<<<<<<2078 * PyList_Append(result, self._decode_object()) # <<<<<<<<<<<<<<
@@ -2087,7 +2087,7 @@
2087 __pyx_L5:;2087 __pyx_L5:;
2088 }2088 }
20892089
2090 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1952090 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":195
2091 * PyList_Append(result, self._decode_object())2091 * PyList_Append(result, self._decode_object())
2092 * 2092 *
2093 * raise ValueError('malformed list') # <<<<<<<<<<<<<<2093 * raise ValueError('malformed list') # <<<<<<<<<<<<<<
@@ -2120,7 +2120,7 @@
2120 return __pyx_r;2120 return __pyx_r;
2121}2121}
21222122
2123/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1972123/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":197
2124 * raise ValueError('malformed list')2124 * raise ValueError('malformed list')
2125 * 2125 *
2126 * cdef object _decode_dict(self): # <<<<<<<<<<<<<<2126 * cdef object _decode_dict(self): # <<<<<<<<<<<<<<
@@ -2146,7 +2146,7 @@
2146 __pyx_v_key = Py_None; __Pyx_INCREF(Py_None);2146 __pyx_v_key = Py_None; __Pyx_INCREF(Py_None);
2147 __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);2147 __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);
21482148
2149 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2002149 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":200
2150 * cdef char ch2150 * cdef char ch
2151 * 2151 *
2152 * result = {} # <<<<<<<<<<<<<<2152 * result = {} # <<<<<<<<<<<<<<
@@ -2159,7 +2159,7 @@
2159 __pyx_v_result = __pyx_t_1;2159 __pyx_v_result = __pyx_t_1;
2160 __pyx_t_1 = 0;2160 __pyx_t_1 = 0;
21612161
2162 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2012162 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":201
2163 * 2163 *
2164 * result = {}2164 * result = {}
2165 * lastkey = None # <<<<<<<<<<<<<<2165 * lastkey = None # <<<<<<<<<<<<<<
@@ -2170,7 +2170,7 @@
2170 __Pyx_DECREF(__pyx_v_lastkey);2170 __Pyx_DECREF(__pyx_v_lastkey);
2171 __pyx_v_lastkey = Py_None;2171 __pyx_v_lastkey = Py_None;
21722172
2173 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2032173 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":203
2174 * lastkey = None2174 * lastkey = None
2175 * 2175 *
2176 * while self.size > 0: # <<<<<<<<<<<<<<2176 * while self.size > 0: # <<<<<<<<<<<<<<
@@ -2181,7 +2181,7 @@
2181 __pyx_t_2 = (__pyx_v_self->size > 0);2181 __pyx_t_2 = (__pyx_v_self->size > 0);
2182 if (!__pyx_t_2) break;2182 if (!__pyx_t_2) break;
21832183
2184 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2042184 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":204
2185 * 2185 *
2186 * while self.size > 0:2186 * while self.size > 0:
2187 * ch = self.tail[0] # <<<<<<<<<<<<<<2187 * ch = self.tail[0] # <<<<<<<<<<<<<<
@@ -2190,7 +2190,7 @@
2190 */2190 */
2191 __pyx_v_ch = (__pyx_v_self->tail[0]);2191 __pyx_v_ch = (__pyx_v_self->tail[0]);
21922192
2193 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2052193 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":205
2194 * while self.size > 0:2194 * while self.size > 0:
2195 * ch = self.tail[0]2195 * ch = self.tail[0]
2196 * if ch == c'e': # <<<<<<<<<<<<<<2196 * if ch == c'e': # <<<<<<<<<<<<<<
@@ -2200,7 +2200,7 @@
2200 __pyx_t_2 = (__pyx_v_ch == 'e');2200 __pyx_t_2 = (__pyx_v_ch == 'e');
2201 if (__pyx_t_2) {2201 if (__pyx_t_2) {
22022202
2203 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2062203 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":206
2204 * ch = self.tail[0]2204 * ch = self.tail[0]
2205 * if ch == c'e':2205 * if ch == c'e':
2206 * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<2206 * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<
@@ -2209,7 +2209,7 @@
2209 */2209 */
2210 D_UPDATE_TAIL(__pyx_v_self, 1);2210 D_UPDATE_TAIL(__pyx_v_self, 1);
22112211
2212 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2072212 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":207
2213 * if ch == c'e':2213 * if ch == c'e':
2214 * D_UPDATE_TAIL(self, 1)2214 * D_UPDATE_TAIL(self, 1)
2215 * return result # <<<<<<<<<<<<<<2215 * return result # <<<<<<<<<<<<<<
@@ -2224,7 +2224,7 @@
2224 }2224 }
2225 /*else*/ {2225 /*else*/ {
22262226
2227 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2102227 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":210
2228 * else:2228 * else:
2229 * # keys should be strings only2229 * # keys should be strings only
2230 * if self.tail[0] < c'0' or self.tail[0] > c'9': # <<<<<<<<<<<<<<2230 * if self.tail[0] < c'0' or self.tail[0] > c'9': # <<<<<<<<<<<<<<
@@ -2240,7 +2240,7 @@
2240 }2240 }
2241 if (__pyx_t_4) {2241 if (__pyx_t_4) {
22422242
2243 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2112243 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":211
2244 * # keys should be strings only2244 * # keys should be strings only
2245 * if self.tail[0] < c'0' or self.tail[0] > c'9':2245 * if self.tail[0] < c'0' or self.tail[0] > c'9':
2246 * raise ValueError('key was not a simple string.') # <<<<<<<<<<<<<<2246 * raise ValueError('key was not a simple string.') # <<<<<<<<<<<<<<
@@ -2262,7 +2262,7 @@
2262 }2262 }
2263 __pyx_L6:;2263 __pyx_L6:;
22642264
2265 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2122265 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":212
2266 * if self.tail[0] < c'0' or self.tail[0] > c'9':2266 * if self.tail[0] < c'0' or self.tail[0] > c'9':
2267 * raise ValueError('key was not a simple string.')2267 * raise ValueError('key was not a simple string.')
2268 * key = self._decode_string() # <<<<<<<<<<<<<<2268 * key = self._decode_string() # <<<<<<<<<<<<<<
@@ -2275,7 +2275,7 @@
2275 __pyx_v_key = __pyx_t_5;2275 __pyx_v_key = __pyx_t_5;
2276 __pyx_t_5 = 0;2276 __pyx_t_5 = 0;
22772277
2278 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2132278 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":213
2279 * raise ValueError('key was not a simple string.')2279 * raise ValueError('key was not a simple string.')
2280 * key = self._decode_string()2280 * key = self._decode_string()
2281 * if lastkey >= key: # <<<<<<<<<<<<<<2281 * if lastkey >= key: # <<<<<<<<<<<<<<
@@ -2288,7 +2288,7 @@
2288 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;2288 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2289 if (__pyx_t_4) {2289 if (__pyx_t_4) {
22902290
2291 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2142291 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":214
2292 * key = self._decode_string()2292 * key = self._decode_string()
2293 * if lastkey >= key:2293 * if lastkey >= key:
2294 * raise ValueError('dict keys disordered') # <<<<<<<<<<<<<<2294 * raise ValueError('dict keys disordered') # <<<<<<<<<<<<<<
@@ -2310,7 +2310,7 @@
2310 }2310 }
2311 /*else*/ {2311 /*else*/ {
23122312
2313 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2162313 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":216
2314 * raise ValueError('dict keys disordered')2314 * raise ValueError('dict keys disordered')
2315 * else:2315 * else:
2316 * lastkey = key # <<<<<<<<<<<<<<2316 * lastkey = key # <<<<<<<<<<<<<<
@@ -2323,7 +2323,7 @@
2323 }2323 }
2324 __pyx_L7:;2324 __pyx_L7:;
23252325
2326 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2172326 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":217
2327 * else:2327 * else:
2328 * lastkey = key2328 * lastkey = key
2329 * value = self._decode_object() # <<<<<<<<<<<<<<2329 * value = self._decode_object() # <<<<<<<<<<<<<<
@@ -2336,7 +2336,7 @@
2336 __pyx_v_value = __pyx_t_1;2336 __pyx_v_value = __pyx_t_1;
2337 __pyx_t_1 = 0;2337 __pyx_t_1 = 0;
23382338
2339 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2182339 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":218
2340 * lastkey = key2340 * lastkey = key
2341 * value = self._decode_object()2341 * value = self._decode_object()
2342 * result[key] = value # <<<<<<<<<<<<<<2342 * result[key] = value # <<<<<<<<<<<<<<
@@ -2348,7 +2348,7 @@
2348 __pyx_L5:;2348 __pyx_L5:;
2349 }2349 }
23502350
2351 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2202351 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":220
2352 * result[key] = value2352 * result[key] = value
2353 * 2353 *
2354 * raise ValueError('malformed dict') # <<<<<<<<<<<<<<2354 * raise ValueError('malformed dict') # <<<<<<<<<<<<<<
@@ -2384,7 +2384,7 @@
2384 return __pyx_r;2384 return __pyx_r;
2385}2385}
23862386
2387/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2232387/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":223
2388 * 2388 *
2389 * 2389 *
2390 * def bdecode(object s): # <<<<<<<<<<<<<<2390 * def bdecode(object s): # <<<<<<<<<<<<<<
@@ -2401,7 +2401,7 @@
2401 __Pyx_RefNannySetupContext("bdecode");2401 __Pyx_RefNannySetupContext("bdecode");
2402 __pyx_self = __pyx_self;2402 __pyx_self = __pyx_self;
24032403
2404 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2252404 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":225
2405 * def bdecode(object s):2405 * def bdecode(object s):
2406 * """Decode string x to Python object"""2406 * """Decode string x to Python object"""
2407 * return Decoder(s).decode() # <<<<<<<<<<<<<<2407 * return Decoder(s).decode() # <<<<<<<<<<<<<<
@@ -2440,7 +2440,7 @@
2440 return __pyx_r;2440 return __pyx_r;
2441}2441}
24422442
2443/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2282443/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":228
2444 * 2444 *
2445 * 2445 *
2446 * def bdecode_as_tuple(object s): # <<<<<<<<<<<<<<2446 * def bdecode_as_tuple(object s): # <<<<<<<<<<<<<<
@@ -2457,7 +2457,7 @@
2457 __Pyx_RefNannySetupContext("bdecode_as_tuple");2457 __Pyx_RefNannySetupContext("bdecode_as_tuple");
2458 __pyx_self = __pyx_self;2458 __pyx_self = __pyx_self;
24592459
2460 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2302460 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":230
2461 * def bdecode_as_tuple(object s):2461 * def bdecode_as_tuple(object s):
2462 * """Decode string x to Python object, using tuples rather than lists."""2462 * """Decode string x to Python object, using tuples rather than lists."""
2463 * return Decoder(s, True).decode() # <<<<<<<<<<<<<<2463 * return Decoder(s, True).decode() # <<<<<<<<<<<<<<
@@ -2501,7 +2501,7 @@
2501 return __pyx_r;2501 return __pyx_r;
2502}2502}
25032503
2504/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2362504/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":236
2505 * __slots__ = ['bencoded']2505 * __slots__ = ['bencoded']
2506 * 2506 *
2507 * def __init__(self, s): # <<<<<<<<<<<<<<2507 * def __init__(self, s): # <<<<<<<<<<<<<<
@@ -2559,7 +2559,7 @@
2559 return NULL;2559 return NULL;
2560 __pyx_L4_argument_unpacking_done:;2560 __pyx_L4_argument_unpacking_done:;
25612561
2562 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2372562 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":237
2563 * 2563 *
2564 * def __init__(self, s):2564 * def __init__(self, s):
2565 * self.bencoded = s # <<<<<<<<<<<<<<2565 * self.bencoded = s # <<<<<<<<<<<<<<
@@ -2579,7 +2579,7 @@
2579 return __pyx_r;2579 return __pyx_r;
2580}2580}
25812581
2582/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2482582/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":248
2583 * """Bencode encoder"""2583 * """Bencode encoder"""
2584 * 2584 *
2585 * cdef readonly char *tail # <<<<<<<<<<<<<<2585 * cdef readonly char *tail # <<<<<<<<<<<<<<
@@ -2611,7 +2611,7 @@
2611 return __pyx_r;2611 return __pyx_r;
2612}2612}
26132613
2614/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2492614/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":249
2615 * 2615 *
2616 * cdef readonly char *tail2616 * cdef readonly char *tail
2617 * cdef readonly int size # <<<<<<<<<<<<<<2617 * cdef readonly int size # <<<<<<<<<<<<<<
@@ -2643,7 +2643,7 @@
2643 return __pyx_r;2643 return __pyx_r;
2644}2644}
26452645
2646/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2502646/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":250
2647 * cdef readonly char *tail2647 * cdef readonly char *tail
2648 * cdef readonly int size2648 * cdef readonly int size
2649 * cdef readonly char *buffer # <<<<<<<<<<<<<<2649 * cdef readonly char *buffer # <<<<<<<<<<<<<<
@@ -2675,7 +2675,7 @@
2675 return __pyx_r;2675 return __pyx_r;
2676}2676}
26772677
2678/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2512678/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":251
2679 * cdef readonly int size2679 * cdef readonly int size
2680 * cdef readonly char *buffer2680 * cdef readonly char *buffer
2681 * cdef readonly int maxsize # <<<<<<<<<<<<<<2681 * cdef readonly int maxsize # <<<<<<<<<<<<<<
@@ -2707,7 +2707,7 @@
2707 return __pyx_r;2707 return __pyx_r;
2708}2708}
27092709
2710/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2532710/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":253
2711 * cdef readonly int maxsize2711 * cdef readonly int maxsize
2712 * 2712 *
2713 * def __init__(self, int maxsize=INITSIZE): # <<<<<<<<<<<<<<2713 * def __init__(self, int maxsize=INITSIZE): # <<<<<<<<<<<<<<
@@ -2767,7 +2767,7 @@
2767 return -1;2767 return -1;
2768 __pyx_L4_argument_unpacking_done:;2768 __pyx_L4_argument_unpacking_done:;
27692769
2770 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2592770 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":259
2771 * cdef char *p2771 * cdef char *p
2772 * 2772 *
2773 * self.maxsize = 0 # <<<<<<<<<<<<<<2773 * self.maxsize = 0 # <<<<<<<<<<<<<<
@@ -2776,7 +2776,7 @@
2776 */2776 */
2777 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self)->maxsize = 0;2777 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self)->maxsize = 0;
27782778
2779 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2602779 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":260
2780 * 2780 *
2781 * self.maxsize = 02781 * self.maxsize = 0
2782 * self.size = 0 # <<<<<<<<<<<<<<2782 * self.size = 0 # <<<<<<<<<<<<<<
@@ -2785,7 +2785,7 @@
2785 */2785 */
2786 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self)->size = 0;2786 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self)->size = 0;
27872787
2788 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2612788 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":261
2789 * self.maxsize = 02789 * self.maxsize = 0
2790 * self.size = 02790 * self.size = 0
2791 * self.tail = NULL # <<<<<<<<<<<<<<2791 * self.tail = NULL # <<<<<<<<<<<<<<
@@ -2794,7 +2794,7 @@
2794 */2794 */
2795 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self)->tail = NULL;2795 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self)->tail = NULL;
27962796
2797 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2632797 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":263
2798 * self.tail = NULL2798 * self.tail = NULL
2799 * 2799 *
2800 * p = <char*>malloc(maxsize) # <<<<<<<<<<<<<<2800 * p = <char*>malloc(maxsize) # <<<<<<<<<<<<<<
@@ -2803,7 +2803,7 @@
2803 */2803 */
2804 __pyx_v_p = ((char *)malloc(__pyx_v_maxsize));2804 __pyx_v_p = ((char *)malloc(__pyx_v_maxsize));
28052805
2806 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2642806 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":264
2807 * 2807 *
2808 * p = <char*>malloc(maxsize)2808 * p = <char*>malloc(maxsize)
2809 * if p == NULL: # <<<<<<<<<<<<<<2809 * if p == NULL: # <<<<<<<<<<<<<<
@@ -2813,7 +2813,7 @@
2813 __pyx_t_1 = (__pyx_v_p == NULL);2813 __pyx_t_1 = (__pyx_v_p == NULL);
2814 if (__pyx_t_1) {2814 if (__pyx_t_1) {
28152815
2816 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2652816 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":265
2817 * p = <char*>malloc(maxsize)2817 * p = <char*>malloc(maxsize)
2818 * if p == NULL:2818 * if p == NULL:
2819 * raise MemoryError('Not enough memory to allocate buffer ' # <<<<<<<<<<<<<<2819 * raise MemoryError('Not enough memory to allocate buffer ' # <<<<<<<<<<<<<<
@@ -2835,7 +2835,7 @@
2835 }2835 }
2836 __pyx_L6:;2836 __pyx_L6:;
28372837
2838 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2672838 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":267
2839 * raise MemoryError('Not enough memory to allocate buffer '2839 * raise MemoryError('Not enough memory to allocate buffer '
2840 * 'for encoder')2840 * 'for encoder')
2841 * self.buffer = p # <<<<<<<<<<<<<<2841 * self.buffer = p # <<<<<<<<<<<<<<
@@ -2844,7 +2844,7 @@
2844 */2844 */
2845 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self)->buffer = __pyx_v_p;2845 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self)->buffer = __pyx_v_p;
28462846
2847 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2682847 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":268
2848 * 'for encoder')2848 * 'for encoder')
2849 * self.buffer = p2849 * self.buffer = p
2850 * self.maxsize = maxsize # <<<<<<<<<<<<<<2850 * self.maxsize = maxsize # <<<<<<<<<<<<<<
@@ -2853,7 +2853,7 @@
2853 */2853 */
2854 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self)->maxsize = __pyx_v_maxsize;2854 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self)->maxsize = __pyx_v_maxsize;
28552855
2856 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2692856 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":269
2857 * self.buffer = p2857 * self.buffer = p
2858 * self.maxsize = maxsize2858 * self.maxsize = maxsize
2859 * self.tail = p # <<<<<<<<<<<<<<2859 * self.tail = p # <<<<<<<<<<<<<<
@@ -2874,7 +2874,7 @@
2874 return __pyx_r;2874 return __pyx_r;
2875}2875}
28762876
2877/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2712877/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":271
2878 * self.tail = p2878 * self.tail = p
2879 * 2879 *
2880 * def __dealloc__(self): # <<<<<<<<<<<<<<2880 * def __dealloc__(self): # <<<<<<<<<<<<<<
@@ -2886,7 +2886,7 @@
2886static void __pyx_pf_6bzrlib_12_bencode_pyx_7Encoder___dealloc__(PyObject *__pyx_v_self) {2886static void __pyx_pf_6bzrlib_12_bencode_pyx_7Encoder___dealloc__(PyObject *__pyx_v_self) {
2887 __Pyx_RefNannySetupContext("__dealloc__");2887 __Pyx_RefNannySetupContext("__dealloc__");
28882888
2889 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2722889 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":272
2890 * 2890 *
2891 * def __dealloc__(self):2891 * def __dealloc__(self):
2892 * free(self.buffer) # <<<<<<<<<<<<<<2892 * free(self.buffer) # <<<<<<<<<<<<<<
@@ -2895,7 +2895,7 @@
2895 */2895 */
2896 free(((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self)->buffer);2896 free(((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self)->buffer);
28972897
2898 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2732898 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":273
2899 * def __dealloc__(self):2899 * def __dealloc__(self):
2900 * free(self.buffer)2900 * free(self.buffer)
2901 * self.buffer = NULL # <<<<<<<<<<<<<<2901 * self.buffer = NULL # <<<<<<<<<<<<<<
@@ -2904,7 +2904,7 @@
2904 */2904 */
2905 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self)->buffer = NULL;2905 ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self)->buffer = NULL;
29062906
2907 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2742907 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":274
2908 * free(self.buffer)2908 * free(self.buffer)
2909 * self.buffer = NULL2909 * self.buffer = NULL
2910 * self.maxsize = 0 # <<<<<<<<<<<<<<2910 * self.maxsize = 0 # <<<<<<<<<<<<<<
@@ -2916,7 +2916,7 @@
2916 __Pyx_RefNannyFinishContext();2916 __Pyx_RefNannyFinishContext();
2917}2917}
29182918
2919/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2762919/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":276
2920 * self.maxsize = 02920 * self.maxsize = 0
2921 * 2921 *
2922 * def __str__(self): # <<<<<<<<<<<<<<2922 * def __str__(self): # <<<<<<<<<<<<<<
@@ -2933,7 +2933,7 @@
2933 PyObject *__pyx_t_4 = NULL;2933 PyObject *__pyx_t_4 = NULL;
2934 __Pyx_RefNannySetupContext("__str__");2934 __Pyx_RefNannySetupContext("__str__");
29352935
2936 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2772936 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":277
2937 * 2937 *
2938 * def __str__(self):2938 * def __str__(self):
2939 * if self.buffer != NULL and self.size != 0: # <<<<<<<<<<<<<<2939 * if self.buffer != NULL and self.size != 0: # <<<<<<<<<<<<<<
@@ -2949,7 +2949,7 @@
2949 }2949 }
2950 if (__pyx_t_3) {2950 if (__pyx_t_3) {
29512951
2952 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2782952 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":278
2953 * def __str__(self):2953 * def __str__(self):
2954 * if self.buffer != NULL and self.size != 0:2954 * if self.buffer != NULL and self.size != 0:
2955 * return PyString_FromStringAndSize(self.buffer, self.size) # <<<<<<<<<<<<<<2955 * return PyString_FromStringAndSize(self.buffer, self.size) # <<<<<<<<<<<<<<
@@ -2966,7 +2966,7 @@
2966 }2966 }
2967 /*else*/ {2967 /*else*/ {
29682968
2969 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2802969 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":280
2970 * return PyString_FromStringAndSize(self.buffer, self.size)2970 * return PyString_FromStringAndSize(self.buffer, self.size)
2971 * else:2971 * else:
2972 * return '' # <<<<<<<<<<<<<<2972 * return '' # <<<<<<<<<<<<<<
@@ -2992,7 +2992,7 @@
2992 return __pyx_r;2992 return __pyx_r;
2993}2993}
29942994
2995/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2822995/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":282
2996 * return ''2996 * return ''
2997 * 2997 *
2998 * cdef int _ensure_buffer(self, int required) except 0: # <<<<<<<<<<<<<<2998 * cdef int _ensure_buffer(self, int required) except 0: # <<<<<<<<<<<<<<
@@ -3009,7 +3009,7 @@
3009 PyObject *__pyx_t_3 = NULL;3009 PyObject *__pyx_t_3 = NULL;
3010 __Pyx_RefNannySetupContext("_ensure_buffer");3010 __Pyx_RefNannySetupContext("_ensure_buffer");
30113011
3012 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2903012 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":290
3013 * cdef int new_size3013 * cdef int new_size
3014 * 3014 *
3015 * if self.size + required < self.maxsize: # <<<<<<<<<<<<<<3015 * if self.size + required < self.maxsize: # <<<<<<<<<<<<<<
@@ -3019,7 +3019,7 @@
3019 __pyx_t_1 = ((__pyx_v_self->size + __pyx_v_required) < __pyx_v_self->maxsize);3019 __pyx_t_1 = ((__pyx_v_self->size + __pyx_v_required) < __pyx_v_self->maxsize);
3020 if (__pyx_t_1) {3020 if (__pyx_t_1) {
30213021
3022 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2913022 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":291
3023 * 3023 *
3024 * if self.size + required < self.maxsize:3024 * if self.size + required < self.maxsize:
3025 * return 1 # <<<<<<<<<<<<<<3025 * return 1 # <<<<<<<<<<<<<<
@@ -3032,7 +3032,7 @@
3032 }3032 }
3033 __pyx_L3:;3033 __pyx_L3:;
30343034
3035 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2933035 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":293
3036 * return 13036 * return 1
3037 * 3037 *
3038 * new_size = self.maxsize # <<<<<<<<<<<<<<3038 * new_size = self.maxsize # <<<<<<<<<<<<<<
@@ -3041,7 +3041,7 @@
3041 */3041 */
3042 __pyx_v_new_size = __pyx_v_self->maxsize;3042 __pyx_v_new_size = __pyx_v_self->maxsize;
30433043
3044 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2943044 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":294
3045 * 3045 *
3046 * new_size = self.maxsize3046 * new_size = self.maxsize
3047 * while new_size < self.size + required: # <<<<<<<<<<<<<<3047 * while new_size < self.size + required: # <<<<<<<<<<<<<<
@@ -3052,7 +3052,7 @@
3052 __pyx_t_1 = (__pyx_v_new_size < (__pyx_v_self->size + __pyx_v_required));3052 __pyx_t_1 = (__pyx_v_new_size < (__pyx_v_self->size + __pyx_v_required));
3053 if (!__pyx_t_1) break;3053 if (!__pyx_t_1) break;
30543054
3055 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2953055 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":295
3056 * new_size = self.maxsize3056 * new_size = self.maxsize
3057 * while new_size < self.size + required:3057 * while new_size < self.size + required:
3058 * new_size = new_size * 2 # <<<<<<<<<<<<<<3058 * new_size = new_size * 2 # <<<<<<<<<<<<<<
@@ -3062,7 +3062,7 @@
3062 __pyx_v_new_size = (__pyx_v_new_size * 2);3062 __pyx_v_new_size = (__pyx_v_new_size * 2);
3063 }3063 }
30643064
3065 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2963065 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":296
3066 * while new_size < self.size + required:3066 * while new_size < self.size + required:
3067 * new_size = new_size * 23067 * new_size = new_size * 2
3068 * new_buffer = <char*>realloc(self.buffer, <size_t>new_size) # <<<<<<<<<<<<<<3068 * new_buffer = <char*>realloc(self.buffer, <size_t>new_size) # <<<<<<<<<<<<<<
@@ -3071,7 +3071,7 @@
3071 */3071 */
3072 __pyx_v_new_buffer = ((char *)realloc(__pyx_v_self->buffer, ((size_t)__pyx_v_new_size)));3072 __pyx_v_new_buffer = ((char *)realloc(__pyx_v_self->buffer, ((size_t)__pyx_v_new_size)));
30733073
3074 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2973074 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":297
3075 * new_size = new_size * 23075 * new_size = new_size * 2
3076 * new_buffer = <char*>realloc(self.buffer, <size_t>new_size)3076 * new_buffer = <char*>realloc(self.buffer, <size_t>new_size)
3077 * if new_buffer == NULL: # <<<<<<<<<<<<<<3077 * if new_buffer == NULL: # <<<<<<<<<<<<<<
@@ -3081,7 +3081,7 @@
3081 __pyx_t_1 = (__pyx_v_new_buffer == NULL);3081 __pyx_t_1 = (__pyx_v_new_buffer == NULL);
3082 if (__pyx_t_1) {3082 if (__pyx_t_1) {
30833083
3084 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2983084 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":298
3085 * new_buffer = <char*>realloc(self.buffer, <size_t>new_size)3085 * new_buffer = <char*>realloc(self.buffer, <size_t>new_size)
3086 * if new_buffer == NULL:3086 * if new_buffer == NULL:
3087 * raise MemoryError('Cannot realloc buffer for encoder') # <<<<<<<<<<<<<<3087 * raise MemoryError('Cannot realloc buffer for encoder') # <<<<<<<<<<<<<<
@@ -3103,7 +3103,7 @@
3103 }3103 }
3104 __pyx_L6:;3104 __pyx_L6:;
31053105
3106 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3003106 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":300
3107 * raise MemoryError('Cannot realloc buffer for encoder')3107 * raise MemoryError('Cannot realloc buffer for encoder')
3108 * 3108 *
3109 * self.buffer = new_buffer # <<<<<<<<<<<<<<3109 * self.buffer = new_buffer # <<<<<<<<<<<<<<
@@ -3112,7 +3112,7 @@
3112 */3112 */
3113 __pyx_v_self->buffer = __pyx_v_new_buffer;3113 __pyx_v_self->buffer = __pyx_v_new_buffer;
31143114
3115 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3013115 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":301
3116 * 3116 *
3117 * self.buffer = new_buffer3117 * self.buffer = new_buffer
3118 * self.maxsize = new_size # <<<<<<<<<<<<<<3118 * self.maxsize = new_size # <<<<<<<<<<<<<<
@@ -3121,7 +3121,7 @@
3121 */3121 */
3122 __pyx_v_self->maxsize = __pyx_v_new_size;3122 __pyx_v_self->maxsize = __pyx_v_new_size;
31233123
3124 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3023124 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":302
3125 * self.buffer = new_buffer3125 * self.buffer = new_buffer
3126 * self.maxsize = new_size3126 * self.maxsize = new_size
3127 * self.tail = &new_buffer[self.size] # <<<<<<<<<<<<<<3127 * self.tail = &new_buffer[self.size] # <<<<<<<<<<<<<<
@@ -3130,7 +3130,7 @@
3130 */3130 */
3131 __pyx_v_self->tail = (&(__pyx_v_new_buffer[__pyx_v_self->size]));3131 __pyx_v_self->tail = (&(__pyx_v_new_buffer[__pyx_v_self->size]));
31323132
3133 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3033133 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":303
3134 * self.maxsize = new_size3134 * self.maxsize = new_size
3135 * self.tail = &new_buffer[self.size]3135 * self.tail = &new_buffer[self.size]
3136 * return 1 # <<<<<<<<<<<<<<3136 * return 1 # <<<<<<<<<<<<<<
@@ -3152,7 +3152,7 @@
3152 return __pyx_r;3152 return __pyx_r;
3153}3153}
31543154
3155/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3053155/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":305
3156 * return 13156 * return 1
3157 * 3157 *
3158 * cdef int _encode_int(self, int x) except 0: # <<<<<<<<<<<<<<3158 * cdef int _encode_int(self, int x) except 0: # <<<<<<<<<<<<<<
@@ -3169,7 +3169,7 @@
3169 PyObject *__pyx_t_4 = NULL;3169 PyObject *__pyx_t_4 = NULL;
3170 __Pyx_RefNannySetupContext("_encode_int");3170 __Pyx_RefNannySetupContext("_encode_int");
31713171
3172 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3103172 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":310
3173 * """3173 * """
3174 * cdef int n3174 * cdef int n
3175 * self._ensure_buffer(INT_BUF_SIZE) # <<<<<<<<<<<<<<3175 * self._ensure_buffer(INT_BUF_SIZE) # <<<<<<<<<<<<<<
@@ -3178,7 +3178,7 @@
3178 */3178 */
3179 __pyx_t_1 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_ensure_buffer(__pyx_v_self, __pyx_e_6bzrlib_12_bencode_pyx_INT_BUF_SIZE); if (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 310; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3179 __pyx_t_1 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_ensure_buffer(__pyx_v_self, __pyx_e_6bzrlib_12_bencode_pyx_INT_BUF_SIZE); if (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 310; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
31803180
3181 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3113181 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":311
3182 * cdef int n3182 * cdef int n
3183 * self._ensure_buffer(INT_BUF_SIZE)3183 * self._ensure_buffer(INT_BUF_SIZE)
3184 * n = snprintf(self.tail, INT_BUF_SIZE, "i%de", x) # <<<<<<<<<<<<<<3184 * n = snprintf(self.tail, INT_BUF_SIZE, "i%de", x) # <<<<<<<<<<<<<<
@@ -3187,7 +3187,7 @@
3187 */3187 */
3188 __pyx_v_n = snprintf(__pyx_v_self->tail, __pyx_e_6bzrlib_12_bencode_pyx_INT_BUF_SIZE, __pyx_k_18, __pyx_v_x);3188 __pyx_v_n = snprintf(__pyx_v_self->tail, __pyx_e_6bzrlib_12_bencode_pyx_INT_BUF_SIZE, __pyx_k_18, __pyx_v_x);
31893189
3190 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3123190 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":312
3191 * self._ensure_buffer(INT_BUF_SIZE)3191 * self._ensure_buffer(INT_BUF_SIZE)
3192 * n = snprintf(self.tail, INT_BUF_SIZE, "i%de", x)3192 * n = snprintf(self.tail, INT_BUF_SIZE, "i%de", x)
3193 * if n < 0: # <<<<<<<<<<<<<<3193 * if n < 0: # <<<<<<<<<<<<<<
@@ -3197,7 +3197,7 @@
3197 __pyx_t_2 = (__pyx_v_n < 0);3197 __pyx_t_2 = (__pyx_v_n < 0);
3198 if (__pyx_t_2) {3198 if (__pyx_t_2) {
31993199
3200 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3133200 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":313
3201 * n = snprintf(self.tail, INT_BUF_SIZE, "i%de", x)3201 * n = snprintf(self.tail, INT_BUF_SIZE, "i%de", x)
3202 * if n < 0:3202 * if n < 0:
3203 * raise MemoryError('int %d too big to encode' % x) # <<<<<<<<<<<<<<3203 * raise MemoryError('int %d too big to encode' % x) # <<<<<<<<<<<<<<
@@ -3224,7 +3224,7 @@
3224 }3224 }
3225 __pyx_L3:;3225 __pyx_L3:;
32263226
3227 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3143227 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":314
3228 * if n < 0:3228 * if n < 0:
3229 * raise MemoryError('int %d too big to encode' % x)3229 * raise MemoryError('int %d too big to encode' % x)
3230 * E_UPDATE_TAIL(self, n) # <<<<<<<<<<<<<<3230 * E_UPDATE_TAIL(self, n) # <<<<<<<<<<<<<<
@@ -3233,7 +3233,7 @@
3233 */3233 */
3234 E_UPDATE_TAIL(__pyx_v_self, __pyx_v_n);3234 E_UPDATE_TAIL(__pyx_v_self, __pyx_v_n);
32353235
3236 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3153236 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":315
3237 * raise MemoryError('int %d too big to encode' % x)3237 * raise MemoryError('int %d too big to encode' % x)
3238 * E_UPDATE_TAIL(self, n)3238 * E_UPDATE_TAIL(self, n)
3239 * return 1 # <<<<<<<<<<<<<<3239 * return 1 # <<<<<<<<<<<<<<
@@ -3255,7 +3255,7 @@
3255 return __pyx_r;3255 return __pyx_r;
3256}3256}
32573257
3258/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3173258/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":317
3259 * return 13259 * return 1
3260 * 3260 *
3261 * cdef int _encode_long(self, x) except 0: # <<<<<<<<<<<<<<3261 * cdef int _encode_long(self, x) except 0: # <<<<<<<<<<<<<<
@@ -3271,7 +3271,7 @@
3271 int __pyx_t_4;3271 int __pyx_t_4;
3272 __Pyx_RefNannySetupContext("_encode_long");3272 __Pyx_RefNannySetupContext("_encode_long");
32733273
3274 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3183274 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":318
3275 * 3275 *
3276 * cdef int _encode_long(self, x) except 0:3276 * cdef int _encode_long(self, x) except 0:
3277 * return self._append_string(''.join(('i', str(x), 'e'))) # <<<<<<<<<<<<<<3277 * return self._append_string(''.join(('i', str(x), 'e'))) # <<<<<<<<<<<<<<
@@ -3326,7 +3326,7 @@
3326 return __pyx_r;3326 return __pyx_r;
3327}3327}
33283328
3329/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3203329/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":320
3330 * return self._append_string(''.join(('i', str(x), 'e')))3330 * return self._append_string(''.join(('i', str(x), 'e')))
3331 * 3331 *
3332 * cdef int _append_string(self, s) except 0: # <<<<<<<<<<<<<<3332 * cdef int _append_string(self, s) except 0: # <<<<<<<<<<<<<<
@@ -3342,7 +3342,7 @@
3342 char *__pyx_t_3;3342 char *__pyx_t_3;
3343 __Pyx_RefNannySetupContext("_append_string");3343 __Pyx_RefNannySetupContext("_append_string");
33443344
3345 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3223345 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":322
3346 * cdef int _append_string(self, s) except 0:3346 * cdef int _append_string(self, s) except 0:
3347 * cdef Py_ssize_t n3347 * cdef Py_ssize_t n
3348 * n = PyString_GET_SIZE(s) # <<<<<<<<<<<<<<3348 * n = PyString_GET_SIZE(s) # <<<<<<<<<<<<<<
@@ -3352,7 +3352,7 @@
3352 __pyx_t_1 = PyString_GET_SIZE(__pyx_v_s); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3352 __pyx_t_1 = PyString_GET_SIZE(__pyx_v_s); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3353 __pyx_v_n = __pyx_t_1;3353 __pyx_v_n = __pyx_t_1;
33543354
3355 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3233355 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":323
3356 * cdef Py_ssize_t n3356 * cdef Py_ssize_t n
3357 * n = PyString_GET_SIZE(s)3357 * n = PyString_GET_SIZE(s)
3358 * self._ensure_buffer(n) # <<<<<<<<<<<<<<3358 * self._ensure_buffer(n) # <<<<<<<<<<<<<<
@@ -3361,7 +3361,7 @@
3361 */3361 */
3362 __pyx_t_2 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_ensure_buffer(__pyx_v_self, __pyx_v_n); if (unlikely(__pyx_t_2 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3362 __pyx_t_2 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_ensure_buffer(__pyx_v_self, __pyx_v_n); if (unlikely(__pyx_t_2 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
33633363
3364 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3243364 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":324
3365 * n = PyString_GET_SIZE(s)3365 * n = PyString_GET_SIZE(s)
3366 * self._ensure_buffer(n)3366 * self._ensure_buffer(n)
3367 * memcpy(self.tail, PyString_AS_STRING(s), n) # <<<<<<<<<<<<<<3367 * memcpy(self.tail, PyString_AS_STRING(s), n) # <<<<<<<<<<<<<<
@@ -3371,7 +3371,7 @@
3371 __pyx_t_3 = PyString_AS_STRING(__pyx_v_s); if (unlikely(__pyx_t_3 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3371 __pyx_t_3 = PyString_AS_STRING(__pyx_v_s); if (unlikely(__pyx_t_3 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3372 memcpy(__pyx_v_self->tail, __pyx_t_3, __pyx_v_n);3372 memcpy(__pyx_v_self->tail, __pyx_t_3, __pyx_v_n);
33733373
3374 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3253374 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":325
3375 * self._ensure_buffer(n)3375 * self._ensure_buffer(n)
3376 * memcpy(self.tail, PyString_AS_STRING(s), n)3376 * memcpy(self.tail, PyString_AS_STRING(s), n)
3377 * E_UPDATE_TAIL(self, n) # <<<<<<<<<<<<<<3377 * E_UPDATE_TAIL(self, n) # <<<<<<<<<<<<<<
@@ -3380,7 +3380,7 @@
3380 */3380 */
3381 E_UPDATE_TAIL(__pyx_v_self, __pyx_v_n);3381 E_UPDATE_TAIL(__pyx_v_self, __pyx_v_n);
33823382
3383 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3263383 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":326
3384 * memcpy(self.tail, PyString_AS_STRING(s), n)3384 * memcpy(self.tail, PyString_AS_STRING(s), n)
3385 * E_UPDATE_TAIL(self, n)3385 * E_UPDATE_TAIL(self, n)
3386 * return 1 # <<<<<<<<<<<<<<3386 * return 1 # <<<<<<<<<<<<<<
@@ -3400,7 +3400,7 @@
3400 return __pyx_r;3400 return __pyx_r;
3401}3401}
34023402
3403/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3283403/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":328
3404 * return 13404 * return 1
3405 * 3405 *
3406 * cdef int _encode_string(self, x) except 0: # <<<<<<<<<<<<<<3406 * cdef int _encode_string(self, x) except 0: # <<<<<<<<<<<<<<
@@ -3420,7 +3420,7 @@
3420 char *__pyx_t_6;3420 char *__pyx_t_6;
3421 __Pyx_RefNannySetupContext("_encode_string");3421 __Pyx_RefNannySetupContext("_encode_string");
34223422
3423 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3313423 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":331
3424 * cdef int n3424 * cdef int n
3425 * cdef Py_ssize_t x_len3425 * cdef Py_ssize_t x_len
3426 * x_len = PyString_GET_SIZE(x) # <<<<<<<<<<<<<<3426 * x_len = PyString_GET_SIZE(x) # <<<<<<<<<<<<<<
@@ -3430,7 +3430,7 @@
3430 __pyx_t_1 = PyString_GET_SIZE(__pyx_v_x); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3430 __pyx_t_1 = PyString_GET_SIZE(__pyx_v_x); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3431 __pyx_v_x_len = __pyx_t_1;3431 __pyx_v_x_len = __pyx_t_1;
34323432
3433 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3323433 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":332
3434 * cdef Py_ssize_t x_len3434 * cdef Py_ssize_t x_len
3435 * x_len = PyString_GET_SIZE(x)3435 * x_len = PyString_GET_SIZE(x)
3436 * self._ensure_buffer(x_len + INT_BUF_SIZE) # <<<<<<<<<<<<<<3436 * self._ensure_buffer(x_len + INT_BUF_SIZE) # <<<<<<<<<<<<<<
@@ -3439,7 +3439,7 @@
3439 */3439 */
3440 __pyx_t_2 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_ensure_buffer(__pyx_v_self, (__pyx_v_x_len + __pyx_e_6bzrlib_12_bencode_pyx_INT_BUF_SIZE)); if (unlikely(__pyx_t_2 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3440 __pyx_t_2 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_ensure_buffer(__pyx_v_self, (__pyx_v_x_len + __pyx_e_6bzrlib_12_bencode_pyx_INT_BUF_SIZE)); if (unlikely(__pyx_t_2 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
34413441
3442 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3333442 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":333
3443 * x_len = PyString_GET_SIZE(x)3443 * x_len = PyString_GET_SIZE(x)
3444 * self._ensure_buffer(x_len + INT_BUF_SIZE)3444 * self._ensure_buffer(x_len + INT_BUF_SIZE)
3445 * n = snprintf(self.tail, INT_BUF_SIZE, '%d:', x_len) # <<<<<<<<<<<<<<3445 * n = snprintf(self.tail, INT_BUF_SIZE, '%d:', x_len) # <<<<<<<<<<<<<<
@@ -3448,7 +3448,7 @@
3448 */3448 */
3449 __pyx_v_n = snprintf(__pyx_v_self->tail, __pyx_e_6bzrlib_12_bencode_pyx_INT_BUF_SIZE, __pyx_k_20, __pyx_v_x_len);3449 __pyx_v_n = snprintf(__pyx_v_self->tail, __pyx_e_6bzrlib_12_bencode_pyx_INT_BUF_SIZE, __pyx_k_20, __pyx_v_x_len);
34503450
3451 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3343451 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":334
3452 * self._ensure_buffer(x_len + INT_BUF_SIZE)3452 * self._ensure_buffer(x_len + INT_BUF_SIZE)
3453 * n = snprintf(self.tail, INT_BUF_SIZE, '%d:', x_len)3453 * n = snprintf(self.tail, INT_BUF_SIZE, '%d:', x_len)
3454 * if n < 0: # <<<<<<<<<<<<<<3454 * if n < 0: # <<<<<<<<<<<<<<
@@ -3458,7 +3458,7 @@
3458 __pyx_t_3 = (__pyx_v_n < 0);3458 __pyx_t_3 = (__pyx_v_n < 0);
3459 if (__pyx_t_3) {3459 if (__pyx_t_3) {
34603460
3461 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3353461 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":335
3462 * n = snprintf(self.tail, INT_BUF_SIZE, '%d:', x_len)3462 * n = snprintf(self.tail, INT_BUF_SIZE, '%d:', x_len)
3463 * if n < 0:3463 * if n < 0:
3464 * raise MemoryError('string %s too big to encode' % x) # <<<<<<<<<<<<<<3464 * raise MemoryError('string %s too big to encode' % x) # <<<<<<<<<<<<<<
@@ -3482,7 +3482,7 @@
3482 }3482 }
3483 __pyx_L3:;3483 __pyx_L3:;
34843484
3485 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3363485 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":336
3486 * if n < 0:3486 * if n < 0:
3487 * raise MemoryError('string %s too big to encode' % x)3487 * raise MemoryError('string %s too big to encode' % x)
3488 * memcpy(<void *>(self.tail+n), PyString_AS_STRING(x), x_len) # <<<<<<<<<<<<<<3488 * memcpy(<void *>(self.tail+n), PyString_AS_STRING(x), x_len) # <<<<<<<<<<<<<<
@@ -3492,7 +3492,7 @@
3492 __pyx_t_6 = PyString_AS_STRING(__pyx_v_x); if (unlikely(__pyx_t_6 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3492 __pyx_t_6 = PyString_AS_STRING(__pyx_v_x); if (unlikely(__pyx_t_6 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3493 memcpy(((void *)(__pyx_v_self->tail + __pyx_v_n)), __pyx_t_6, __pyx_v_x_len);3493 memcpy(((void *)(__pyx_v_self->tail + __pyx_v_n)), __pyx_t_6, __pyx_v_x_len);
34943494
3495 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3373495 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":337
3496 * raise MemoryError('string %s too big to encode' % x)3496 * raise MemoryError('string %s too big to encode' % x)
3497 * memcpy(<void *>(self.tail+n), PyString_AS_STRING(x), x_len)3497 * memcpy(<void *>(self.tail+n), PyString_AS_STRING(x), x_len)
3498 * E_UPDATE_TAIL(self, n + x_len) # <<<<<<<<<<<<<<3498 * E_UPDATE_TAIL(self, n + x_len) # <<<<<<<<<<<<<<
@@ -3501,7 +3501,7 @@
3501 */3501 */
3502 E_UPDATE_TAIL(__pyx_v_self, (__pyx_v_n + __pyx_v_x_len));3502 E_UPDATE_TAIL(__pyx_v_self, (__pyx_v_n + __pyx_v_x_len));
35033503
3504 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3383504 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":338
3505 * memcpy(<void *>(self.tail+n), PyString_AS_STRING(x), x_len)3505 * memcpy(<void *>(self.tail+n), PyString_AS_STRING(x), x_len)
3506 * E_UPDATE_TAIL(self, n + x_len)3506 * E_UPDATE_TAIL(self, n + x_len)
3507 * return 1 # <<<<<<<<<<<<<<3507 * return 1 # <<<<<<<<<<<<<<
@@ -3523,7 +3523,7 @@
3523 return __pyx_r;3523 return __pyx_r;
3524}3524}
35253525
3526/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3403526/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":340
3527 * return 13527 * return 1
3528 * 3528 *
3529 * cdef int _encode_list(self, x) except 0: # <<<<<<<<<<<<<<3529 * cdef int _encode_list(self, x) except 0: # <<<<<<<<<<<<<<
@@ -3543,7 +3543,7 @@
3543 __Pyx_RefNannySetupContext("_encode_list");3543 __Pyx_RefNannySetupContext("_encode_list");
3544 __pyx_v_i = Py_None; __Pyx_INCREF(Py_None);3544 __pyx_v_i = Py_None; __Pyx_INCREF(Py_None);
35453545
3546 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3413546 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":341
3547 * 3547 *
3548 * cdef int _encode_list(self, x) except 0:3548 * cdef int _encode_list(self, x) except 0:
3549 * self._ensure_buffer(1) # <<<<<<<<<<<<<<3549 * self._ensure_buffer(1) # <<<<<<<<<<<<<<
@@ -3552,7 +3552,7 @@
3552 */3552 */
3553 __pyx_t_1 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_ensure_buffer(__pyx_v_self, 1); if (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3553 __pyx_t_1 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_ensure_buffer(__pyx_v_self, 1); if (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
35543554
3555 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3423555 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":342
3556 * cdef int _encode_list(self, x) except 0:3556 * cdef int _encode_list(self, x) except 0:
3557 * self._ensure_buffer(1)3557 * self._ensure_buffer(1)
3558 * self.tail[0] = c'l' # <<<<<<<<<<<<<<3558 * self.tail[0] = c'l' # <<<<<<<<<<<<<<
@@ -3561,7 +3561,7 @@
3561 */3561 */
3562 (__pyx_v_self->tail[0]) = 'l';3562 (__pyx_v_self->tail[0]) = 'l';
35633563
3564 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3433564 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":343
3565 * self._ensure_buffer(1)3565 * self._ensure_buffer(1)
3566 * self.tail[0] = c'l'3566 * self.tail[0] = c'l'
3567 * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<3567 * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<
@@ -3570,7 +3570,7 @@
3570 */3570 */
3571 E_UPDATE_TAIL(__pyx_v_self, 1);3571 E_UPDATE_TAIL(__pyx_v_self, 1);
35723572
3573 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3453573 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":345
3574 * E_UPDATE_TAIL(self, 1)3574 * E_UPDATE_TAIL(self, 1)
3575 * 3575 *
3576 * for i in x: # <<<<<<<<<<<<<<3576 * for i in x: # <<<<<<<<<<<<<<
@@ -3602,7 +3602,7 @@
3602 __pyx_v_i = __pyx_t_4;3602 __pyx_v_i = __pyx_t_4;
3603 __pyx_t_4 = 0;3603 __pyx_t_4 = 0;
36043604
3605 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3463605 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":346
3606 * 3606 *
3607 * for i in x:3607 * for i in x:
3608 * self.process(i) # <<<<<<<<<<<<<<3608 * self.process(i) # <<<<<<<<<<<<<<
@@ -3624,7 +3624,7 @@
3624 }3624 }
3625 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;3625 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
36263626
3627 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3483627 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":348
3628 * self.process(i)3628 * self.process(i)
3629 * 3629 *
3630 * self._ensure_buffer(1) # <<<<<<<<<<<<<<3630 * self._ensure_buffer(1) # <<<<<<<<<<<<<<
@@ -3633,7 +3633,7 @@
3633 */3633 */
3634 __pyx_t_1 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_ensure_buffer(__pyx_v_self, 1); if (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3634 __pyx_t_1 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_ensure_buffer(__pyx_v_self, 1); if (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
36353635
3636 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3493636 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":349
3637 * 3637 *
3638 * self._ensure_buffer(1)3638 * self._ensure_buffer(1)
3639 * self.tail[0] = c'e' # <<<<<<<<<<<<<<3639 * self.tail[0] = c'e' # <<<<<<<<<<<<<<
@@ -3642,7 +3642,7 @@
3642 */3642 */
3643 (__pyx_v_self->tail[0]) = 'e';3643 (__pyx_v_self->tail[0]) = 'e';
36443644
3645 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3503645 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":350
3646 * self._ensure_buffer(1)3646 * self._ensure_buffer(1)
3647 * self.tail[0] = c'e'3647 * self.tail[0] = c'e'
3648 * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<3648 * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<
@@ -3651,7 +3651,7 @@
3651 */3651 */
3652 E_UPDATE_TAIL(__pyx_v_self, 1);3652 E_UPDATE_TAIL(__pyx_v_self, 1);
36533653
3654 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3513654 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":351
3655 * self.tail[0] = c'e'3655 * self.tail[0] = c'e'
3656 * E_UPDATE_TAIL(self, 1)3656 * E_UPDATE_TAIL(self, 1)
3657 * return 1 # <<<<<<<<<<<<<<3657 * return 1 # <<<<<<<<<<<<<<
@@ -3676,7 +3676,7 @@
3676 return __pyx_r;3676 return __pyx_r;
3677}3677}
36783678
3679/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3533679/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":353
3680 * return 13680 * return 1
3681 * 3681 *
3682 * cdef int _encode_dict(self, x) except 0: # <<<<<<<<<<<<<<3682 * cdef int _encode_dict(self, x) except 0: # <<<<<<<<<<<<<<
@@ -3699,7 +3699,7 @@
3699 __pyx_v_keys = Py_None; __Pyx_INCREF(Py_None);3699 __pyx_v_keys = Py_None; __Pyx_INCREF(Py_None);
3700 __pyx_v_k = Py_None; __Pyx_INCREF(Py_None);3700 __pyx_v_k = Py_None; __Pyx_INCREF(Py_None);
37013701
3702 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3543702 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":354
3703 * 3703 *
3704 * cdef int _encode_dict(self, x) except 0:3704 * cdef int _encode_dict(self, x) except 0:
3705 * self._ensure_buffer(1) # <<<<<<<<<<<<<<3705 * self._ensure_buffer(1) # <<<<<<<<<<<<<<
@@ -3708,7 +3708,7 @@
3708 */3708 */
3709 __pyx_t_1 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_ensure_buffer(__pyx_v_self, 1); if (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3709 __pyx_t_1 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_ensure_buffer(__pyx_v_self, 1); if (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
37103710
3711 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3553711 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":355
3712 * cdef int _encode_dict(self, x) except 0:3712 * cdef int _encode_dict(self, x) except 0:
3713 * self._ensure_buffer(1)3713 * self._ensure_buffer(1)
3714 * self.tail[0] = c'd' # <<<<<<<<<<<<<<3714 * self.tail[0] = c'd' # <<<<<<<<<<<<<<
@@ -3717,7 +3717,7 @@
3717 */3717 */
3718 (__pyx_v_self->tail[0]) = 'd';3718 (__pyx_v_self->tail[0]) = 'd';
37193719
3720 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3563720 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":356
3721 * self._ensure_buffer(1)3721 * self._ensure_buffer(1)
3722 * self.tail[0] = c'd'3722 * self.tail[0] = c'd'
3723 * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<3723 * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<
@@ -3726,7 +3726,7 @@
3726 */3726 */
3727 E_UPDATE_TAIL(__pyx_v_self, 1);3727 E_UPDATE_TAIL(__pyx_v_self, 1);
37283728
3729 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3583729 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":358
3730 * E_UPDATE_TAIL(self, 1)3730 * E_UPDATE_TAIL(self, 1)
3731 * 3731 *
3732 * keys = x.keys() # <<<<<<<<<<<<<<3732 * keys = x.keys() # <<<<<<<<<<<<<<
@@ -3742,7 +3742,7 @@
3742 __pyx_v_keys = __pyx_t_3;3742 __pyx_v_keys = __pyx_t_3;
3743 __pyx_t_3 = 0;3743 __pyx_t_3 = 0;
37443744
3745 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3593745 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":359
3746 * 3746 *
3747 * keys = x.keys()3747 * keys = x.keys()
3748 * keys.sort() # <<<<<<<<<<<<<<3748 * keys.sort() # <<<<<<<<<<<<<<
@@ -3756,7 +3756,7 @@
3756 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;3756 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3757 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;3757 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
37583758
3759 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3603759 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":360
3760 * keys = x.keys()3760 * keys = x.keys()
3761 * keys.sort()3761 * keys.sort()
3762 * for k in keys: # <<<<<<<<<<<<<<3762 * for k in keys: # <<<<<<<<<<<<<<
@@ -3788,7 +3788,7 @@
3788 __pyx_v_k = __pyx_t_3;3788 __pyx_v_k = __pyx_t_3;
3789 __pyx_t_3 = 0;3789 __pyx_t_3 = 0;
37903790
3791 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3613791 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":361
3792 * keys.sort()3792 * keys.sort()
3793 * for k in keys:3793 * for k in keys:
3794 * if not PyString_CheckExact(k): # <<<<<<<<<<<<<<3794 * if not PyString_CheckExact(k): # <<<<<<<<<<<<<<
@@ -3798,7 +3798,7 @@
3798 __pyx_t_5 = (!PyString_CheckExact(__pyx_v_k));3798 __pyx_t_5 = (!PyString_CheckExact(__pyx_v_k));
3799 if (__pyx_t_5) {3799 if (__pyx_t_5) {
38003800
3801 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3623801 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":362
3802 * for k in keys:3802 * for k in keys:
3803 * if not PyString_CheckExact(k):3803 * if not PyString_CheckExact(k):
3804 * raise TypeError('key in dict should be string') # <<<<<<<<<<<<<<3804 * raise TypeError('key in dict should be string') # <<<<<<<<<<<<<<
@@ -3820,7 +3820,7 @@
3820 }3820 }
3821 __pyx_L5:;3821 __pyx_L5:;
38223822
3823 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3633823 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":363
3824 * if not PyString_CheckExact(k):3824 * if not PyString_CheckExact(k):
3825 * raise TypeError('key in dict should be string')3825 * raise TypeError('key in dict should be string')
3826 * self._encode_string(k) # <<<<<<<<<<<<<<3826 * self._encode_string(k) # <<<<<<<<<<<<<<
@@ -3829,7 +3829,7 @@
3829 */3829 */
3830 __pyx_t_1 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_encode_string(__pyx_v_self, __pyx_v_k); if (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3830 __pyx_t_1 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_encode_string(__pyx_v_self, __pyx_v_k); if (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
38313831
3832 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3643832 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":364
3833 * raise TypeError('key in dict should be string')3833 * raise TypeError('key in dict should be string')
3834 * self._encode_string(k)3834 * self._encode_string(k)
3835 * self.process(x[k]) # <<<<<<<<<<<<<<3835 * self.process(x[k]) # <<<<<<<<<<<<<<
@@ -3853,7 +3853,7 @@
3853 }3853 }
3854 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;3854 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
38553855
3856 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3663856 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":366
3857 * self.process(x[k])3857 * self.process(x[k])
3858 * 3858 *
3859 * self._ensure_buffer(1) # <<<<<<<<<<<<<<3859 * self._ensure_buffer(1) # <<<<<<<<<<<<<<
@@ -3862,7 +3862,7 @@
3862 */3862 */
3863 __pyx_t_1 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_ensure_buffer(__pyx_v_self, 1); if (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3863 __pyx_t_1 = ((struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *)__pyx_v_self->__pyx_vtab)->_ensure_buffer(__pyx_v_self, 1); if (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
38643864
3865 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3673865 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":367
3866 * 3866 *
3867 * self._ensure_buffer(1)3867 * self._ensure_buffer(1)
3868 * self.tail[0] = c'e' # <<<<<<<<<<<<<<3868 * self.tail[0] = c'e' # <<<<<<<<<<<<<<
@@ -3871,7 +3871,7 @@
3871 */3871 */
3872 (__pyx_v_self->tail[0]) = 'e';3872 (__pyx_v_self->tail[0]) = 'e';
38733873
3874 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3683874 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":368
3875 * self._ensure_buffer(1)3875 * self._ensure_buffer(1)
3876 * self.tail[0] = c'e'3876 * self.tail[0] = c'e'
3877 * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<3877 * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<<
@@ -3880,7 +3880,7 @@
3880 */3880 */
3881 E_UPDATE_TAIL(__pyx_v_self, 1);3881 E_UPDATE_TAIL(__pyx_v_self, 1);
38823882
3883 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3693883 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":369
3884 * self.tail[0] = c'e'3884 * self.tail[0] = c'e'
3885 * E_UPDATE_TAIL(self, 1)3885 * E_UPDATE_TAIL(self, 1)
3886 * return 1 # <<<<<<<<<<<<<<3886 * return 1 # <<<<<<<<<<<<<<
@@ -3906,7 +3906,7 @@
3906 return __pyx_r;3906 return __pyx_r;
3907}3907}
39083908
3909/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3713909/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":371
3910 * return 13910 * return 1
3911 * 3911 *
3912 * def process(self, object x): # <<<<<<<<<<<<<<3912 * def process(self, object x): # <<<<<<<<<<<<<<
@@ -3926,7 +3926,7 @@
3926 int __pyx_t_7;3926 int __pyx_t_7;
3927 __Pyx_RefNannySetupContext("process");3927 __Pyx_RefNannySetupContext("process");
39283928
3929 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3723929 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":372
3930 * 3930 *
3931 * def process(self, object x):3931 * def process(self, object x):
3932 * if Py_EnterRecursiveCall("encode"): # <<<<<<<<<<<<<<3932 * if Py_EnterRecursiveCall("encode"): # <<<<<<<<<<<<<<
@@ -3936,7 +3936,7 @@
3936 __pyx_t_1 = Py_EnterRecursiveCall(__pyx_k__encode);3936 __pyx_t_1 = Py_EnterRecursiveCall(__pyx_k__encode);
3937 if (__pyx_t_1) {3937 if (__pyx_t_1) {
39383938
3939 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3733939 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":373
3940 * def process(self, object x):3940 * def process(self, object x):
3941 * if Py_EnterRecursiveCall("encode"):3941 * if Py_EnterRecursiveCall("encode"):
3942 * raise RuntimeError("too deeply nested") # <<<<<<<<<<<<<<3942 * raise RuntimeError("too deeply nested") # <<<<<<<<<<<<<<
@@ -3958,7 +3958,7 @@
3958 }3958 }
3959 __pyx_L5:;3959 __pyx_L5:;
39603960
3961 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3743961 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":374
3962 * if Py_EnterRecursiveCall("encode"):3962 * if Py_EnterRecursiveCall("encode"):
3963 * raise RuntimeError("too deeply nested")3963 * raise RuntimeError("too deeply nested")
3964 * try: # <<<<<<<<<<<<<<3964 * try: # <<<<<<<<<<<<<<
@@ -3967,7 +3967,7 @@
3967 */3967 */
3968 /*try:*/ {3968 /*try:*/ {
39693969
3970 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3753970 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":375
3971 * raise RuntimeError("too deeply nested")3971 * raise RuntimeError("too deeply nested")
3972 * try:3972 * try:
3973 * if PyString_CheckExact(x): # <<<<<<<<<<<<<<3973 * if PyString_CheckExact(x): # <<<<<<<<<<<<<<
@@ -3977,7 +3977,7 @@
3977 __pyx_t_1 = PyString_CheckExact(__pyx_v_x);3977 __pyx_t_1 = PyString_CheckExact(__pyx_v_x);
3978 if (__pyx_t_1) {3978 if (__pyx_t_1) {
39793979
3980 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3763980 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":376
3981 * try:3981 * try:
3982 * if PyString_CheckExact(x):3982 * if PyString_CheckExact(x):
3983 * self._encode_string(x) # <<<<<<<<<<<<<<3983 * self._encode_string(x) # <<<<<<<<<<<<<<
@@ -3988,7 +3988,7 @@
3988 goto __pyx_L9;3988 goto __pyx_L9;
3989 }3989 }
39903990
3991 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3773991 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":377
3992 * if PyString_CheckExact(x):3992 * if PyString_CheckExact(x):
3993 * self._encode_string(x)3993 * self._encode_string(x)
3994 * elif PyInt_CheckExact(x): # <<<<<<<<<<<<<<3994 * elif PyInt_CheckExact(x): # <<<<<<<<<<<<<<
@@ -3998,7 +3998,7 @@
3998 __pyx_t_1 = PyInt_CheckExact(__pyx_v_x);3998 __pyx_t_1 = PyInt_CheckExact(__pyx_v_x);
3999 if (__pyx_t_1) {3999 if (__pyx_t_1) {
40004000
4001 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3784001 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":378
4002 * self._encode_string(x)4002 * self._encode_string(x)
4003 * elif PyInt_CheckExact(x):4003 * elif PyInt_CheckExact(x):
4004 * self._encode_int(x) # <<<<<<<<<<<<<<4004 * self._encode_int(x) # <<<<<<<<<<<<<<
@@ -4010,7 +4010,7 @@
4010 goto __pyx_L9;4010 goto __pyx_L9;
4011 }4011 }
40124012
4013 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3794013 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":379
4014 * elif PyInt_CheckExact(x):4014 * elif PyInt_CheckExact(x):
4015 * self._encode_int(x)4015 * self._encode_int(x)
4016 * elif PyLong_CheckExact(x): # <<<<<<<<<<<<<<4016 * elif PyLong_CheckExact(x): # <<<<<<<<<<<<<<
@@ -4020,7 +4020,7 @@
4020 __pyx_t_4 = PyLong_CheckExact(__pyx_v_x);4020 __pyx_t_4 = PyLong_CheckExact(__pyx_v_x);
4021 if (__pyx_t_4) {4021 if (__pyx_t_4) {
40224022
4023 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3804023 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":380
4024 * self._encode_int(x)4024 * self._encode_int(x)
4025 * elif PyLong_CheckExact(x):4025 * elif PyLong_CheckExact(x):
4026 * self._encode_long(x) # <<<<<<<<<<<<<<4026 * self._encode_long(x) # <<<<<<<<<<<<<<
@@ -4031,7 +4031,7 @@
4031 goto __pyx_L9;4031 goto __pyx_L9;
4032 }4032 }
40334033
4034 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3814034 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":381
4035 * elif PyLong_CheckExact(x):4035 * elif PyLong_CheckExact(x):
4036 * self._encode_long(x)4036 * self._encode_long(x)
4037 * elif (PyList_CheckExact(x) or PyTuple_CheckExact(x) # <<<<<<<<<<<<<<4037 * elif (PyList_CheckExact(x) or PyTuple_CheckExact(x) # <<<<<<<<<<<<<<
@@ -4041,7 +4041,7 @@
4041 __pyx_t_4 = PyList_CheckExact(__pyx_v_x);4041 __pyx_t_4 = PyList_CheckExact(__pyx_v_x);
4042 if (!__pyx_t_4) {4042 if (!__pyx_t_4) {
40434043
4044 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3824044 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":382
4045 * self._encode_long(x)4045 * self._encode_long(x)
4046 * elif (PyList_CheckExact(x) or PyTuple_CheckExact(x)4046 * elif (PyList_CheckExact(x) or PyTuple_CheckExact(x)
4047 * or StaticTuple_CheckExact(x)): # <<<<<<<<<<<<<<4047 * or StaticTuple_CheckExact(x)): # <<<<<<<<<<<<<<
@@ -4061,7 +4061,7 @@
4061 }4061 }
4062 if (__pyx_t_7) {4062 if (__pyx_t_7) {
40634063
4064 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3834064 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":383
4065 * elif (PyList_CheckExact(x) or PyTuple_CheckExact(x)4065 * elif (PyList_CheckExact(x) or PyTuple_CheckExact(x)
4066 * or StaticTuple_CheckExact(x)):4066 * or StaticTuple_CheckExact(x)):
4067 * self._encode_list(x) # <<<<<<<<<<<<<<4067 * self._encode_list(x) # <<<<<<<<<<<<<<
@@ -4072,7 +4072,7 @@
4072 goto __pyx_L9;4072 goto __pyx_L9;
4073 }4073 }
40744074
4075 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3844075 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":384
4076 * or StaticTuple_CheckExact(x)):4076 * or StaticTuple_CheckExact(x)):
4077 * self._encode_list(x)4077 * self._encode_list(x)
4078 * elif PyDict_CheckExact(x): # <<<<<<<<<<<<<<4078 * elif PyDict_CheckExact(x): # <<<<<<<<<<<<<<
@@ -4082,7 +4082,7 @@
4082 __pyx_t_4 = PyDict_CheckExact(__pyx_v_x);4082 __pyx_t_4 = PyDict_CheckExact(__pyx_v_x);
4083 if (__pyx_t_4) {4083 if (__pyx_t_4) {
40844084
4085 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3854085 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":385
4086 * self._encode_list(x)4086 * self._encode_list(x)
4087 * elif PyDict_CheckExact(x):4087 * elif PyDict_CheckExact(x):
4088 * self._encode_dict(x) # <<<<<<<<<<<<<<4088 * self._encode_dict(x) # <<<<<<<<<<<<<<
@@ -4093,7 +4093,7 @@
4093 goto __pyx_L9;4093 goto __pyx_L9;
4094 }4094 }
40954095
4096 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3864096 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":386
4097 * elif PyDict_CheckExact(x):4097 * elif PyDict_CheckExact(x):
4098 * self._encode_dict(x)4098 * self._encode_dict(x)
4099 * elif PyBool_Check(x): # <<<<<<<<<<<<<<4099 * elif PyBool_Check(x): # <<<<<<<<<<<<<<
@@ -4103,7 +4103,7 @@
4103 __pyx_t_4 = PyBool_Check(__pyx_v_x);4103 __pyx_t_4 = PyBool_Check(__pyx_v_x);
4104 if (__pyx_t_4) {4104 if (__pyx_t_4) {
41054105
4106 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3874106 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":387
4107 * self._encode_dict(x)4107 * self._encode_dict(x)
4108 * elif PyBool_Check(x):4108 * elif PyBool_Check(x):
4109 * self._encode_int(int(x)) # <<<<<<<<<<<<<<4109 * self._encode_int(int(x)) # <<<<<<<<<<<<<<
@@ -4124,7 +4124,7 @@
4124 goto __pyx_L9;4124 goto __pyx_L9;
4125 }4125 }
41264126
4127 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3884127 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":388
4128 * elif PyBool_Check(x):4128 * elif PyBool_Check(x):
4129 * self._encode_int(int(x))4129 * self._encode_int(int(x))
4130 * elif isinstance(x, Bencached): # <<<<<<<<<<<<<<4130 * elif isinstance(x, Bencached): # <<<<<<<<<<<<<<
@@ -4137,7 +4137,7 @@
4137 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;4137 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4138 if (__pyx_t_7) {4138 if (__pyx_t_7) {
41394139
4140 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3894140 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":389
4141 * self._encode_int(int(x))4141 * self._encode_int(int(x))
4142 * elif isinstance(x, Bencached):4142 * elif isinstance(x, Bencached):
4143 * self._append_string(x.bencoded) # <<<<<<<<<<<<<<4143 * self._append_string(x.bencoded) # <<<<<<<<<<<<<<
@@ -4152,7 +4152,7 @@
4152 }4152 }
4153 /*else*/ {4153 /*else*/ {
41544154
4155 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3914155 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":391
4156 * self._append_string(x.bencoded)4156 * self._append_string(x.bencoded)
4157 * else:4157 * else:
4158 * raise TypeError('unsupported type %r' % x) # <<<<<<<<<<<<<<4158 * raise TypeError('unsupported type %r' % x) # <<<<<<<<<<<<<<
@@ -4176,7 +4176,7 @@
4176 __pyx_L9:;4176 __pyx_L9:;
4177 }4177 }
41784178
4179 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3934179 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":393
4180 * raise TypeError('unsupported type %r' % x)4180 * raise TypeError('unsupported type %r' % x)
4181 * finally:4181 * finally:
4182 * Py_LeaveRecursiveCall() # <<<<<<<<<<<<<<4182 * Py_LeaveRecursiveCall() # <<<<<<<<<<<<<<
@@ -4224,7 +4224,7 @@
4224 return __pyx_r;4224 return __pyx_r;
4225}4225}
42264226
4227/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3964227/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":396
4228 * 4228 *
4229 * 4229 *
4230 * def bencode(x): # <<<<<<<<<<<<<<4230 * def bencode(x): # <<<<<<<<<<<<<<
@@ -4244,7 +4244,7 @@
4244 __pyx_self = __pyx_self;4244 __pyx_self = __pyx_self;
4245 __pyx_v_encoder = ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)Py_None); __Pyx_INCREF(Py_None);4245 __pyx_v_encoder = ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)Py_None); __Pyx_INCREF(Py_None);
42464246
4247 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3984247 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":398
4248 * def bencode(x):4248 * def bencode(x):
4249 * """Encode Python object x to string"""4249 * """Encode Python object x to string"""
4250 * encoder = Encoder() # <<<<<<<<<<<<<<4250 * encoder = Encoder() # <<<<<<<<<<<<<<
@@ -4257,7 +4257,7 @@
4257 __pyx_v_encoder = ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_t_1);4257 __pyx_v_encoder = ((struct __pyx_obj_6bzrlib_12_bencode_pyx_Encoder *)__pyx_t_1);
4258 __pyx_t_1 = 0;4258 __pyx_t_1 = 0;
42594259
4260 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":3994260 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":399
4261 * """Encode Python object x to string"""4261 * """Encode Python object x to string"""
4262 * encoder = Encoder()4262 * encoder = Encoder()
4263 * encoder.process(x) # <<<<<<<<<<<<<<4263 * encoder.process(x) # <<<<<<<<<<<<<<
@@ -4276,7 +4276,7 @@
4276 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;4276 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4277 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;4277 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
42784278
4279 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":4004279 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":400
4280 * encoder = Encoder()4280 * encoder = Encoder()
4281 * encoder.process(x)4281 * encoder.process(x)
4282 * return str(encoder) # <<<<<<<<<<<<<<4282 * return str(encoder) # <<<<<<<<<<<<<<
@@ -4964,7 +4964,7 @@
4964 /*--- Function import code ---*/4964 /*--- Function import code ---*/
4965 /*--- Execution code ---*/4965 /*--- Execution code ---*/
49664966
4967 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":664967 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":66
4968 * import_static_tuple_c4968 * import_static_tuple_c
4969 * 4969 *
4970 * import_static_tuple_c() # <<<<<<<<<<<<<<4970 * import_static_tuple_c() # <<<<<<<<<<<<<<
@@ -4973,7 +4973,7 @@
4973 */4973 */
4974 __pyx_t_1 = import_static_tuple_c(); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}4974 __pyx_t_1 = import_static_tuple_c(); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
49754975
4976 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2334976 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":233
4977 * 4977 *
4978 * 4978 *
4979 * class Bencached(object): # <<<<<<<<<<<<<<4979 * class Bencached(object): # <<<<<<<<<<<<<<
@@ -4991,7 +4991,7 @@
4991 __Pyx_GOTREF(__pyx_t_4);4991 __Pyx_GOTREF(__pyx_t_4);
4992 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;4992 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
49934993
4994 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2344994 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":234
4995 * 4995 *
4996 * class Bencached(object):4996 * class Bencached(object):
4997 * __slots__ = ['bencoded'] # <<<<<<<<<<<<<<4997 * __slots__ = ['bencoded'] # <<<<<<<<<<<<<<
@@ -5006,7 +5006,7 @@
5006 if (PyObject_SetAttr(__pyx_t_4, __pyx_n_s____slots__, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}5006 if (PyObject_SetAttr(__pyx_t_4, __pyx_n_s____slots__, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5007 __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;5007 __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
50085008
5009 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2365009 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":236
5010 * __slots__ = ['bencoded']5010 * __slots__ = ['bencoded']
5011 * 5011 *
5012 * def __init__(self, s): # <<<<<<<<<<<<<<5012 * def __init__(self, s): # <<<<<<<<<<<<<<
@@ -5024,7 +5024,7 @@
5024 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;5024 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5025 __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;5025 __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
50265026
5027 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":2535027 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":253
5028 * cdef readonly int maxsize5028 * cdef readonly int maxsize
5029 * 5029 *
5030 * def __init__(self, int maxsize=INITSIZE): # <<<<<<<<<<<<<<5030 * def __init__(self, int maxsize=INITSIZE): # <<<<<<<<<<<<<<
@@ -5033,7 +5033,7 @@
5033 */5033 */
5034 __pyx_k_15 = __pyx_e_6bzrlib_12_bencode_pyx_INITSIZE;5034 __pyx_k_15 = __pyx_e_6bzrlib_12_bencode_pyx_INITSIZE;
50355035
5036 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":15036 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":1
5037 * # Copyright (C) 2007, 2009, 2010 Canonical Ltd # <<<<<<<<<<<<<<5037 * # Copyright (C) 2007, 2009, 2010 Canonical Ltd # <<<<<<<<<<<<<<
5038 * #5038 * #
5039 * # This program is free software; you can redistribute it and/or modify5039 * # This program is free software; you can redistribute it and/or modify
50405040
=== modified file 'bzrlib/_btree_serializer_pyx.c'
--- bzrlib/_btree_serializer_pyx.c 2011-08-31 15:04:43 +0000
+++ bzrlib/_btree_serializer_pyx.c 2011-11-03 14:37:19 +0000
@@ -1,4 +1,4 @@
1/* Generated by Cython 0.13 on Thu Aug 11 09:45:32 2011 */1/* Generated by Cython 0.13 on Mon Sep 19 20:18:57 2011 */
22
3#define PY_SSIZE_T_CLEAN3#define PY_SSIZE_T_CLEAN
4#include "Python.h"4#include "Python.h"
@@ -279,7 +279,7 @@
279279
280/* Type declarations */280/* Type declarations */
281281
282/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":337282/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":337
283 * # One slightly ugly option would be to cache block offsets in a global.283 * # One slightly ugly option would be to cache block offsets in a global.
284 * # However, that leads to thread-safety issues, etc.284 * # However, that leads to thread-safety issues, etc.
285 * ctypedef struct gc_chk_sha1_record: # <<<<<<<<<<<<<<285 * ctypedef struct gc_chk_sha1_record: # <<<<<<<<<<<<<<
@@ -295,7 +295,7 @@
295 char sha1[20];295 char sha1[20];
296} __pyx_t_6bzrlib_21_btree_serializer_pyx_gc_chk_sha1_record;296} __pyx_t_6bzrlib_21_btree_serializer_pyx_gc_chk_sha1_record;
297297
298/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":123298/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":123
299 * 299 *
300 * 300 *
301 * cdef class BTreeLeafParser: # <<<<<<<<<<<<<<301 * cdef class BTreeLeafParser: # <<<<<<<<<<<<<<
@@ -316,7 +316,7 @@
316 int _header_found;316 int _header_found;
317};317};
318318
319/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":518319/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":518
320 * 320 *
321 * 321 *
322 * cdef class GCCHKSHA1LeafNode: # <<<<<<<<<<<<<<322 * cdef class GCCHKSHA1LeafNode: # <<<<<<<<<<<<<<
@@ -349,7 +349,7 @@
349static struct __pyx_vtabstruct_6bzrlib_21_btree_serializer_pyx_GCCHKSHA1LeafNode *__pyx_vtabptr_6bzrlib_21_btree_serializer_pyx_GCCHKSHA1LeafNode;349static struct __pyx_vtabstruct_6bzrlib_21_btree_serializer_pyx_GCCHKSHA1LeafNode *__pyx_vtabptr_6bzrlib_21_btree_serializer_pyx_GCCHKSHA1LeafNode;
350350
351351
352/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":123352/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":123
353 * 353 *
354 * 354 *
355 * cdef class BTreeLeafParser: # <<<<<<<<<<<<<<355 * cdef class BTreeLeafParser: # <<<<<<<<<<<<<<
@@ -749,7 +749,7 @@
749static PyObject *__pyx_int_0;749static PyObject *__pyx_int_0;
750static PyObject *__pyx_int_1;750static PyObject *__pyx_int_1;
751751
752/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":81752/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":81
753 * 753 *
754 * # TODO: Find some way to import this from _dirstate_helpers754 * # TODO: Find some way to import this from _dirstate_helpers
755 * cdef void* _my_memrchr(void *s, int c, size_t n): # cannot_raise # <<<<<<<<<<<<<<755 * cdef void* _my_memrchr(void *s, int c, size_t n): # cannot_raise # <<<<<<<<<<<<<<
@@ -764,7 +764,7 @@
764 int __pyx_t_1;764 int __pyx_t_1;
765 __Pyx_RefNannySetupContext("_my_memrchr");765 __Pyx_RefNannySetupContext("_my_memrchr");
766766
767 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":87767 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":87
768 * cdef char *start768 * cdef char *start
769 * 769 *
770 * start = <char*>s # <<<<<<<<<<<<<<770 * start = <char*>s # <<<<<<<<<<<<<<
@@ -773,7 +773,7 @@
773 */773 */
774 __pyx_v_start = ((char *)__pyx_v_s);774 __pyx_v_start = ((char *)__pyx_v_s);
775775
776 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":88776 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":88
777 * 777 *
778 * start = <char*>s778 * start = <char*>s
779 * pos = start + n - 1 # <<<<<<<<<<<<<<779 * pos = start + n - 1 # <<<<<<<<<<<<<<
@@ -782,7 +782,7 @@
782 */782 */
783 __pyx_v_pos = ((__pyx_v_start + __pyx_v_n) - 1);783 __pyx_v_pos = ((__pyx_v_start + __pyx_v_n) - 1);
784784
785 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":89785 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":89
786 * start = <char*>s786 * start = <char*>s
787 * pos = start + n - 1787 * pos = start + n - 1
788 * while pos >= start: # <<<<<<<<<<<<<<788 * while pos >= start: # <<<<<<<<<<<<<<
@@ -793,7 +793,7 @@
793 __pyx_t_1 = (__pyx_v_pos >= __pyx_v_start);793 __pyx_t_1 = (__pyx_v_pos >= __pyx_v_start);
794 if (!__pyx_t_1) break;794 if (!__pyx_t_1) break;
795795
796 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":90796 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":90
797 * pos = start + n - 1797 * pos = start + n - 1
798 * while pos >= start:798 * while pos >= start:
799 * if pos[0] == c: # <<<<<<<<<<<<<<799 * if pos[0] == c: # <<<<<<<<<<<<<<
@@ -803,7 +803,7 @@
803 __pyx_t_1 = ((__pyx_v_pos[0]) == __pyx_v_c);803 __pyx_t_1 = ((__pyx_v_pos[0]) == __pyx_v_c);
804 if (__pyx_t_1) {804 if (__pyx_t_1) {
805805
806 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":91806 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":91
807 * while pos >= start:807 * while pos >= start:
808 * if pos[0] == c:808 * if pos[0] == c:
809 * return <void*>pos # <<<<<<<<<<<<<<809 * return <void*>pos # <<<<<<<<<<<<<<
@@ -816,7 +816,7 @@
816 }816 }
817 __pyx_L5:;817 __pyx_L5:;
818818
819 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":92819 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":92
820 * if pos[0] == c:820 * if pos[0] == c:
821 * return <void*>pos821 * return <void*>pos
822 * pos = pos - 1 # <<<<<<<<<<<<<<822 * pos = pos - 1 # <<<<<<<<<<<<<<
@@ -826,7 +826,7 @@
826 __pyx_v_pos = (__pyx_v_pos - 1);826 __pyx_v_pos = (__pyx_v_pos - 1);
827 }827 }
828828
829 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":93829 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":93
830 * return <void*>pos830 * return <void*>pos
831 * pos = pos - 1831 * pos = pos - 1
832 * return NULL # <<<<<<<<<<<<<<832 * return NULL # <<<<<<<<<<<<<<
@@ -842,7 +842,7 @@
842 return __pyx_r;842 return __pyx_r;
843}843}
844844
845/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":97845/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":97
846 * 846 *
847 * # TODO: Import this from _dirstate_helpers when it is merged847 * # TODO: Import this from _dirstate_helpers when it is merged
848 * cdef object safe_string_from_size(char *s, Py_ssize_t size): # <<<<<<<<<<<<<<848 * cdef object safe_string_from_size(char *s, Py_ssize_t size): # <<<<<<<<<<<<<<
@@ -858,7 +858,7 @@
858 PyObject *__pyx_t_4 = NULL;858 PyObject *__pyx_t_4 = NULL;
859 __Pyx_RefNannySetupContext("safe_string_from_size");859 __Pyx_RefNannySetupContext("safe_string_from_size");
860860
861 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":98861 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":98
862 * # TODO: Import this from _dirstate_helpers when it is merged862 * # TODO: Import this from _dirstate_helpers when it is merged
863 * cdef object safe_string_from_size(char *s, Py_ssize_t size):863 * cdef object safe_string_from_size(char *s, Py_ssize_t size):
864 * if size < 0: # <<<<<<<<<<<<<<864 * if size < 0: # <<<<<<<<<<<<<<
@@ -868,7 +868,7 @@
868 __pyx_t_1 = (__pyx_v_size < 0);868 __pyx_t_1 = (__pyx_v_size < 0);
869 if (__pyx_t_1) {869 if (__pyx_t_1) {
870870
871 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":101871 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":101
872 * raise AssertionError(872 * raise AssertionError(
873 * 'tried to create a string with an invalid size: %d @0x%x'873 * 'tried to create a string with an invalid size: %d @0x%x'
874 * % (size, <int>s)) # <<<<<<<<<<<<<<874 * % (size, <int>s)) # <<<<<<<<<<<<<<
@@ -905,7 +905,7 @@
905 }905 }
906 __pyx_L3:;906 __pyx_L3:;
907907
908 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":102908 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":102
909 * 'tried to create a string with an invalid size: %d @0x%x'909 * 'tried to create a string with an invalid size: %d @0x%x'
910 * % (size, <int>s))910 * % (size, <int>s))
911 * return PyString_FromStringAndSize(s, size) # <<<<<<<<<<<<<<911 * return PyString_FromStringAndSize(s, size) # <<<<<<<<<<<<<<
@@ -933,7 +933,7 @@
933 return __pyx_r;933 return __pyx_r;
934}934}
935935
936/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":105936/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":105
937 * 937 *
938 * 938 *
939 * cdef object safe_interned_string_from_size(char *s, Py_ssize_t size): # <<<<<<<<<<<<<<939 * cdef object safe_interned_string_from_size(char *s, Py_ssize_t size): # <<<<<<<<<<<<<<
@@ -952,7 +952,7 @@
952 __Pyx_RefNannySetupContext("safe_interned_string_from_size");952 __Pyx_RefNannySetupContext("safe_interned_string_from_size");
953 __pyx_v_result = Py_None; __Pyx_INCREF(Py_None);953 __pyx_v_result = Py_None; __Pyx_INCREF(Py_None);
954954
955 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":107955 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":107
956 * cdef object safe_interned_string_from_size(char *s, Py_ssize_t size):956 * cdef object safe_interned_string_from_size(char *s, Py_ssize_t size):
957 * cdef PyObject *py_str957 * cdef PyObject *py_str
958 * if size < 0: # <<<<<<<<<<<<<<958 * if size < 0: # <<<<<<<<<<<<<<
@@ -962,7 +962,7 @@
962 __pyx_t_1 = (__pyx_v_size < 0);962 __pyx_t_1 = (__pyx_v_size < 0);
963 if (__pyx_t_1) {963 if (__pyx_t_1) {
964964
965 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":110965 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":110
966 * raise AssertionError(966 * raise AssertionError(
967 * 'tried to create a string with an invalid size: %d @0x%x'967 * 'tried to create a string with an invalid size: %d @0x%x'
968 * % (size, <int>s)) # <<<<<<<<<<<<<<968 * % (size, <int>s)) # <<<<<<<<<<<<<<
@@ -999,7 +999,7 @@
999 }999 }
1000 __pyx_L3:;1000 __pyx_L3:;
10011001
1002 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1111002 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":111
1003 * 'tried to create a string with an invalid size: %d @0x%x'1003 * 'tried to create a string with an invalid size: %d @0x%x'
1004 * % (size, <int>s))1004 * % (size, <int>s))
1005 * py_str = PyString_FromStringAndSize_ptr(s, size) # <<<<<<<<<<<<<<1005 * py_str = PyString_FromStringAndSize_ptr(s, size) # <<<<<<<<<<<<<<
@@ -1008,7 +1008,7 @@
1008 */1008 */
1009 __pyx_v_py_str = PyString_FromStringAndSize(__pyx_v_s, __pyx_v_size);1009 __pyx_v_py_str = PyString_FromStringAndSize(__pyx_v_s, __pyx_v_size);
10101010
1011 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1121011 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":112
1012 * % (size, <int>s))1012 * % (size, <int>s))
1013 * py_str = PyString_FromStringAndSize_ptr(s, size)1013 * py_str = PyString_FromStringAndSize_ptr(s, size)
1014 * PyString_InternInPlace(&py_str) # <<<<<<<<<<<<<<1014 * PyString_InternInPlace(&py_str) # <<<<<<<<<<<<<<
@@ -1017,7 +1017,7 @@
1017 */1017 */
1018 PyString_InternInPlace((&__pyx_v_py_str));1018 PyString_InternInPlace((&__pyx_v_py_str));
10191019
1020 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1131020 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":113
1021 * py_str = PyString_FromStringAndSize_ptr(s, size)1021 * py_str = PyString_FromStringAndSize_ptr(s, size)
1022 * PyString_InternInPlace(&py_str)1022 * PyString_InternInPlace(&py_str)
1023 * result = <object>py_str # <<<<<<<<<<<<<<1023 * result = <object>py_str # <<<<<<<<<<<<<<
@@ -1028,7 +1028,7 @@
1028 __Pyx_DECREF(__pyx_v_result);1028 __Pyx_DECREF(__pyx_v_result);
1029 __pyx_v_result = ((PyObject *)__pyx_v_py_str);1029 __pyx_v_result = ((PyObject *)__pyx_v_py_str);
10301030
1031 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1161031 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":116
1032 * # Casting a PyObject* to an <object> triggers an INCREF from Pyrex, so we1032 * # Casting a PyObject* to an <object> triggers an INCREF from Pyrex, so we
1033 * # DECREF it to avoid geting immortal strings1033 * # DECREF it to avoid geting immortal strings
1034 * Py_DECREF_ptr(py_str) # <<<<<<<<<<<<<<1034 * Py_DECREF_ptr(py_str) # <<<<<<<<<<<<<<
@@ -1037,7 +1037,7 @@
1037 */1037 */
1038 Py_DECREF(__pyx_v_py_str);1038 Py_DECREF(__pyx_v_py_str);
10391039
1040 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1171040 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":117
1041 * # DECREF it to avoid geting immortal strings1041 * # DECREF it to avoid geting immortal strings
1042 * Py_DECREF_ptr(py_str)1042 * Py_DECREF_ptr(py_str)
1043 * return result # <<<<<<<<<<<<<<1043 * return result # <<<<<<<<<<<<<<
@@ -1064,7 +1064,7 @@
1064 return __pyx_r;1064 return __pyx_r;
1065}1065}
10661066
1067/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1531067/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":153
1068 * cdef int _header_found1068 * cdef int _header_found
1069 * 1069 *
1070 * def __init__(self, bytes, key_length, ref_list_length): # <<<<<<<<<<<<<<1070 * def __init__(self, bytes, key_length, ref_list_length): # <<<<<<<<<<<<<<
@@ -1132,7 +1132,7 @@
1132 return -1;1132 return -1;
1133 __pyx_L4_argument_unpacking_done:;1133 __pyx_L4_argument_unpacking_done:;
11341134
1135 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1541135 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":154
1136 * 1136 *
1137 * def __init__(self, bytes, key_length, ref_list_length):1137 * def __init__(self, bytes, key_length, ref_list_length):
1138 * self.bytes = bytes # <<<<<<<<<<<<<<1138 * self.bytes = bytes # <<<<<<<<<<<<<<
@@ -1145,7 +1145,7 @@
1145 __Pyx_DECREF(((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->bytes);1145 __Pyx_DECREF(((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->bytes);
1146 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->bytes = __pyx_v_bytes;1146 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->bytes = __pyx_v_bytes;
11471147
1148 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1551148 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":155
1149 * def __init__(self, bytes, key_length, ref_list_length):1149 * def __init__(self, bytes, key_length, ref_list_length):
1150 * self.bytes = bytes1150 * self.bytes = bytes
1151 * self.key_length = key_length # <<<<<<<<<<<<<<1151 * self.key_length = key_length # <<<<<<<<<<<<<<
@@ -1155,7 +1155,7 @@
1155 __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_key_length); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}1155 __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_key_length); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1156 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->key_length = __pyx_t_1;1156 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->key_length = __pyx_t_1;
11571157
1158 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1561158 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":156
1159 * self.bytes = bytes1159 * self.bytes = bytes
1160 * self.key_length = key_length1160 * self.key_length = key_length
1161 * self.ref_list_length = ref_list_length # <<<<<<<<<<<<<<1161 * self.ref_list_length = ref_list_length # <<<<<<<<<<<<<<
@@ -1165,7 +1165,7 @@
1165 __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_ref_list_length); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}1165 __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_ref_list_length); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1166 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->ref_list_length = __pyx_t_1;1166 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->ref_list_length = __pyx_t_1;
11671167
1168 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1571168 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":157
1169 * self.key_length = key_length1169 * self.key_length = key_length
1170 * self.ref_list_length = ref_list_length1170 * self.ref_list_length = ref_list_length
1171 * self.keys = [] # <<<<<<<<<<<<<<1171 * self.keys = [] # <<<<<<<<<<<<<<
@@ -1180,7 +1180,7 @@
1180 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->keys = ((PyObject *)__pyx_t_2);1180 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->keys = ((PyObject *)__pyx_t_2);
1181 __pyx_t_2 = 0;1181 __pyx_t_2 = 0;
11821182
1183 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1581183 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":158
1184 * self.ref_list_length = ref_list_length1184 * self.ref_list_length = ref_list_length
1185 * self.keys = []1185 * self.keys = []
1186 * self._cur_str = NULL # <<<<<<<<<<<<<<1186 * self._cur_str = NULL # <<<<<<<<<<<<<<
@@ -1189,7 +1189,7 @@
1189 */1189 */
1190 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->_cur_str = NULL;1190 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->_cur_str = NULL;
11911191
1192 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1591192 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":159
1193 * self.keys = []1193 * self.keys = []
1194 * self._cur_str = NULL1194 * self._cur_str = NULL
1195 * self._end_str = NULL # <<<<<<<<<<<<<<1195 * self._end_str = NULL # <<<<<<<<<<<<<<
@@ -1198,7 +1198,7 @@
1198 */1198 */
1199 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->_end_str = NULL;1199 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->_end_str = NULL;
12001200
1201 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1601201 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":160
1202 * self._cur_str = NULL1202 * self._cur_str = NULL
1203 * self._end_str = NULL1203 * self._end_str = NULL
1204 * self._header_found = 0 # <<<<<<<<<<<<<<1204 * self._header_found = 0 # <<<<<<<<<<<<<<
@@ -1218,7 +1218,7 @@
1218 return __pyx_r;1218 return __pyx_r;
1219}1219}
12201220
1221/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1631221/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":163
1222 * # keys are tuples1222 * # keys are tuples
1223 * 1223 *
1224 * cdef extract_key(self, char * last): # <<<<<<<<<<<<<<1224 * cdef extract_key(self, char * last): # <<<<<<<<<<<<<<
@@ -1245,7 +1245,7 @@
1245 __pyx_v_failure_string = Py_None; __Pyx_INCREF(Py_None);1245 __pyx_v_failure_string = Py_None; __Pyx_INCREF(Py_None);
1246 __pyx_v_key_element = Py_None; __Pyx_INCREF(Py_None);1246 __pyx_v_key_element = Py_None; __Pyx_INCREF(Py_None);
12471247
1248 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1731248 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":173
1249 * cdef StaticTuple key1249 * cdef StaticTuple key
1250 * 1250 *
1251 * key = StaticTuple_New(self.key_length) # <<<<<<<<<<<<<<1251 * key = StaticTuple_New(self.key_length) # <<<<<<<<<<<<<<
@@ -1258,7 +1258,7 @@
1258 __pyx_v_key = ((StaticTuple *)__pyx_t_1);1258 __pyx_v_key = ((StaticTuple *)__pyx_t_1);
1259 __pyx_t_1 = 0;1259 __pyx_t_1 = 0;
12601260
1261 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1741261 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":174
1262 * 1262 *
1263 * key = StaticTuple_New(self.key_length)1263 * key = StaticTuple_New(self.key_length)
1264 * for loop_counter from 0 <= loop_counter < self.key_length: # <<<<<<<<<<<<<<1264 * for loop_counter from 0 <= loop_counter < self.key_length: # <<<<<<<<<<<<<<
@@ -1268,7 +1268,7 @@
1268 __pyx_t_2 = __pyx_v_self->key_length;1268 __pyx_t_2 = __pyx_v_self->key_length;
1269 for (__pyx_v_loop_counter = 0; __pyx_v_loop_counter < __pyx_t_2; __pyx_v_loop_counter++) {1269 for (__pyx_v_loop_counter = 0; __pyx_v_loop_counter < __pyx_t_2; __pyx_v_loop_counter++) {
12701270
1271 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1761271 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":176
1272 * for loop_counter from 0 <= loop_counter < self.key_length:1272 * for loop_counter from 0 <= loop_counter < self.key_length:
1273 * # grab a key segment1273 * # grab a key segment
1274 * temp_ptr = <char*>memchr(self._start, c'\0', last - self._start) # <<<<<<<<<<<<<<1274 * temp_ptr = <char*>memchr(self._start, c'\0', last - self._start) # <<<<<<<<<<<<<<
@@ -1277,7 +1277,7 @@
1277 */1277 */
1278 __pyx_v_temp_ptr = ((char *)memchr(__pyx_v_self->_start, '\x00', (__pyx_v_last - __pyx_v_self->_start)));1278 __pyx_v_temp_ptr = ((char *)memchr(__pyx_v_self->_start, '\x00', (__pyx_v_last - __pyx_v_self->_start)));
12791279
1280 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1771280 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":177
1281 * # grab a key segment1281 * # grab a key segment
1282 * temp_ptr = <char*>memchr(self._start, c'\0', last - self._start)1282 * temp_ptr = <char*>memchr(self._start, c'\0', last - self._start)
1283 * if temp_ptr == NULL: # <<<<<<<<<<<<<<1283 * if temp_ptr == NULL: # <<<<<<<<<<<<<<
@@ -1287,7 +1287,7 @@
1287 __pyx_t_3 = (__pyx_v_temp_ptr == NULL);1287 __pyx_t_3 = (__pyx_v_temp_ptr == NULL);
1288 if (__pyx_t_3) {1288 if (__pyx_t_3) {
12891289
1290 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1781290 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":178
1291 * temp_ptr = <char*>memchr(self._start, c'\0', last - self._start)1291 * temp_ptr = <char*>memchr(self._start, c'\0', last - self._start)
1292 * if temp_ptr == NULL:1292 * if temp_ptr == NULL:
1293 * if loop_counter + 1 == self.key_length: # <<<<<<<<<<<<<<1293 * if loop_counter + 1 == self.key_length: # <<<<<<<<<<<<<<
@@ -1297,7 +1297,7 @@
1297 __pyx_t_3 = ((__pyx_v_loop_counter + 1) == __pyx_v_self->key_length);1297 __pyx_t_3 = ((__pyx_v_loop_counter + 1) == __pyx_v_self->key_length);
1298 if (__pyx_t_3) {1298 if (__pyx_t_3) {
12991299
1300 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1801300 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":180
1301 * if loop_counter + 1 == self.key_length:1301 * if loop_counter + 1 == self.key_length:
1302 * # capture to last1302 * # capture to last
1303 * temp_ptr = last # <<<<<<<<<<<<<<1303 * temp_ptr = last # <<<<<<<<<<<<<<
@@ -1309,7 +1309,7 @@
1309 }1309 }
1310 /*else*/ {1310 /*else*/ {
13111311
1312 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1851312 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":185
1313 * failure_string = ("invalid key, wanted segment from " +1313 * failure_string = ("invalid key, wanted segment from " +
1314 * repr(safe_string_from_size(self._start,1314 * repr(safe_string_from_size(self._start,
1315 * last - self._start))) # <<<<<<<<<<<<<<1315 * last - self._start))) # <<<<<<<<<<<<<<
@@ -1328,7 +1328,7 @@
1328 __pyx_v_failure_string = __pyx_t_1;1328 __pyx_v_failure_string = __pyx_t_1;
1329 __pyx_t_1 = 0;1329 __pyx_t_1 = 0;
13301330
1331 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1861331 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":186
1332 * repr(safe_string_from_size(self._start,1332 * repr(safe_string_from_size(self._start,
1333 * last - self._start)))1333 * last - self._start)))
1334 * raise AssertionError(failure_string) # <<<<<<<<<<<<<<1334 * raise AssertionError(failure_string) # <<<<<<<<<<<<<<
@@ -1352,7 +1352,7 @@
1352 }1352 }
1353 __pyx_L5:;1353 __pyx_L5:;
13541354
1355 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1881355 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":188
1356 * raise AssertionError(failure_string)1356 * raise AssertionError(failure_string)
1357 * # capture the key string1357 * # capture the key string
1358 * if (self.key_length == 1 # <<<<<<<<<<<<<<1358 * if (self.key_length == 1 # <<<<<<<<<<<<<<
@@ -1362,7 +1362,7 @@
1362 __pyx_t_3 = (__pyx_v_self->key_length == 1);1362 __pyx_t_3 = (__pyx_v_self->key_length == 1);
1363 if (__pyx_t_3) {1363 if (__pyx_t_3) {
13641364
1365 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1891365 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":189
1366 * # capture the key string1366 * # capture the key string
1367 * if (self.key_length == 11367 * if (self.key_length == 1
1368 * and (temp_ptr - self._start) == 45 # <<<<<<<<<<<<<<1368 * and (temp_ptr - self._start) == 45 # <<<<<<<<<<<<<<
@@ -1372,7 +1372,7 @@
1372 __pyx_t_5 = ((__pyx_v_temp_ptr - __pyx_v_self->_start) == 45);1372 __pyx_t_5 = ((__pyx_v_temp_ptr - __pyx_v_self->_start) == 45);
1373 if (__pyx_t_5) {1373 if (__pyx_t_5) {
13741374
1375 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1901375 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":190
1376 * if (self.key_length == 11376 * if (self.key_length == 1
1377 * and (temp_ptr - self._start) == 451377 * and (temp_ptr - self._start) == 45
1378 * and strncmp(self._start, 'sha1:', 5) == 0): # <<<<<<<<<<<<<<1378 * and strncmp(self._start, 'sha1:', 5) == 0): # <<<<<<<<<<<<<<
@@ -1390,7 +1390,7 @@
1390 }1390 }
1391 if (__pyx_t_5) {1391 if (__pyx_t_5) {
13921392
1393 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1921393 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":192
1394 * and strncmp(self._start, 'sha1:', 5) == 0):1394 * and strncmp(self._start, 'sha1:', 5) == 0):
1395 * key_element = safe_string_from_size(self._start,1395 * key_element = safe_string_from_size(self._start,
1396 * temp_ptr - self._start) # <<<<<<<<<<<<<<1396 * temp_ptr - self._start) # <<<<<<<<<<<<<<
@@ -1406,7 +1406,7 @@
1406 }1406 }
1407 /*else*/ {1407 /*else*/ {
14081408
1409 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1951409 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":195
1410 * else:1410 * else:
1411 * key_element = safe_interned_string_from_size(self._start,1411 * key_element = safe_interned_string_from_size(self._start,
1412 * temp_ptr - self._start) # <<<<<<<<<<<<<<1412 * temp_ptr - self._start) # <<<<<<<<<<<<<<
@@ -1421,7 +1421,7 @@
1421 }1421 }
1422 __pyx_L7:;1422 __pyx_L7:;
14231423
1424 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1971424 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":197
1425 * temp_ptr - self._start)1425 * temp_ptr - self._start)
1426 * # advance our pointer1426 * # advance our pointer
1427 * self._start = temp_ptr + 1 # <<<<<<<<<<<<<<1427 * self._start = temp_ptr + 1 # <<<<<<<<<<<<<<
@@ -1430,7 +1430,7 @@
1430 */1430 */
1431 __pyx_v_self->_start = (__pyx_v_temp_ptr + 1);1431 __pyx_v_self->_start = (__pyx_v_temp_ptr + 1);
14321432
1433 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1981433 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":198
1434 * # advance our pointer1434 * # advance our pointer
1435 * self._start = temp_ptr + 11435 * self._start = temp_ptr + 1
1436 * Py_INCREF(key_element) # <<<<<<<<<<<<<<1436 * Py_INCREF(key_element) # <<<<<<<<<<<<<<
@@ -1439,7 +1439,7 @@
1439 */1439 */
1440 Py_INCREF(__pyx_v_key_element);1440 Py_INCREF(__pyx_v_key_element);
14411441
1442 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":1991442 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":199
1443 * self._start = temp_ptr + 11443 * self._start = temp_ptr + 1
1444 * Py_INCREF(key_element)1444 * Py_INCREF(key_element)
1445 * StaticTuple_SET_ITEM(key, loop_counter, key_element) # <<<<<<<<<<<<<<1445 * StaticTuple_SET_ITEM(key, loop_counter, key_element) # <<<<<<<<<<<<<<
@@ -1449,7 +1449,7 @@
1449 StaticTuple_SET_ITEM(__pyx_v_key, __pyx_v_loop_counter, __pyx_v_key_element);1449 StaticTuple_SET_ITEM(__pyx_v_key, __pyx_v_loop_counter, __pyx_v_key_element);
1450 }1450 }
14511451
1452 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2001452 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":200
1453 * Py_INCREF(key_element)1453 * Py_INCREF(key_element)
1454 * StaticTuple_SET_ITEM(key, loop_counter, key_element)1454 * StaticTuple_SET_ITEM(key, loop_counter, key_element)
1455 * key = StaticTuple_Intern(key) # <<<<<<<<<<<<<<1455 * key = StaticTuple_Intern(key) # <<<<<<<<<<<<<<
@@ -1462,7 +1462,7 @@
1462 __pyx_v_key = ((StaticTuple *)__pyx_t_4);1462 __pyx_v_key = ((StaticTuple *)__pyx_t_4);
1463 __pyx_t_4 = 0;1463 __pyx_t_4 = 0;
14641464
1465 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2011465 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":201
1466 * StaticTuple_SET_ITEM(key, loop_counter, key_element)1466 * StaticTuple_SET_ITEM(key, loop_counter, key_element)
1467 * key = StaticTuple_Intern(key)1467 * key = StaticTuple_Intern(key)
1468 * return key # <<<<<<<<<<<<<<1468 * return key # <<<<<<<<<<<<<<
@@ -1490,7 +1490,7 @@
1490 return __pyx_r;1490 return __pyx_r;
1491}1491}
14921492
1493/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2031493/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":203
1494 * return key1494 * return key
1495 * 1495 *
1496 * cdef int process_line(self) except -1: # <<<<<<<<<<<<<<1496 * cdef int process_line(self) except -1: # <<<<<<<<<<<<<<
@@ -1524,7 +1524,7 @@
1524 __pyx_v_ref_list = Py_None; __Pyx_INCREF(Py_None);1524 __pyx_v_ref_list = Py_None; __Pyx_INCREF(Py_None);
1525 __pyx_v_node_value = ((StaticTuple *)Py_None); __Pyx_INCREF(Py_None);1525 __pyx_v_node_value = ((StaticTuple *)Py_None); __Pyx_INCREF(Py_None);
15261526
1527 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2121527 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":212
1528 * cdef Py_ssize_t str_len1528 * cdef Py_ssize_t str_len
1529 * 1529 *
1530 * self._start = self._cur_str # <<<<<<<<<<<<<<1530 * self._start = self._cur_str # <<<<<<<<<<<<<<
@@ -1533,7 +1533,7 @@
1533 */1533 */
1534 __pyx_v_self->_start = __pyx_v_self->_cur_str;1534 __pyx_v_self->_start = __pyx_v_self->_cur_str;
15351535
1536 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2141536 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":214
1537 * self._start = self._cur_str1537 * self._start = self._cur_str
1538 * # Find the next newline1538 * # Find the next newline
1539 * last = <char*>memchr(self._start, c'\n', self._end_str - self._start) # <<<<<<<<<<<<<<1539 * last = <char*>memchr(self._start, c'\n', self._end_str - self._start) # <<<<<<<<<<<<<<
@@ -1542,7 +1542,7 @@
1542 */1542 */
1543 __pyx_v_last = ((char *)memchr(__pyx_v_self->_start, '\n', (__pyx_v_self->_end_str - __pyx_v_self->_start)));1543 __pyx_v_last = ((char *)memchr(__pyx_v_self->_start, '\n', (__pyx_v_self->_end_str - __pyx_v_self->_start)));
15441544
1545 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2151545 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":215
1546 * # Find the next newline1546 * # Find the next newline
1547 * last = <char*>memchr(self._start, c'\n', self._end_str - self._start)1547 * last = <char*>memchr(self._start, c'\n', self._end_str - self._start)
1548 * if last == NULL: # <<<<<<<<<<<<<<1548 * if last == NULL: # <<<<<<<<<<<<<<
@@ -1552,7 +1552,7 @@
1552 __pyx_t_1 = (__pyx_v_last == NULL);1552 __pyx_t_1 = (__pyx_v_last == NULL);
1553 if (__pyx_t_1) {1553 if (__pyx_t_1) {
15541554
1555 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2171555 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":217
1556 * if last == NULL:1556 * if last == NULL:
1557 * # Process until the end of the file1557 * # Process until the end of the file
1558 * last = self._end_str # <<<<<<<<<<<<<<1558 * last = self._end_str # <<<<<<<<<<<<<<
@@ -1561,7 +1561,7 @@
1561 */1561 */
1562 __pyx_v_last = __pyx_v_self->_end_str;1562 __pyx_v_last = __pyx_v_self->_end_str;
15631563
1564 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2181564 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":218
1565 * # Process until the end of the file1565 * # Process until the end of the file
1566 * last = self._end_str1566 * last = self._end_str
1567 * self._cur_str = self._end_str # <<<<<<<<<<<<<<1567 * self._cur_str = self._end_str # <<<<<<<<<<<<<<
@@ -1573,7 +1573,7 @@
1573 }1573 }
1574 /*else*/ {1574 /*else*/ {
15751575
1576 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2211576 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":221
1577 * else:1577 * else:
1578 * # And the next string is right after it1578 * # And the next string is right after it
1579 * self._cur_str = last + 1 # <<<<<<<<<<<<<<1579 * self._cur_str = last + 1 # <<<<<<<<<<<<<<
@@ -1584,7 +1584,7 @@
1584 }1584 }
1585 __pyx_L3:;1585 __pyx_L3:;
15861586
1587 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2241587 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":224
1588 * # The last character is right before the '\n'1588 * # The last character is right before the '\n'
1589 * 1589 *
1590 * if last == self._start: # <<<<<<<<<<<<<<1590 * if last == self._start: # <<<<<<<<<<<<<<
@@ -1594,7 +1594,7 @@
1594 __pyx_t_1 = (__pyx_v_last == __pyx_v_self->_start);1594 __pyx_t_1 = (__pyx_v_last == __pyx_v_self->_start);
1595 if (__pyx_t_1) {1595 if (__pyx_t_1) {
15961596
1597 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2261597 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":226
1598 * if last == self._start:1598 * if last == self._start:
1599 * # parsed it all.1599 * # parsed it all.
1600 * return 0 # <<<<<<<<<<<<<<1600 * return 0 # <<<<<<<<<<<<<<
@@ -1607,7 +1607,7 @@
1607 }1607 }
1608 __pyx_L4:;1608 __pyx_L4:;
16091609
1610 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2271610 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":227
1611 * # parsed it all.1611 * # parsed it all.
1612 * return 01612 * return 0
1613 * if last < self._start: # <<<<<<<<<<<<<<1613 * if last < self._start: # <<<<<<<<<<<<<<
@@ -1617,7 +1617,7 @@
1617 __pyx_t_1 = (__pyx_v_last < __pyx_v_self->_start);1617 __pyx_t_1 = (__pyx_v_last < __pyx_v_self->_start);
1618 if (__pyx_t_1) {1618 if (__pyx_t_1) {
16191619
1620 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2291620 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":229
1621 * if last < self._start:1621 * if last < self._start:
1622 * # Unexpected error condition - fail1622 * # Unexpected error condition - fail
1623 * raise AssertionError("last < self._start") # <<<<<<<<<<<<<<1623 * raise AssertionError("last < self._start") # <<<<<<<<<<<<<<
@@ -1639,7 +1639,7 @@
1639 }1639 }
1640 __pyx_L5:;1640 __pyx_L5:;
16411641
1642 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2301642 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":230
1643 * # Unexpected error condition - fail1643 * # Unexpected error condition - fail
1644 * raise AssertionError("last < self._start")1644 * raise AssertionError("last < self._start")
1645 * if 0 == self._header_found: # <<<<<<<<<<<<<<1645 * if 0 == self._header_found: # <<<<<<<<<<<<<<
@@ -1649,7 +1649,7 @@
1649 __pyx_t_1 = (0 == __pyx_v_self->_header_found);1649 __pyx_t_1 = (0 == __pyx_v_self->_header_found);
1650 if (__pyx_t_1) {1650 if (__pyx_t_1) {
16511651
1652 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2321652 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":232
1653 * if 0 == self._header_found:1653 * if 0 == self._header_found:
1654 * # The first line in a leaf node is the header "type=leaf\n"1654 * # The first line in a leaf node is the header "type=leaf\n"
1655 * if strncmp("type=leaf", self._start, last - self._start) == 0: # <<<<<<<<<<<<<<1655 * if strncmp("type=leaf", self._start, last - self._start) == 0: # <<<<<<<<<<<<<<
@@ -1659,7 +1659,7 @@
1659 __pyx_t_1 = (strncmp(__pyx_k_5, __pyx_v_self->_start, (__pyx_v_last - __pyx_v_self->_start)) == 0);1659 __pyx_t_1 = (strncmp(__pyx_k_5, __pyx_v_self->_start, (__pyx_v_last - __pyx_v_self->_start)) == 0);
1660 if (__pyx_t_1) {1660 if (__pyx_t_1) {
16611661
1662 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2331662 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":233
1663 * # The first line in a leaf node is the header "type=leaf\n"1663 * # The first line in a leaf node is the header "type=leaf\n"
1664 * if strncmp("type=leaf", self._start, last - self._start) == 0:1664 * if strncmp("type=leaf", self._start, last - self._start) == 0:
1665 * self._header_found = 1 # <<<<<<<<<<<<<<1665 * self._header_found = 1 # <<<<<<<<<<<<<<
@@ -1668,7 +1668,7 @@
1668 */1668 */
1669 __pyx_v_self->_header_found = 1;1669 __pyx_v_self->_header_found = 1;
16701670
1671 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2341671 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":234
1672 * if strncmp("type=leaf", self._start, last - self._start) == 0:1672 * if strncmp("type=leaf", self._start, last - self._start) == 0:
1673 * self._header_found = 11673 * self._header_found = 1
1674 * return 0 # <<<<<<<<<<<<<<1674 * return 0 # <<<<<<<<<<<<<<
@@ -1681,7 +1681,7 @@
1681 }1681 }
1682 /*else*/ {1682 /*else*/ {
16831683
1684 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2371684 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":237
1685 * else:1685 * else:
1686 * raise AssertionError('Node did not start with "type=leaf": %r'1686 * raise AssertionError('Node did not start with "type=leaf": %r'
1687 * % (safe_string_from_size(self._start, last - self._start))) # <<<<<<<<<<<<<<1687 * % (safe_string_from_size(self._start, last - self._start))) # <<<<<<<<<<<<<<
@@ -1710,7 +1710,7 @@
1710 }1710 }
1711 __pyx_L6:;1711 __pyx_L6:;
17121712
1713 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2391713 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":239
1714 * % (safe_string_from_size(self._start, last - self._start)))1714 * % (safe_string_from_size(self._start, last - self._start)))
1715 * 1715 *
1716 * key = self.extract_key(last) # <<<<<<<<<<<<<<1716 * key = self.extract_key(last) # <<<<<<<<<<<<<<
@@ -1723,7 +1723,7 @@
1723 __pyx_v_key = __pyx_t_2;1723 __pyx_v_key = __pyx_t_2;
1724 __pyx_t_2 = 0;1724 __pyx_t_2 = 0;
17251725
1726 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2411726 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":241
1727 * key = self.extract_key(last)1727 * key = self.extract_key(last)
1728 * # find the value area1728 * # find the value area
1729 * temp_ptr = <char*>_my_memrchr(self._start, c'\0', last - self._start) # <<<<<<<<<<<<<<1729 * temp_ptr = <char*>_my_memrchr(self._start, c'\0', last - self._start) # <<<<<<<<<<<<<<
@@ -1732,7 +1732,7 @@
1732 */1732 */
1733 __pyx_v_temp_ptr = ((char *)__pyx_f_6bzrlib_21_btree_serializer_pyx__my_memrchr(__pyx_v_self->_start, '\x00', (__pyx_v_last - __pyx_v_self->_start)));1733 __pyx_v_temp_ptr = ((char *)__pyx_f_6bzrlib_21_btree_serializer_pyx__my_memrchr(__pyx_v_self->_start, '\x00', (__pyx_v_last - __pyx_v_self->_start)));
17341734
1735 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2421735 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":242
1736 * # find the value area1736 * # find the value area
1737 * temp_ptr = <char*>_my_memrchr(self._start, c'\0', last - self._start)1737 * temp_ptr = <char*>_my_memrchr(self._start, c'\0', last - self._start)
1738 * if temp_ptr == NULL: # <<<<<<<<<<<<<<1738 * if temp_ptr == NULL: # <<<<<<<<<<<<<<
@@ -1742,7 +1742,7 @@
1742 __pyx_t_1 = (__pyx_v_temp_ptr == NULL);1742 __pyx_t_1 = (__pyx_v_temp_ptr == NULL);
1743 if (__pyx_t_1) {1743 if (__pyx_t_1) {
17441744
1745 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2441745 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":244
1746 * if temp_ptr == NULL:1746 * if temp_ptr == NULL:
1747 * # Invalid line1747 * # Invalid line
1748 * raise AssertionError("Failed to find the value area") # <<<<<<<<<<<<<<1748 * raise AssertionError("Failed to find the value area") # <<<<<<<<<<<<<<
@@ -1764,7 +1764,7 @@
1764 }1764 }
1765 /*else*/ {1765 /*else*/ {
17661766
1767 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2521767 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":252
1768 * # something like '12607215 328306 0 0', which ends up consuming 1MB1768 * # something like '12607215 328306 0 0', which ends up consuming 1MB
1769 * # of memory, just for those strings.1769 * # of memory, just for those strings.
1770 * str_len = last - temp_ptr - 1 # <<<<<<<<<<<<<<1770 * str_len = last - temp_ptr - 1 # <<<<<<<<<<<<<<
@@ -1773,7 +1773,7 @@
1773 */1773 */
1774 __pyx_v_str_len = ((__pyx_v_last - __pyx_v_temp_ptr) - 1);1774 __pyx_v_str_len = ((__pyx_v_last - __pyx_v_temp_ptr) - 1);
17751775
1776 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2531776 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":253
1777 * # of memory, just for those strings.1777 * # of memory, just for those strings.
1778 * str_len = last - temp_ptr - 11778 * str_len = last - temp_ptr - 1
1779 * if (str_len > 4 # <<<<<<<<<<<<<<1779 * if (str_len > 4 # <<<<<<<<<<<<<<
@@ -1783,7 +1783,7 @@
1783 __pyx_t_1 = (__pyx_v_str_len > 4);1783 __pyx_t_1 = (__pyx_v_str_len > 4);
1784 if (__pyx_t_1) {1784 if (__pyx_t_1) {
17851785
1786 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2541786 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":254
1787 * str_len = last - temp_ptr - 11787 * str_len = last - temp_ptr - 1
1788 * if (str_len > 41788 * if (str_len > 4
1789 * and strncmp(" 0 0", last - 4, 4) == 0): # <<<<<<<<<<<<<<1789 * and strncmp(" 0 0", last - 4, 4) == 0): # <<<<<<<<<<<<<<
@@ -1797,7 +1797,7 @@
1797 }1797 }
1798 if (__pyx_t_5) {1798 if (__pyx_t_5) {
17991799
1800 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2571800 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":257
1801 * # This drops peak mem for bzr.dev from 87.4MB => 86.2MB1801 * # This drops peak mem for bzr.dev from 87.4MB => 86.2MB
1802 * # For Launchpad 236MB => 232MB1802 * # For Launchpad 236MB => 232MB
1803 * value = safe_interned_string_from_size(temp_ptr + 1, str_len) # <<<<<<<<<<<<<<1803 * value = safe_interned_string_from_size(temp_ptr + 1, str_len) # <<<<<<<<<<<<<<
@@ -1813,7 +1813,7 @@
1813 }1813 }
1814 /*else*/ {1814 /*else*/ {
18151815
1816 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2591816 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":259
1817 * value = safe_interned_string_from_size(temp_ptr + 1, str_len)1817 * value = safe_interned_string_from_size(temp_ptr + 1, str_len)
1818 * else:1818 * else:
1819 * value = safe_string_from_size(temp_ptr + 1, str_len) # <<<<<<<<<<<<<<1819 * value = safe_string_from_size(temp_ptr + 1, str_len) # <<<<<<<<<<<<<<
@@ -1828,7 +1828,7 @@
1828 }1828 }
1829 __pyx_L9:;1829 __pyx_L9:;
18301830
1831 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2611831 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":261
1832 * value = safe_string_from_size(temp_ptr + 1, str_len)1832 * value = safe_string_from_size(temp_ptr + 1, str_len)
1833 * # shrink the references end point1833 * # shrink the references end point
1834 * last = temp_ptr # <<<<<<<<<<<<<<1834 * last = temp_ptr # <<<<<<<<<<<<<<
@@ -1839,7 +1839,7 @@
1839 }1839 }
1840 __pyx_L8:;1840 __pyx_L8:;
18411841
1842 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2631842 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":263
1843 * last = temp_ptr1843 * last = temp_ptr
1844 * 1844 *
1845 * if self.ref_list_length: # <<<<<<<<<<<<<<1845 * if self.ref_list_length: # <<<<<<<<<<<<<<
@@ -1848,7 +1848,7 @@
1848 */1848 */
1849 if (__pyx_v_self->ref_list_length) {1849 if (__pyx_v_self->ref_list_length) {
18501850
1851 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2641851 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":264
1852 * 1852 *
1853 * if self.ref_list_length:1853 * if self.ref_list_length:
1854 * ref_lists = StaticTuple_New(self.ref_list_length) # <<<<<<<<<<<<<<1854 * ref_lists = StaticTuple_New(self.ref_list_length) # <<<<<<<<<<<<<<
@@ -1861,7 +1861,7 @@
1861 __pyx_v_ref_lists = ((StaticTuple *)__pyx_t_3);1861 __pyx_v_ref_lists = ((StaticTuple *)__pyx_t_3);
1862 __pyx_t_3 = 0;1862 __pyx_t_3 = 0;
18631863
1864 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2651864 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":265
1865 * if self.ref_list_length:1865 * if self.ref_list_length:
1866 * ref_lists = StaticTuple_New(self.ref_list_length)1866 * ref_lists = StaticTuple_New(self.ref_list_length)
1867 * loop_counter = 0 # <<<<<<<<<<<<<<1867 * loop_counter = 0 # <<<<<<<<<<<<<<
@@ -1870,7 +1870,7 @@
1870 */1870 */
1871 __pyx_v_loop_counter = 0;1871 __pyx_v_loop_counter = 0;
18721872
1873 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2661873 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":266
1874 * ref_lists = StaticTuple_New(self.ref_list_length)1874 * ref_lists = StaticTuple_New(self.ref_list_length)
1875 * loop_counter = 01875 * loop_counter = 0
1876 * while loop_counter < self.ref_list_length: # <<<<<<<<<<<<<<1876 * while loop_counter < self.ref_list_length: # <<<<<<<<<<<<<<
@@ -1881,7 +1881,7 @@
1881 __pyx_t_5 = (__pyx_v_loop_counter < __pyx_v_self->ref_list_length);1881 __pyx_t_5 = (__pyx_v_loop_counter < __pyx_v_self->ref_list_length);
1882 if (!__pyx_t_5) break;1882 if (!__pyx_t_5) break;
18831883
1884 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2671884 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":267
1885 * loop_counter = 01885 * loop_counter = 0
1886 * while loop_counter < self.ref_list_length:1886 * while loop_counter < self.ref_list_length:
1887 * ref_list = [] # <<<<<<<<<<<<<<1887 * ref_list = [] # <<<<<<<<<<<<<<
@@ -1894,7 +1894,7 @@
1894 __pyx_v_ref_list = ((PyObject *)__pyx_t_3);1894 __pyx_v_ref_list = ((PyObject *)__pyx_t_3);
1895 __pyx_t_3 = 0;1895 __pyx_t_3 = 0;
18961896
1897 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2691897 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":269
1898 * ref_list = []1898 * ref_list = []
1899 * # extract a reference list1899 * # extract a reference list
1900 * loop_counter = loop_counter + 1 # <<<<<<<<<<<<<<1900 * loop_counter = loop_counter + 1 # <<<<<<<<<<<<<<
@@ -1903,7 +1903,7 @@
1903 */1903 */
1904 __pyx_v_loop_counter = (__pyx_v_loop_counter + 1);1904 __pyx_v_loop_counter = (__pyx_v_loop_counter + 1);
19051905
1906 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2701906 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":270
1907 * # extract a reference list1907 * # extract a reference list
1908 * loop_counter = loop_counter + 11908 * loop_counter = loop_counter + 1
1909 * if last < self._start: # <<<<<<<<<<<<<<1909 * if last < self._start: # <<<<<<<<<<<<<<
@@ -1913,7 +1913,7 @@
1913 __pyx_t_5 = (__pyx_v_last < __pyx_v_self->_start);1913 __pyx_t_5 = (__pyx_v_last < __pyx_v_self->_start);
1914 if (__pyx_t_5) {1914 if (__pyx_t_5) {
19151915
1916 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2711916 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":271
1917 * loop_counter = loop_counter + 11917 * loop_counter = loop_counter + 1
1918 * if last < self._start:1918 * if last < self._start:
1919 * raise AssertionError("last < self._start") # <<<<<<<<<<<<<<1919 * raise AssertionError("last < self._start") # <<<<<<<<<<<<<<
@@ -1935,7 +1935,7 @@
1935 }1935 }
1936 __pyx_L13:;1936 __pyx_L13:;
19371937
1938 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2731938 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":273
1939 * raise AssertionError("last < self._start")1939 * raise AssertionError("last < self._start")
1940 * # find the next reference list end point:1940 * # find the next reference list end point:
1941 * temp_ptr = <char*>memchr(self._start, c'\t', last - self._start) # <<<<<<<<<<<<<<1941 * temp_ptr = <char*>memchr(self._start, c'\t', last - self._start) # <<<<<<<<<<<<<<
@@ -1944,7 +1944,7 @@
1944 */1944 */
1945 __pyx_v_temp_ptr = ((char *)memchr(__pyx_v_self->_start, '\t', (__pyx_v_last - __pyx_v_self->_start)));1945 __pyx_v_temp_ptr = ((char *)memchr(__pyx_v_self->_start, '\t', (__pyx_v_last - __pyx_v_self->_start)));
19461946
1947 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2741947 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":274
1948 * # find the next reference list end point:1948 * # find the next reference list end point:
1949 * temp_ptr = <char*>memchr(self._start, c'\t', last - self._start)1949 * temp_ptr = <char*>memchr(self._start, c'\t', last - self._start)
1950 * if temp_ptr == NULL: # <<<<<<<<<<<<<<1950 * if temp_ptr == NULL: # <<<<<<<<<<<<<<
@@ -1954,7 +1954,7 @@
1954 __pyx_t_5 = (__pyx_v_temp_ptr == NULL);1954 __pyx_t_5 = (__pyx_v_temp_ptr == NULL);
1955 if (__pyx_t_5) {1955 if (__pyx_t_5) {
19561956
1957 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2761957 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":276
1958 * if temp_ptr == NULL:1958 * if temp_ptr == NULL:
1959 * # Only valid for the last list1959 * # Only valid for the last list
1960 * if loop_counter != self.ref_list_length: # <<<<<<<<<<<<<<1960 * if loop_counter != self.ref_list_length: # <<<<<<<<<<<<<<
@@ -1964,7 +1964,7 @@
1964 __pyx_t_5 = (__pyx_v_loop_counter != __pyx_v_self->ref_list_length);1964 __pyx_t_5 = (__pyx_v_loop_counter != __pyx_v_self->ref_list_length);
1965 if (__pyx_t_5) {1965 if (__pyx_t_5) {
19661966
1967 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2781967 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":278
1968 * if loop_counter != self.ref_list_length:1968 * if loop_counter != self.ref_list_length:
1969 * # Invalid line1969 * # Invalid line
1970 * raise AssertionError( # <<<<<<<<<<<<<<1970 * raise AssertionError( # <<<<<<<<<<<<<<
@@ -1986,7 +1986,7 @@
1986 }1986 }
1987 /*else*/ {1987 /*else*/ {
19881988
1989 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2821989 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":282
1990 * else:1990 * else:
1991 * # scan to the end of the ref list area1991 * # scan to the end of the ref list area
1992 * ref_ptr = last # <<<<<<<<<<<<<<1992 * ref_ptr = last # <<<<<<<<<<<<<<
@@ -1995,7 +1995,7 @@
1995 */1995 */
1996 __pyx_v_ref_ptr = __pyx_v_last;1996 __pyx_v_ref_ptr = __pyx_v_last;
19971997
1998 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2831998 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":283
1999 * # scan to the end of the ref list area1999 * # scan to the end of the ref list area
2000 * ref_ptr = last2000 * ref_ptr = last
2001 * next_start = last # <<<<<<<<<<<<<<2001 * next_start = last # <<<<<<<<<<<<<<
@@ -2009,7 +2009,7 @@
2009 }2009 }
2010 /*else*/ {2010 /*else*/ {
20112011
2012 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2862012 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":286
2013 * else:2013 * else:
2014 * # scan to the end of this ref list2014 * # scan to the end of this ref list
2015 * ref_ptr = temp_ptr # <<<<<<<<<<<<<<2015 * ref_ptr = temp_ptr # <<<<<<<<<<<<<<
@@ -2018,7 +2018,7 @@
2018 */2018 */
2019 __pyx_v_ref_ptr = __pyx_v_temp_ptr;2019 __pyx_v_ref_ptr = __pyx_v_temp_ptr;
20202020
2021 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2872021 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":287
2022 * # scan to the end of this ref list2022 * # scan to the end of this ref list
2023 * ref_ptr = temp_ptr2023 * ref_ptr = temp_ptr
2024 * next_start = temp_ptr + 1 # <<<<<<<<<<<<<<2024 * next_start = temp_ptr + 1 # <<<<<<<<<<<<<<
@@ -2029,7 +2029,7 @@
2029 }2029 }
2030 __pyx_L14:;2030 __pyx_L14:;
20312031
2032 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2892032 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":289
2033 * next_start = temp_ptr + 12033 * next_start = temp_ptr + 1
2034 * # Now, there may be multiple keys in the ref list.2034 * # Now, there may be multiple keys in the ref list.
2035 * while self._start < ref_ptr: # <<<<<<<<<<<<<<2035 * while self._start < ref_ptr: # <<<<<<<<<<<<<<
@@ -2040,7 +2040,7 @@
2040 __pyx_t_5 = (__pyx_v_self->_start < __pyx_v_ref_ptr);2040 __pyx_t_5 = (__pyx_v_self->_start < __pyx_v_ref_ptr);
2041 if (!__pyx_t_5) break;2041 if (!__pyx_t_5) break;
20422042
2043 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2922043 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":292
2044 * # loop finding keys and extracting them2044 * # loop finding keys and extracting them
2045 * temp_ptr = <char*>memchr(self._start, c'\r',2045 * temp_ptr = <char*>memchr(self._start, c'\r',
2046 * ref_ptr - self._start) # <<<<<<<<<<<<<<2046 * ref_ptr - self._start) # <<<<<<<<<<<<<<
@@ -2049,7 +2049,7 @@
2049 */2049 */
2050 __pyx_v_temp_ptr = ((char *)memchr(__pyx_v_self->_start, '\r', (__pyx_v_ref_ptr - __pyx_v_self->_start)));2050 __pyx_v_temp_ptr = ((char *)memchr(__pyx_v_self->_start, '\r', (__pyx_v_ref_ptr - __pyx_v_self->_start)));
20512051
2052 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2932052 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":293
2053 * temp_ptr = <char*>memchr(self._start, c'\r',2053 * temp_ptr = <char*>memchr(self._start, c'\r',
2054 * ref_ptr - self._start)2054 * ref_ptr - self._start)
2055 * if temp_ptr == NULL: # <<<<<<<<<<<<<<2055 * if temp_ptr == NULL: # <<<<<<<<<<<<<<
@@ -2059,7 +2059,7 @@
2059 __pyx_t_5 = (__pyx_v_temp_ptr == NULL);2059 __pyx_t_5 = (__pyx_v_temp_ptr == NULL);
2060 if (__pyx_t_5) {2060 if (__pyx_t_5) {
20612061
2062 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2952062 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":295
2063 * if temp_ptr == NULL:2063 * if temp_ptr == NULL:
2064 * # key runs to the end2064 * # key runs to the end
2065 * temp_ptr = ref_ptr # <<<<<<<<<<<<<<2065 * temp_ptr = ref_ptr # <<<<<<<<<<<<<<
@@ -2071,7 +2071,7 @@
2071 }2071 }
2072 __pyx_L18:;2072 __pyx_L18:;
20732073
2074 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2972074 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":297
2075 * temp_ptr = ref_ptr2075 * temp_ptr = ref_ptr
2076 * 2076 *
2077 * PyList_Append(ref_list, self.extract_key(temp_ptr)) # <<<<<<<<<<<<<<2077 * PyList_Append(ref_list, self.extract_key(temp_ptr)) # <<<<<<<<<<<<<<
@@ -2084,7 +2084,7 @@
2084 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;2084 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2085 }2085 }
20862086
2087 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2982087 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":298
2088 * 2088 *
2089 * PyList_Append(ref_list, self.extract_key(temp_ptr))2089 * PyList_Append(ref_list, self.extract_key(temp_ptr))
2090 * ref_list = StaticTuple_Intern(StaticTuple(*ref_list)) # <<<<<<<<<<<<<<2090 * ref_list = StaticTuple_Intern(StaticTuple(*ref_list)) # <<<<<<<<<<<<<<
@@ -2103,7 +2103,7 @@
2103 __pyx_v_ref_list = __pyx_t_3;2103 __pyx_v_ref_list = __pyx_t_3;
2104 __pyx_t_3 = 0;2104 __pyx_t_3 = 0;
21052105
2106 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":2992106 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":299
2107 * PyList_Append(ref_list, self.extract_key(temp_ptr))2107 * PyList_Append(ref_list, self.extract_key(temp_ptr))
2108 * ref_list = StaticTuple_Intern(StaticTuple(*ref_list))2108 * ref_list = StaticTuple_Intern(StaticTuple(*ref_list))
2109 * Py_INCREF(ref_list) # <<<<<<<<<<<<<<2109 * Py_INCREF(ref_list) # <<<<<<<<<<<<<<
@@ -2112,7 +2112,7 @@
2112 */2112 */
2113 Py_INCREF(__pyx_v_ref_list);2113 Py_INCREF(__pyx_v_ref_list);
21142114
2115 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3002115 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":300
2116 * ref_list = StaticTuple_Intern(StaticTuple(*ref_list))2116 * ref_list = StaticTuple_Intern(StaticTuple(*ref_list))
2117 * Py_INCREF(ref_list)2117 * Py_INCREF(ref_list)
2118 * StaticTuple_SET_ITEM(ref_lists, loop_counter - 1, ref_list) # <<<<<<<<<<<<<<2118 * StaticTuple_SET_ITEM(ref_lists, loop_counter - 1, ref_list) # <<<<<<<<<<<<<<
@@ -2121,7 +2121,7 @@
2121 */2121 */
2122 StaticTuple_SET_ITEM(__pyx_v_ref_lists, (__pyx_v_loop_counter - 1), __pyx_v_ref_list);2122 StaticTuple_SET_ITEM(__pyx_v_ref_lists, (__pyx_v_loop_counter - 1), __pyx_v_ref_list);
21232123
2124 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3022124 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":302
2125 * StaticTuple_SET_ITEM(ref_lists, loop_counter - 1, ref_list)2125 * StaticTuple_SET_ITEM(ref_lists, loop_counter - 1, ref_list)
2126 * # prepare for the next reference list2126 * # prepare for the next reference list
2127 * self._start = next_start # <<<<<<<<<<<<<<2127 * self._start = next_start # <<<<<<<<<<<<<<
@@ -2131,7 +2131,7 @@
2131 __pyx_v_self->_start = __pyx_v_next_start;2131 __pyx_v_self->_start = __pyx_v_next_start;
2132 }2132 }
21332133
2134 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3032134 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":303
2135 * # prepare for the next reference list2135 * # prepare for the next reference list
2136 * self._start = next_start2136 * self._start = next_start
2137 * node_value = StaticTuple(value, ref_lists) # <<<<<<<<<<<<<<2137 * node_value = StaticTuple(value, ref_lists) # <<<<<<<<<<<<<<
@@ -2156,7 +2156,7 @@
2156 }2156 }
2157 /*else*/ {2157 /*else*/ {
21582158
2159 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3052159 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":305
2160 * node_value = StaticTuple(value, ref_lists)2160 * node_value = StaticTuple(value, ref_lists)
2161 * else:2161 * else:
2162 * if last != self._start: # <<<<<<<<<<<<<<2162 * if last != self._start: # <<<<<<<<<<<<<<
@@ -2166,7 +2166,7 @@
2166 __pyx_t_5 = (__pyx_v_last != __pyx_v_self->_start);2166 __pyx_t_5 = (__pyx_v_last != __pyx_v_self->_start);
2167 if (__pyx_t_5) {2167 if (__pyx_t_5) {
21682168
2169 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3072169 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":307
2170 * if last != self._start:2170 * if last != self._start:
2171 * # unexpected reference data present2171 * # unexpected reference data present
2172 * raise AssertionError("unexpected reference data present") # <<<<<<<<<<<<<<2172 * raise AssertionError("unexpected reference data present") # <<<<<<<<<<<<<<
@@ -2188,7 +2188,7 @@
2188 }2188 }
2189 __pyx_L19:;2189 __pyx_L19:;
21902190
2191 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3082191 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":308
2192 * # unexpected reference data present2192 * # unexpected reference data present
2193 * raise AssertionError("unexpected reference data present")2193 * raise AssertionError("unexpected reference data present")
2194 * node_value = StaticTuple(value, StaticTuple()) # <<<<<<<<<<<<<<2194 * node_value = StaticTuple(value, StaticTuple()) # <<<<<<<<<<<<<<
@@ -2214,7 +2214,7 @@
2214 }2214 }
2215 __pyx_L10:;2215 __pyx_L10:;
22162216
2217 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3092217 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":309
2218 * raise AssertionError("unexpected reference data present")2218 * raise AssertionError("unexpected reference data present")
2219 * node_value = StaticTuple(value, StaticTuple())2219 * node_value = StaticTuple(value, StaticTuple())
2220 * PyList_Append(self.keys, StaticTuple(key, node_value)) # <<<<<<<<<<<<<<2220 * PyList_Append(self.keys, StaticTuple(key, node_value)) # <<<<<<<<<<<<<<
@@ -2235,7 +2235,7 @@
2235 __pyx_t_6 = PyList_Append(__pyx_v_self->keys, __pyx_t_2); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}2235 __pyx_t_6 = PyList_Append(__pyx_v_self->keys, __pyx_t_2); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2236 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;2236 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
22372237
2238 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3102238 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":310
2239 * node_value = StaticTuple(value, StaticTuple())2239 * node_value = StaticTuple(value, StaticTuple())
2240 * PyList_Append(self.keys, StaticTuple(key, node_value))2240 * PyList_Append(self.keys, StaticTuple(key, node_value))
2241 * return 0 # <<<<<<<<<<<<<<2241 * return 0 # <<<<<<<<<<<<<<
@@ -2262,7 +2262,7 @@
2262 return __pyx_r;2262 return __pyx_r;
2263}2263}
22642264
2265/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3122265/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":312
2266 * return 02266 * return 0
2267 * 2267 *
2268 * def parse(self): # <<<<<<<<<<<<<<2268 * def parse(self): # <<<<<<<<<<<<<<
@@ -2281,7 +2281,7 @@
2281 int __pyx_t_5;2281 int __pyx_t_5;
2282 __Pyx_RefNannySetupContext("parse");2282 __Pyx_RefNannySetupContext("parse");
22832283
2284 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3142284 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":314
2285 * def parse(self):2285 * def parse(self):
2286 * cdef Py_ssize_t byte_count2286 * cdef Py_ssize_t byte_count
2287 * if not PyString_CheckExact(self.bytes): # <<<<<<<<<<<<<<2287 * if not PyString_CheckExact(self.bytes): # <<<<<<<<<<<<<<
@@ -2291,7 +2291,7 @@
2291 __pyx_t_1 = (!PyString_CheckExact(((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->bytes));2291 __pyx_t_1 = (!PyString_CheckExact(((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->bytes));
2292 if (__pyx_t_1) {2292 if (__pyx_t_1) {
22932293
2294 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3152294 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":315
2295 * cdef Py_ssize_t byte_count2295 * cdef Py_ssize_t byte_count
2296 * if not PyString_CheckExact(self.bytes):2296 * if not PyString_CheckExact(self.bytes):
2297 * raise AssertionError('self.bytes is not a string.') # <<<<<<<<<<<<<<2297 * raise AssertionError('self.bytes is not a string.') # <<<<<<<<<<<<<<
@@ -2313,7 +2313,7 @@
2313 }2313 }
2314 __pyx_L5:;2314 __pyx_L5:;
23152315
2316 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3162316 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":316
2317 * if not PyString_CheckExact(self.bytes):2317 * if not PyString_CheckExact(self.bytes):
2318 * raise AssertionError('self.bytes is not a string.')2318 * raise AssertionError('self.bytes is not a string.')
2319 * byte_count = PyString_Size(self.bytes) # <<<<<<<<<<<<<<2319 * byte_count = PyString_Size(self.bytes) # <<<<<<<<<<<<<<
@@ -2322,7 +2322,7 @@
2322 */2322 */
2323 __pyx_v_byte_count = PyString_Size(((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->bytes);2323 __pyx_v_byte_count = PyString_Size(((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->bytes);
23242324
2325 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3172325 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":317
2326 * raise AssertionError('self.bytes is not a string.')2326 * raise AssertionError('self.bytes is not a string.')
2327 * byte_count = PyString_Size(self.bytes)2327 * byte_count = PyString_Size(self.bytes)
2328 * self._cur_str = PyString_AsString(self.bytes) # <<<<<<<<<<<<<<2328 * self._cur_str = PyString_AsString(self.bytes) # <<<<<<<<<<<<<<
@@ -2332,7 +2332,7 @@
2332 __pyx_t_4 = PyString_AsString(((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->bytes); if (unlikely(__pyx_t_4 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 317; __pyx_clineno = __LINE__; goto __pyx_L1_error;}2332 __pyx_t_4 = PyString_AsString(((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->bytes); if (unlikely(__pyx_t_4 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 317; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2333 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->_cur_str = __pyx_t_4;2333 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->_cur_str = __pyx_t_4;
23342334
2335 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3192335 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":319
2336 * self._cur_str = PyString_AsString(self.bytes)2336 * self._cur_str = PyString_AsString(self.bytes)
2337 * # This points to the last character in the string2337 * # This points to the last character in the string
2338 * self._end_str = self._cur_str + byte_count # <<<<<<<<<<<<<<2338 * self._end_str = self._cur_str + byte_count # <<<<<<<<<<<<<<
@@ -2341,7 +2341,7 @@
2341 */2341 */
2342 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->_end_str = (((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->_cur_str + __pyx_v_byte_count);2342 ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->_end_str = (((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->_cur_str + __pyx_v_byte_count);
23432343
2344 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3202344 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":320
2345 * # This points to the last character in the string2345 * # This points to the last character in the string
2346 * self._end_str = self._cur_str + byte_count2346 * self._end_str = self._cur_str + byte_count
2347 * while self._cur_str < self._end_str: # <<<<<<<<<<<<<<2347 * while self._cur_str < self._end_str: # <<<<<<<<<<<<<<
@@ -2352,7 +2352,7 @@
2352 __pyx_t_1 = (((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->_cur_str < ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->_end_str);2352 __pyx_t_1 = (((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->_cur_str < ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->_end_str);
2353 if (!__pyx_t_1) break;2353 if (!__pyx_t_1) break;
23542354
2355 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3212355 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":321
2356 * self._end_str = self._cur_str + byte_count2356 * self._end_str = self._cur_str + byte_count
2357 * while self._cur_str < self._end_str:2357 * while self._cur_str < self._end_str:
2358 * self.process_line() # <<<<<<<<<<<<<<2358 * self.process_line() # <<<<<<<<<<<<<<
@@ -2362,7 +2362,7 @@
2362 __pyx_t_5 = ((struct __pyx_vtabstruct_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->__pyx_vtab)->process_line(((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}2362 __pyx_t_5 = ((struct __pyx_vtabstruct_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)->__pyx_vtab)->process_line(((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_v_self)); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2363 }2363 }
23642364
2365 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3222365 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":322
2366 * while self._cur_str < self._end_str:2366 * while self._cur_str < self._end_str:
2367 * self.process_line()2367 * self.process_line()
2368 * return self.keys # <<<<<<<<<<<<<<2368 * return self.keys # <<<<<<<<<<<<<<
@@ -2387,7 +2387,7 @@
2387 return __pyx_r;2387 return __pyx_r;
2388}2388}
23892389
2390/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3252390/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":325
2391 * 2391 *
2392 * 2392 *
2393 * def _parse_leaf_lines(bytes, key_length, ref_list_length): # <<<<<<<<<<<<<<2393 * def _parse_leaf_lines(bytes, key_length, ref_list_length): # <<<<<<<<<<<<<<
@@ -2458,7 +2458,7 @@
2458 __pyx_L4_argument_unpacking_done:;2458 __pyx_L4_argument_unpacking_done:;
2459 __pyx_v_parser = ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)Py_None); __Pyx_INCREF(Py_None);2459 __pyx_v_parser = ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)Py_None); __Pyx_INCREF(Py_None);
24602460
2461 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3262461 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":326
2462 * 2462 *
2463 * def _parse_leaf_lines(bytes, key_length, ref_list_length):2463 * def _parse_leaf_lines(bytes, key_length, ref_list_length):
2464 * parser = BTreeLeafParser(bytes, key_length, ref_list_length) # <<<<<<<<<<<<<<2464 * parser = BTreeLeafParser(bytes, key_length, ref_list_length) # <<<<<<<<<<<<<<
@@ -2483,7 +2483,7 @@
2483 __pyx_v_parser = ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_t_2);2483 __pyx_v_parser = ((struct __pyx_obj_6bzrlib_21_btree_serializer_pyx_BTreeLeafParser *)__pyx_t_2);
2484 __pyx_t_2 = 0;2484 __pyx_t_2 = 0;
24852485
2486 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3272486 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":327
2487 * def _parse_leaf_lines(bytes, key_length, ref_list_length):2487 * def _parse_leaf_lines(bytes, key_length, ref_list_length):
2488 * parser = BTreeLeafParser(bytes, key_length, ref_list_length)2488 * parser = BTreeLeafParser(bytes, key_length, ref_list_length)
2489 * return parser.parse() # <<<<<<<<<<<<<<2489 * return parser.parse() # <<<<<<<<<<<<<<
@@ -2514,7 +2514,7 @@
2514 return __pyx_r;2514 return __pyx_r;
2515}2515}
25162516
2517/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3492517/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":349
2518 * _hexbuf = '0123456789abcdef'2518 * _hexbuf = '0123456789abcdef'
2519 * 2519 *
2520 * cdef _populate_unhexbuf(): # <<<<<<<<<<<<<<2520 * cdef _populate_unhexbuf(): # <<<<<<<<<<<<<<
@@ -2527,7 +2527,7 @@
2527 PyObject *__pyx_r = NULL;2527 PyObject *__pyx_r = NULL;
2528 __Pyx_RefNannySetupContext("_populate_unhexbuf");2528 __Pyx_RefNannySetupContext("_populate_unhexbuf");
25292529
2530 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3512530 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":351
2531 * cdef _populate_unhexbuf():2531 * cdef _populate_unhexbuf():
2532 * cdef int i2532 * cdef int i
2533 * for i from 0 <= i < 256: # <<<<<<<<<<<<<<2533 * for i from 0 <= i < 256: # <<<<<<<<<<<<<<
@@ -2536,7 +2536,7 @@
2536 */2536 */
2537 for (__pyx_v_i = 0; __pyx_v_i < 256; __pyx_v_i++) {2537 for (__pyx_v_i = 0; __pyx_v_i < 256; __pyx_v_i++) {
25382538
2539 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3522539 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":352
2540 * cdef int i2540 * cdef int i
2541 * for i from 0 <= i < 256:2541 * for i from 0 <= i < 256:
2542 * _unhexbuf[i] = -1 # <<<<<<<<<<<<<<2542 * _unhexbuf[i] = -1 # <<<<<<<<<<<<<<
@@ -2546,7 +2546,7 @@
2546 (__pyx_v_6bzrlib_21_btree_serializer_pyx__unhexbuf[__pyx_v_i]) = -1;2546 (__pyx_v_6bzrlib_21_btree_serializer_pyx__unhexbuf[__pyx_v_i]) = -1;
2547 }2547 }
25482548
2549 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3532549 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":353
2550 * for i from 0 <= i < 256:2550 * for i from 0 <= i < 256:
2551 * _unhexbuf[i] = -12551 * _unhexbuf[i] = -1
2552 * for i from 0 <= i < 10: # 0123456789 => map to the raw number # <<<<<<<<<<<<<<2552 * for i from 0 <= i < 10: # 0123456789 => map to the raw number # <<<<<<<<<<<<<<
@@ -2555,7 +2555,7 @@
2555 */2555 */
2556 for (__pyx_v_i = 0; __pyx_v_i < 10; __pyx_v_i++) {2556 for (__pyx_v_i = 0; __pyx_v_i < 10; __pyx_v_i++) {
25572557
2558 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3542558 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":354
2559 * _unhexbuf[i] = -12559 * _unhexbuf[i] = -1
2560 * for i from 0 <= i < 10: # 0123456789 => map to the raw number2560 * for i from 0 <= i < 10: # 0123456789 => map to the raw number
2561 * _unhexbuf[(i + c'0')] = i # <<<<<<<<<<<<<<2561 * _unhexbuf[(i + c'0')] = i # <<<<<<<<<<<<<<
@@ -2565,7 +2565,7 @@
2565 (__pyx_v_6bzrlib_21_btree_serializer_pyx__unhexbuf[(__pyx_v_i + '0')]) = __pyx_v_i;2565 (__pyx_v_6bzrlib_21_btree_serializer_pyx__unhexbuf[(__pyx_v_i + '0')]) = __pyx_v_i;
2566 }2566 }
25672567
2568 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3552568 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":355
2569 * for i from 0 <= i < 10: # 0123456789 => map to the raw number2569 * for i from 0 <= i < 10: # 0123456789 => map to the raw number
2570 * _unhexbuf[(i + c'0')] = i2570 * _unhexbuf[(i + c'0')] = i
2571 * for i from 10 <= i < 16: # abcdef => 10, 11, 12, 13, 14, 15, 16 # <<<<<<<<<<<<<<2571 * for i from 10 <= i < 16: # abcdef => 10, 11, 12, 13, 14, 15, 16 # <<<<<<<<<<<<<<
@@ -2574,7 +2574,7 @@
2574 */2574 */
2575 for (__pyx_v_i = 10; __pyx_v_i < 16; __pyx_v_i++) {2575 for (__pyx_v_i = 10; __pyx_v_i < 16; __pyx_v_i++) {
25762576
2577 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3562577 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":356
2578 * _unhexbuf[(i + c'0')] = i2578 * _unhexbuf[(i + c'0')] = i
2579 * for i from 10 <= i < 16: # abcdef => 10, 11, 12, 13, 14, 15, 162579 * for i from 10 <= i < 16: # abcdef => 10, 11, 12, 13, 14, 15, 16
2580 * _unhexbuf[(i - 10 + c'a')] = i # <<<<<<<<<<<<<<2580 * _unhexbuf[(i - 10 + c'a')] = i # <<<<<<<<<<<<<<
@@ -2584,7 +2584,7 @@
2584 (__pyx_v_6bzrlib_21_btree_serializer_pyx__unhexbuf[((__pyx_v_i - 10) + 'a')]) = __pyx_v_i;2584 (__pyx_v_6bzrlib_21_btree_serializer_pyx__unhexbuf[((__pyx_v_i - 10) + 'a')]) = __pyx_v_i;
2585 }2585 }
25862586
2587 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3572587 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":357
2588 * for i from 10 <= i < 16: # abcdef => 10, 11, 12, 13, 14, 15, 162588 * for i from 10 <= i < 16: # abcdef => 10, 11, 12, 13, 14, 15, 16
2589 * _unhexbuf[(i - 10 + c'a')] = i2589 * _unhexbuf[(i - 10 + c'a')] = i
2590 * for i from 10 <= i < 16: # ABCDEF => 10, 11, 12, 13, 14, 15, 16 # <<<<<<<<<<<<<<2590 * for i from 10 <= i < 16: # ABCDEF => 10, 11, 12, 13, 14, 15, 16 # <<<<<<<<<<<<<<
@@ -2593,7 +2593,7 @@
2593 */2593 */
2594 for (__pyx_v_i = 10; __pyx_v_i < 16; __pyx_v_i++) {2594 for (__pyx_v_i = 10; __pyx_v_i < 16; __pyx_v_i++) {
25952595
2596 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3582596 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":358
2597 * _unhexbuf[(i - 10 + c'a')] = i2597 * _unhexbuf[(i - 10 + c'a')] = i
2598 * for i from 10 <= i < 16: # ABCDEF => 10, 11, 12, 13, 14, 15, 162598 * for i from 10 <= i < 16: # ABCDEF => 10, 11, 12, 13, 14, 15, 16
2599 * _unhexbuf[(i - 10 + c'A')] = i # <<<<<<<<<<<<<<2599 * _unhexbuf[(i - 10 + c'A')] = i # <<<<<<<<<<<<<<
@@ -2609,7 +2609,7 @@
2609 return __pyx_r;2609 return __pyx_r;
2610}2610}
26112611
2612/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3622612/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":362
2613 * 2613 *
2614 * 2614 *
2615 * cdef int _unhexlify_sha1(char *as_hex, char *as_bin): # cannot_raise # <<<<<<<<<<<<<<2615 * cdef int _unhexlify_sha1(char *as_hex, char *as_bin): # cannot_raise # <<<<<<<<<<<<<<
@@ -2628,7 +2628,7 @@
2628 int __pyx_t_3;2628 int __pyx_t_3;
2629 __Pyx_RefNannySetupContext("_unhexlify_sha1");2629 __Pyx_RefNannySetupContext("_unhexlify_sha1");
26302630
2631 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3742631 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":374
2632 * # binascii does this using isupper() and tolower() and ?: syntax. I'm2632 * # binascii does this using isupper() and tolower() and ?: syntax. I'm
2633 * # guessing a simple lookup array should be faster.2633 * # guessing a simple lookup array should be faster.
2634 * j = 0 # <<<<<<<<<<<<<<2634 * j = 0 # <<<<<<<<<<<<<<
@@ -2637,7 +2637,7 @@
2637 */2637 */
2638 __pyx_v_j = 0;2638 __pyx_v_j = 0;
26392639
2640 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3752640 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":375
2641 * # guessing a simple lookup array should be faster.2641 * # guessing a simple lookup array should be faster.
2642 * j = 02642 * j = 0
2643 * for i from 0 <= i < 20: # <<<<<<<<<<<<<<2643 * for i from 0 <= i < 20: # <<<<<<<<<<<<<<
@@ -2646,7 +2646,7 @@
2646 */2646 */
2647 for (__pyx_v_i = 0; __pyx_v_i < 20; __pyx_v_i++) {2647 for (__pyx_v_i = 0; __pyx_v_i < 20; __pyx_v_i++) {
26482648
2649 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3762649 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":376
2650 * j = 02650 * j = 0
2651 * for i from 0 <= i < 20:2651 * for i from 0 <= i < 20:
2652 * top = _unhexbuf[<unsigned char>(as_hex[j])] # <<<<<<<<<<<<<<2652 * top = _unhexbuf[<unsigned char>(as_hex[j])] # <<<<<<<<<<<<<<
@@ -2655,7 +2655,7 @@
2655 */2655 */
2656 __pyx_v_top = (__pyx_v_6bzrlib_21_btree_serializer_pyx__unhexbuf[((unsigned char)(__pyx_v_as_hex[__pyx_v_j]))]);2656 __pyx_v_top = (__pyx_v_6bzrlib_21_btree_serializer_pyx__unhexbuf[((unsigned char)(__pyx_v_as_hex[__pyx_v_j]))]);
26572657
2658 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3772658 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":377
2659 * for i from 0 <= i < 20:2659 * for i from 0 <= i < 20:
2660 * top = _unhexbuf[<unsigned char>(as_hex[j])]2660 * top = _unhexbuf[<unsigned char>(as_hex[j])]
2661 * j = j + 1 # <<<<<<<<<<<<<<2661 * j = j + 1 # <<<<<<<<<<<<<<
@@ -2664,7 +2664,7 @@
2664 */2664 */
2665 __pyx_v_j = (__pyx_v_j + 1);2665 __pyx_v_j = (__pyx_v_j + 1);
26662666
2667 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3782667 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":378
2668 * top = _unhexbuf[<unsigned char>(as_hex[j])]2668 * top = _unhexbuf[<unsigned char>(as_hex[j])]
2669 * j = j + 12669 * j = j + 1
2670 * bot = _unhexbuf[<unsigned char>(as_hex[j])] # <<<<<<<<<<<<<<2670 * bot = _unhexbuf[<unsigned char>(as_hex[j])] # <<<<<<<<<<<<<<
@@ -2673,7 +2673,7 @@
2673 */2673 */
2674 __pyx_v_bot = (__pyx_v_6bzrlib_21_btree_serializer_pyx__unhexbuf[((unsigned char)(__pyx_v_as_hex[__pyx_v_j]))]);2674 __pyx_v_bot = (__pyx_v_6bzrlib_21_btree_serializer_pyx__unhexbuf[((unsigned char)(__pyx_v_as_hex[__pyx_v_j]))]);
26752675
2676 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3792676 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":379
2677 * j = j + 12677 * j = j + 1
2678 * bot = _unhexbuf[<unsigned char>(as_hex[j])]2678 * bot = _unhexbuf[<unsigned char>(as_hex[j])]
2679 * j = j + 1 # <<<<<<<<<<<<<<2679 * j = j + 1 # <<<<<<<<<<<<<<
@@ -2682,7 +2682,7 @@
2682 */2682 */
2683 __pyx_v_j = (__pyx_v_j + 1);2683 __pyx_v_j = (__pyx_v_j + 1);
26842684
2685 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3802685 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":380
2686 * bot = _unhexbuf[<unsigned char>(as_hex[j])]2686 * bot = _unhexbuf[<unsigned char>(as_hex[j])]
2687 * j = j + 12687 * j = j + 1
2688 * if top == -1 or bot == -1: # <<<<<<<<<<<<<<2688 * if top == -1 or bot == -1: # <<<<<<<<<<<<<<
@@ -2698,7 +2698,7 @@
2698 }2698 }
2699 if (__pyx_t_3) {2699 if (__pyx_t_3) {
27002700
2701 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3812701 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":381
2702 * j = j + 12702 * j = j + 1
2703 * if top == -1 or bot == -1:2703 * if top == -1 or bot == -1:
2704 * return 0 # <<<<<<<<<<<<<<2704 * return 0 # <<<<<<<<<<<<<<
@@ -2711,7 +2711,7 @@
2711 }2711 }
2712 __pyx_L5:;2712 __pyx_L5:;
27132713
2714 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3822714 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":382
2715 * if top == -1 or bot == -1:2715 * if top == -1 or bot == -1:
2716 * return 02716 * return 0
2717 * as_bin[i] = <unsigned char>((top << 4) + bot); # <<<<<<<<<<<<<<2717 * as_bin[i] = <unsigned char>((top << 4) + bot); # <<<<<<<<<<<<<<
@@ -2721,7 +2721,7 @@
2721 (__pyx_v_as_bin[__pyx_v_i]) = ((unsigned char)((__pyx_v_top << 4) + __pyx_v_bot));2721 (__pyx_v_as_bin[__pyx_v_i]) = ((unsigned char)((__pyx_v_top << 4) + __pyx_v_bot));
2722 }2722 }
27232723
2724 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3832724 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":383
2725 * return 02725 * return 0
2726 * as_bin[i] = <unsigned char>((top << 4) + bot);2726 * as_bin[i] = <unsigned char>((top << 4) + bot);
2727 * return 1 # <<<<<<<<<<<<<<2727 * return 1 # <<<<<<<<<<<<<<
@@ -2737,7 +2737,7 @@
2737 return __pyx_r;2737 return __pyx_r;
2738}2738}
27392739
2740/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3862740/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":386
2741 * 2741 *
2742 * 2742 *
2743 * def _py_unhexlify(as_hex): # <<<<<<<<<<<<<<2743 * def _py_unhexlify(as_hex): # <<<<<<<<<<<<<<
@@ -2761,7 +2761,7 @@
2761 __pyx_self = __pyx_self;2761 __pyx_self = __pyx_self;
2762 __pyx_v_as_bin = Py_None; __Pyx_INCREF(Py_None);2762 __pyx_v_as_bin = Py_None; __Pyx_INCREF(Py_None);
27632763
2764 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3882764 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":388
2765 * def _py_unhexlify(as_hex):2765 * def _py_unhexlify(as_hex):
2766 * """For the test infrastructure, just thunks to _unhexlify_sha1"""2766 * """For the test infrastructure, just thunks to _unhexlify_sha1"""
2767 * if len(as_hex) != 40 or not PyString_CheckExact(as_hex): # <<<<<<<<<<<<<<2767 * if len(as_hex) != 40 or not PyString_CheckExact(as_hex): # <<<<<<<<<<<<<<
@@ -2778,7 +2778,7 @@
2778 }2778 }
2779 if (__pyx_t_4) {2779 if (__pyx_t_4) {
27802780
2781 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3892781 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":389
2782 * """For the test infrastructure, just thunks to _unhexlify_sha1"""2782 * """For the test infrastructure, just thunks to _unhexlify_sha1"""
2783 * if len(as_hex) != 40 or not PyString_CheckExact(as_hex):2783 * if len(as_hex) != 40 or not PyString_CheckExact(as_hex):
2784 * raise ValueError('not a 40-byte hex digest') # <<<<<<<<<<<<<<2784 * raise ValueError('not a 40-byte hex digest') # <<<<<<<<<<<<<<
@@ -2800,7 +2800,7 @@
2800 }2800 }
2801 __pyx_L5:;2801 __pyx_L5:;
28022802
2803 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3902803 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":390
2804 * if len(as_hex) != 40 or not PyString_CheckExact(as_hex):2804 * if len(as_hex) != 40 or not PyString_CheckExact(as_hex):
2805 * raise ValueError('not a 40-byte hex digest')2805 * raise ValueError('not a 40-byte hex digest')
2806 * as_bin = PyString_FromStringAndSize(NULL, 20) # <<<<<<<<<<<<<<2806 * as_bin = PyString_FromStringAndSize(NULL, 20) # <<<<<<<<<<<<<<
@@ -2813,7 +2813,7 @@
2813 __pyx_v_as_bin = __pyx_t_6;2813 __pyx_v_as_bin = __pyx_t_6;
2814 __pyx_t_6 = 0;2814 __pyx_t_6 = 0;
28152815
2816 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3912816 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":391
2817 * raise ValueError('not a 40-byte hex digest')2817 * raise ValueError('not a 40-byte hex digest')
2818 * as_bin = PyString_FromStringAndSize(NULL, 20)2818 * as_bin = PyString_FromStringAndSize(NULL, 20)
2819 * if _unhexlify_sha1(PyString_AS_STRING(as_hex), PyString_AS_STRING(as_bin)): # <<<<<<<<<<<<<<2819 * if _unhexlify_sha1(PyString_AS_STRING(as_hex), PyString_AS_STRING(as_bin)): # <<<<<<<<<<<<<<
@@ -2823,7 +2823,7 @@
2823 __pyx_t_7 = __pyx_f_6bzrlib_21_btree_serializer_pyx__unhexlify_sha1(PyString_AS_STRING(__pyx_v_as_hex), PyString_AS_STRING(__pyx_v_as_bin));2823 __pyx_t_7 = __pyx_f_6bzrlib_21_btree_serializer_pyx__unhexlify_sha1(PyString_AS_STRING(__pyx_v_as_hex), PyString_AS_STRING(__pyx_v_as_bin));
2824 if (__pyx_t_7) {2824 if (__pyx_t_7) {
28252825
2826 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3922826 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":392
2827 * as_bin = PyString_FromStringAndSize(NULL, 20)2827 * as_bin = PyString_FromStringAndSize(NULL, 20)
2828 * if _unhexlify_sha1(PyString_AS_STRING(as_hex), PyString_AS_STRING(as_bin)):2828 * if _unhexlify_sha1(PyString_AS_STRING(as_hex), PyString_AS_STRING(as_bin)):
2829 * return as_bin # <<<<<<<<<<<<<<2829 * return as_bin # <<<<<<<<<<<<<<
@@ -2838,7 +2838,7 @@
2838 }2838 }
2839 __pyx_L6:;2839 __pyx_L6:;
28402840
2841 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3932841 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":393
2842 * if _unhexlify_sha1(PyString_AS_STRING(as_hex), PyString_AS_STRING(as_bin)):2842 * if _unhexlify_sha1(PyString_AS_STRING(as_hex), PyString_AS_STRING(as_bin)):
2843 * return as_bin2843 * return as_bin
2844 * return None # <<<<<<<<<<<<<<2844 * return None # <<<<<<<<<<<<<<
@@ -2864,7 +2864,7 @@
2864 return __pyx_r;2864 return __pyx_r;
2865}2865}
28662866
2867/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":3962867/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":396
2868 * 2868 *
2869 * 2869 *
2870 * cdef void _hexlify_sha1(char *as_bin, char *as_hex): # cannot_raise # <<<<<<<<<<<<<<2870 * cdef void _hexlify_sha1(char *as_bin, char *as_hex): # cannot_raise # <<<<<<<<<<<<<<
@@ -2878,7 +2878,7 @@
2878 char __pyx_v_c;2878 char __pyx_v_c;
2879 __Pyx_RefNannySetupContext("_hexlify_sha1");2879 __Pyx_RefNannySetupContext("_hexlify_sha1");
28802880
2881 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4002881 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":400
2882 * cdef char c2882 * cdef char c
2883 * 2883 *
2884 * j = 0 # <<<<<<<<<<<<<<2884 * j = 0 # <<<<<<<<<<<<<<
@@ -2887,7 +2887,7 @@
2887 */2887 */
2888 __pyx_v_j = 0;2888 __pyx_v_j = 0;
28892889
2890 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4012890 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":401
2891 * 2891 *
2892 * j = 02892 * j = 0
2893 * for i from 0 <= i < 20: # <<<<<<<<<<<<<<2893 * for i from 0 <= i < 20: # <<<<<<<<<<<<<<
@@ -2896,7 +2896,7 @@
2896 */2896 */
2897 for (__pyx_v_i = 0; __pyx_v_i < 20; __pyx_v_i++) {2897 for (__pyx_v_i = 0; __pyx_v_i < 20; __pyx_v_i++) {
28982898
2899 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4022899 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":402
2900 * j = 02900 * j = 0
2901 * for i from 0 <= i < 20:2901 * for i from 0 <= i < 20:
2902 * c = as_bin[i] # <<<<<<<<<<<<<<2902 * c = as_bin[i] # <<<<<<<<<<<<<<
@@ -2905,7 +2905,7 @@
2905 */2905 */
2906 __pyx_v_c = (__pyx_v_as_bin[__pyx_v_i]);2906 __pyx_v_c = (__pyx_v_as_bin[__pyx_v_i]);
29072907
2908 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4032908 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":403
2909 * for i from 0 <= i < 20:2909 * for i from 0 <= i < 20:
2910 * c = as_bin[i]2910 * c = as_bin[i]
2911 * as_hex[j] = _hexbuf[(c>>4)&0xf] # <<<<<<<<<<<<<<2911 * as_hex[j] = _hexbuf[(c>>4)&0xf] # <<<<<<<<<<<<<<
@@ -2914,7 +2914,7 @@
2914 */2914 */
2915 (__pyx_v_as_hex[__pyx_v_j]) = (__pyx_v_6bzrlib_21_btree_serializer_pyx__hexbuf[((__pyx_v_c >> 4) & 0xf)]);2915 (__pyx_v_as_hex[__pyx_v_j]) = (__pyx_v_6bzrlib_21_btree_serializer_pyx__hexbuf[((__pyx_v_c >> 4) & 0xf)]);
29162916
2917 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4042917 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":404
2918 * c = as_bin[i]2918 * c = as_bin[i]
2919 * as_hex[j] = _hexbuf[(c>>4)&0xf]2919 * as_hex[j] = _hexbuf[(c>>4)&0xf]
2920 * j = j + 1 # <<<<<<<<<<<<<<2920 * j = j + 1 # <<<<<<<<<<<<<<
@@ -2923,7 +2923,7 @@
2923 */2923 */
2924 __pyx_v_j = (__pyx_v_j + 1);2924 __pyx_v_j = (__pyx_v_j + 1);
29252925
2926 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4052926 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":405
2927 * as_hex[j] = _hexbuf[(c>>4)&0xf]2927 * as_hex[j] = _hexbuf[(c>>4)&0xf]
2928 * j = j + 12928 * j = j + 1
2929 * as_hex[j] = _hexbuf[(c)&0xf] # <<<<<<<<<<<<<<2929 * as_hex[j] = _hexbuf[(c)&0xf] # <<<<<<<<<<<<<<
@@ -2932,7 +2932,7 @@
2932 */2932 */
2933 (__pyx_v_as_hex[__pyx_v_j]) = (__pyx_v_6bzrlib_21_btree_serializer_pyx__hexbuf[(__pyx_v_c & 0xf)]);2933 (__pyx_v_as_hex[__pyx_v_j]) = (__pyx_v_6bzrlib_21_btree_serializer_pyx__hexbuf[(__pyx_v_c & 0xf)]);
29342934
2935 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4062935 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":406
2936 * j = j + 12936 * j = j + 1
2937 * as_hex[j] = _hexbuf[(c)&0xf]2937 * as_hex[j] = _hexbuf[(c)&0xf]
2938 * j = j + 1 # <<<<<<<<<<<<<<2938 * j = j + 1 # <<<<<<<<<<<<<<
@@ -2945,7 +2945,7 @@
2945 __Pyx_RefNannyFinishContext();2945 __Pyx_RefNannyFinishContext();
2946}2946}
29472947
2948/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4092948/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":409
2949 * 2949 *
2950 * 2950 *
2951 * def _py_hexlify(as_bin): # <<<<<<<<<<<<<<2951 * def _py_hexlify(as_bin): # <<<<<<<<<<<<<<
@@ -2968,7 +2968,7 @@
2968 __pyx_self = __pyx_self;2968 __pyx_self = __pyx_self;
2969 __pyx_v_as_hex = Py_None; __Pyx_INCREF(Py_None);2969 __pyx_v_as_hex = Py_None; __Pyx_INCREF(Py_None);
29702970
2971 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4112971 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":411
2972 * def _py_hexlify(as_bin):2972 * def _py_hexlify(as_bin):
2973 * """For test infrastructure, thunk to _hexlify_sha1"""2973 * """For test infrastructure, thunk to _hexlify_sha1"""
2974 * if len(as_bin) != 20 or not PyString_CheckExact(as_bin): # <<<<<<<<<<<<<<2974 * if len(as_bin) != 20 or not PyString_CheckExact(as_bin): # <<<<<<<<<<<<<<
@@ -2985,7 +2985,7 @@
2985 }2985 }
2986 if (__pyx_t_4) {2986 if (__pyx_t_4) {
29872987
2988 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4122988 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":412
2989 * """For test infrastructure, thunk to _hexlify_sha1"""2989 * """For test infrastructure, thunk to _hexlify_sha1"""
2990 * if len(as_bin) != 20 or not PyString_CheckExact(as_bin):2990 * if len(as_bin) != 20 or not PyString_CheckExact(as_bin):
2991 * raise ValueError('not a 20-byte binary digest') # <<<<<<<<<<<<<<2991 * raise ValueError('not a 20-byte binary digest') # <<<<<<<<<<<<<<
@@ -3007,7 +3007,7 @@
3007 }3007 }
3008 __pyx_L5:;3008 __pyx_L5:;
30093009
3010 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4133010 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":413
3011 * if len(as_bin) != 20 or not PyString_CheckExact(as_bin):3011 * if len(as_bin) != 20 or not PyString_CheckExact(as_bin):
3012 * raise ValueError('not a 20-byte binary digest')3012 * raise ValueError('not a 20-byte binary digest')
3013 * as_hex = PyString_FromStringAndSize(NULL, 40) # <<<<<<<<<<<<<<3013 * as_hex = PyString_FromStringAndSize(NULL, 40) # <<<<<<<<<<<<<<
@@ -3020,7 +3020,7 @@
3020 __pyx_v_as_hex = __pyx_t_6;3020 __pyx_v_as_hex = __pyx_t_6;
3021 __pyx_t_6 = 0;3021 __pyx_t_6 = 0;
30223022
3023 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4143023 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":414
3024 * raise ValueError('not a 20-byte binary digest')3024 * raise ValueError('not a 20-byte binary digest')
3025 * as_hex = PyString_FromStringAndSize(NULL, 40)3025 * as_hex = PyString_FromStringAndSize(NULL, 40)
3026 * _hexlify_sha1(PyString_AS_STRING(as_bin), PyString_AS_STRING(as_hex)) # <<<<<<<<<<<<<<3026 * _hexlify_sha1(PyString_AS_STRING(as_bin), PyString_AS_STRING(as_hex)) # <<<<<<<<<<<<<<
@@ -3029,7 +3029,7 @@
3029 */3029 */
3030 __pyx_f_6bzrlib_21_btree_serializer_pyx__hexlify_sha1(PyString_AS_STRING(__pyx_v_as_bin), PyString_AS_STRING(__pyx_v_as_hex));3030 __pyx_f_6bzrlib_21_btree_serializer_pyx__hexlify_sha1(PyString_AS_STRING(__pyx_v_as_bin), PyString_AS_STRING(__pyx_v_as_hex));
30313031
3032 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4153032 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":415
3033 * as_hex = PyString_FromStringAndSize(NULL, 40)3033 * as_hex = PyString_FromStringAndSize(NULL, 40)
3034 * _hexlify_sha1(PyString_AS_STRING(as_bin), PyString_AS_STRING(as_hex))3034 * _hexlify_sha1(PyString_AS_STRING(as_bin), PyString_AS_STRING(as_hex))
3035 * return as_hex # <<<<<<<<<<<<<<3035 * return as_hex # <<<<<<<<<<<<<<
@@ -3055,7 +3055,7 @@
3055 return __pyx_r;3055 return __pyx_r;
3056}3056}
30573057
3058/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4183058/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":418
3059 * 3059 *
3060 * 3060 *
3061 * cdef int _key_to_sha1(key, char *sha1): # cannot_raise # <<<<<<<<<<<<<<3061 * cdef int _key_to_sha1(key, char *sha1): # cannot_raise # <<<<<<<<<<<<<<
@@ -3071,7 +3071,7 @@
3071 int __pyx_t_2;3071 int __pyx_t_2;
3072 __Pyx_RefNannySetupContext("_key_to_sha1");3072 __Pyx_RefNannySetupContext("_key_to_sha1");
30733073
3074 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4283074 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":428
3075 * cdef PyObject *p_val3075 * cdef PyObject *p_val
3076 * 3076 *
3077 * if StaticTuple_CheckExact(key) and StaticTuple_GET_SIZE(key) == 1: # <<<<<<<<<<<<<<3077 * if StaticTuple_CheckExact(key) and StaticTuple_GET_SIZE(key) == 1: # <<<<<<<<<<<<<<
@@ -3087,7 +3087,7 @@
3087 }3087 }
3088 if (__pyx_t_2) {3088 if (__pyx_t_2) {
30893089
3090 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4293090 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":429
3091 * 3091 *
3092 * if StaticTuple_CheckExact(key) and StaticTuple_GET_SIZE(key) == 1:3092 * if StaticTuple_CheckExact(key) and StaticTuple_GET_SIZE(key) == 1:
3093 * p_val = <PyObject *>StaticTuple_GET_ITEM(key, 0) # <<<<<<<<<<<<<<3093 * p_val = <PyObject *>StaticTuple_GET_ITEM(key, 0) # <<<<<<<<<<<<<<
@@ -3099,7 +3099,7 @@
3099 goto __pyx_L3;3099 goto __pyx_L3;
3100 }3100 }
31013101
3102 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4303102 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":430
3103 * if StaticTuple_CheckExact(key) and StaticTuple_GET_SIZE(key) == 1:3103 * if StaticTuple_CheckExact(key) and StaticTuple_GET_SIZE(key) == 1:
3104 * p_val = <PyObject *>StaticTuple_GET_ITEM(key, 0)3104 * p_val = <PyObject *>StaticTuple_GET_ITEM(key, 0)
3105 * elif (PyTuple_CheckExact(key) and PyTuple_GET_SIZE(key) == 1): # <<<<<<<<<<<<<<3105 * elif (PyTuple_CheckExact(key) and PyTuple_GET_SIZE(key) == 1): # <<<<<<<<<<<<<<
@@ -3114,7 +3114,7 @@
3114 }3114 }
3115 if (__pyx_t_1) {3115 if (__pyx_t_1) {
31163116
3117 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4313117 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":431
3118 * p_val = <PyObject *>StaticTuple_GET_ITEM(key, 0)3118 * p_val = <PyObject *>StaticTuple_GET_ITEM(key, 0)
3119 * elif (PyTuple_CheckExact(key) and PyTuple_GET_SIZE(key) == 1):3119 * elif (PyTuple_CheckExact(key) and PyTuple_GET_SIZE(key) == 1):
3120 * p_val = PyTuple_GET_ITEM_ptr_object(key, 0) # <<<<<<<<<<<<<<3120 * p_val = PyTuple_GET_ITEM_ptr_object(key, 0) # <<<<<<<<<<<<<<
@@ -3126,7 +3126,7 @@
3126 }3126 }
3127 /*else*/ {3127 /*else*/ {
31283128
3129 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4343129 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":434
3130 * else:3130 * else:
3131 * # Not a tuple or a StaticTuple3131 * # Not a tuple or a StaticTuple
3132 * return 0 # <<<<<<<<<<<<<<3132 * return 0 # <<<<<<<<<<<<<<
@@ -3138,7 +3138,7 @@
3138 }3138 }
3139 __pyx_L3:;3139 __pyx_L3:;
31403140
3141 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4353141 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":435
3142 * # Not a tuple or a StaticTuple3142 * # Not a tuple or a StaticTuple
3143 * return 03143 * return 0
3144 * if (PyString_CheckExact_ptr(p_val) and PyString_GET_SIZE_ptr(p_val) == 45): # <<<<<<<<<<<<<<3144 * if (PyString_CheckExact_ptr(p_val) and PyString_GET_SIZE_ptr(p_val) == 45): # <<<<<<<<<<<<<<
@@ -3153,7 +3153,7 @@
3153 }3153 }
3154 if (__pyx_t_2) {3154 if (__pyx_t_2) {
31553155
3156 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4363156 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":436
3157 * return 03157 * return 0
3158 * if (PyString_CheckExact_ptr(p_val) and PyString_GET_SIZE_ptr(p_val) == 45):3158 * if (PyString_CheckExact_ptr(p_val) and PyString_GET_SIZE_ptr(p_val) == 45):
3159 * c_val = PyString_AS_STRING_ptr(p_val) # <<<<<<<<<<<<<<3159 * c_val = PyString_AS_STRING_ptr(p_val) # <<<<<<<<<<<<<<
@@ -3165,7 +3165,7 @@
3165 }3165 }
3166 /*else*/ {3166 /*else*/ {
31673167
3168 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4383168 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":438
3169 * c_val = PyString_AS_STRING_ptr(p_val)3169 * c_val = PyString_AS_STRING_ptr(p_val)
3170 * else:3170 * else:
3171 * return 0 # <<<<<<<<<<<<<<3171 * return 0 # <<<<<<<<<<<<<<
@@ -3177,7 +3177,7 @@
3177 }3177 }
3178 __pyx_L4:;3178 __pyx_L4:;
31793179
3180 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4393180 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":439
3181 * else:3181 * else:
3182 * return 03182 * return 0
3183 * if strncmp(c_val, 'sha1:', 5) != 0: # <<<<<<<<<<<<<<3183 * if strncmp(c_val, 'sha1:', 5) != 0: # <<<<<<<<<<<<<<
@@ -3187,7 +3187,7 @@
3187 __pyx_t_2 = (strncmp(__pyx_v_c_val, __pyx_k_3, 5) != 0);3187 __pyx_t_2 = (strncmp(__pyx_v_c_val, __pyx_k_3, 5) != 0);
3188 if (__pyx_t_2) {3188 if (__pyx_t_2) {
31893189
3190 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4403190 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":440
3191 * return 03191 * return 0
3192 * if strncmp(c_val, 'sha1:', 5) != 0:3192 * if strncmp(c_val, 'sha1:', 5) != 0:
3193 * return 0 # <<<<<<<<<<<<<<3193 * return 0 # <<<<<<<<<<<<<<
@@ -3200,7 +3200,7 @@
3200 }3200 }
3201 __pyx_L5:;3201 __pyx_L5:;
32023202
3203 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4413203 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":441
3204 * if strncmp(c_val, 'sha1:', 5) != 0:3204 * if strncmp(c_val, 'sha1:', 5) != 0:
3205 * return 03205 * return 0
3206 * if not _unhexlify_sha1(c_val + 5, sha1): # <<<<<<<<<<<<<<3206 * if not _unhexlify_sha1(c_val + 5, sha1): # <<<<<<<<<<<<<<
@@ -3210,7 +3210,7 @@
3210 __pyx_t_2 = (!__pyx_f_6bzrlib_21_btree_serializer_pyx__unhexlify_sha1((__pyx_v_c_val + 5), __pyx_v_sha1));3210 __pyx_t_2 = (!__pyx_f_6bzrlib_21_btree_serializer_pyx__unhexlify_sha1((__pyx_v_c_val + 5), __pyx_v_sha1));
3211 if (__pyx_t_2) {3211 if (__pyx_t_2) {
32123212
3213 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4423213 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":442
3214 * return 03214 * return 0
3215 * if not _unhexlify_sha1(c_val + 5, sha1):3215 * if not _unhexlify_sha1(c_val + 5, sha1):
3216 * return 0 # <<<<<<<<<<<<<<3216 * return 0 # <<<<<<<<<<<<<<
@@ -3223,7 +3223,7 @@
3223 }3223 }
3224 __pyx_L6:;3224 __pyx_L6:;
32253225
3226 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4433226 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":443
3227 * if not _unhexlify_sha1(c_val + 5, sha1):3227 * if not _unhexlify_sha1(c_val + 5, sha1):
3228 * return 03228 * return 0
3229 * return 1 # <<<<<<<<<<<<<<3229 * return 1 # <<<<<<<<<<<<<<
@@ -3243,7 +3243,7 @@
3243 return __pyx_r;3243 return __pyx_r;
3244}3244}
32453245
3246/* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4463246/* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":446
3247 * 3247 *
3248 * 3248 *
3249 * def _py_key_to_sha1(key): # <<<<<<<<<<<<<<3249 * def _py_key_to_sha1(key): # <<<<<<<<<<<<<<
@@ -3262,7 +3262,7 @@
3262 __pyx_self = __pyx_self;3262 __pyx_self = __pyx_self;
3263 __pyx_v_as_bin_sha = Py_None; __Pyx_INCREF(Py_None);3263 __pyx_v_as_bin_sha = Py_None; __Pyx_INCREF(Py_None);
32643264
3265 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4513265 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":451
3266 * This is a testing thunk to the C function.3266 * This is a testing thunk to the C function.
3267 * """3267 * """
3268 * as_bin_sha = PyString_FromStringAndSize(NULL, 20) # <<<<<<<<<<<<<<3268 * as_bin_sha = PyString_FromStringAndSize(NULL, 20) # <<<<<<<<<<<<<<
@@ -3275,7 +3275,7 @@
3275 __pyx_v_as_bin_sha = __pyx_t_1;3275 __pyx_v_as_bin_sha = __pyx_t_1;
3276 __pyx_t_1 = 0;3276 __pyx_t_1 = 0;
32773277
3278 /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":4523278 /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":452
3279 * """3279 * """
3280 * as_bin_sha = PyString_FromStringAndSize(NULL, 20)3280 * as_bin_sha = PyString_FromStringAndSize(NULL, 20)
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: