Merge lp:~bzr-core/ubuntu/oneiric/bzr/sru-2.4.2 into lp:ubuntu/oneiric/bzr
- Oneiric (11.10)
- sru-2.4.2
- Merge into oneiric
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 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Sponsors | Pending | ||
Ubuntu Stable Release Updates Team | Pending | ||
Review via email: mp+81039@code.launchpad.net |
Commit message
Description of the change
SRU bzr 2.4.2, which fixes about a dozen bugs.
Bazaar is in the SRU MicroReleaseExc
To post a comment you must log in.
Revision history for this message
Martin Pool (mbp) wrote : | # |
- 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:/
... 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
1 | === modified file '.bzr-builddeb/default.conf' | |||
2 | --- .bzr-builddeb/default.conf 2011-08-31 16:04:52 +0000 | |||
3 | +++ .bzr-builddeb/default.conf 2011-11-03 14:37:19 +0000 | |||
4 | @@ -1,3 +1,4 @@ | |||
5 | 1 | [BUILDDEB] | 1 | [BUILDDEB] |
6 | 2 | upstream-branch = lp:bzr/2.4 | 2 | upstream-branch = lp:bzr/2.4 |
7 | 3 | export-upstream-revision = tag:bzr-$UPSTREAM_VERSION | ||
8 | 3 | #upstream-branch = lp:bzr | 4 | #upstream-branch = lp:bzr |
9 | 4 | 5 | ||
10 | === modified file 'Makefile' | |||
11 | --- Makefile 2011-05-21 17:34:06 +0000 | |||
12 | +++ Makefile 2011-11-03 14:37:19 +0000 | |||
13 | @@ -42,7 +42,9 @@ | |||
14 | 42 | set -e | 42 | set -e |
15 | 43 | # Generate a stream for PQM to watch. | 43 | # Generate a stream for PQM to watch. |
16 | 44 | -$(RM) -f selftest.log | 44 | -$(RM) -f selftest.log |
17 | 45 | echo `date` ": selftest starts" 1>&2 | ||
18 | 45 | $(PYTHON) -Werror -Wignore::ImportWarning -O ./bzr selftest --subunit $(tests) | tee selftest.log | 46 | $(PYTHON) -Werror -Wignore::ImportWarning -O ./bzr selftest --subunit $(tests) | tee selftest.log |
19 | 47 | echo `date` ": selftest ends" 1>&2 | ||
20 | 46 | # An empty log file should catch errors in the $(PYTHON) | 48 | # An empty log file should catch errors in the $(PYTHON) |
21 | 47 | # command above (the '|' swallow any errors since 'make' | 49 | # command above (the '|' swallow any errors since 'make' |
22 | 48 | # sees the 'tee' exit code for the whole line | 50 | # sees the 'tee' exit code for the whole line |
23 | 49 | 51 | ||
24 | === modified file 'bzr' | |||
25 | --- bzr 2011-08-31 16:04:52 +0000 | |||
26 | +++ bzr 2011-11-03 14:37:19 +0000 | |||
27 | @@ -23,7 +23,7 @@ | |||
28 | 23 | import warnings | 23 | import warnings |
29 | 24 | 24 | ||
30 | 25 | # update this on each release | 25 | # update this on each release |
32 | 26 | _script_version = (2, 4, 0) | 26 | _script_version = (2, 4, 2) |
33 | 27 | 27 | ||
34 | 28 | try: | 28 | try: |
35 | 29 | version_info = sys.version_info | 29 | version_info = sys.version_info |
36 | 30 | 30 | ||
37 | === modified file 'bzrlib/__init__.py' | |||
38 | --- bzrlib/__init__.py 2011-08-31 16:04:52 +0000 | |||
39 | +++ bzrlib/__init__.py 2011-11-03 14:37:19 +0000 | |||
40 | @@ -52,7 +52,7 @@ | |||
41 | 52 | # Python version 2.0 is (2, 0, 0, 'final', 0)." Additionally we use a | 52 | # Python version 2.0 is (2, 0, 0, 'final', 0)." Additionally we use a |
42 | 53 | # releaselevel of 'dev' for unreleased under-development code. | 53 | # releaselevel of 'dev' for unreleased under-development code. |
43 | 54 | 54 | ||
45 | 55 | version_info = (2, 4, 0, 'final', 0) | 55 | version_info = (2, 4, 2, 'final', 0) |
46 | 56 | 56 | ||
47 | 57 | # API compatibility version | 57 | # API compatibility version |
48 | 58 | api_minimum_version = (2, 4, 0) | 58 | api_minimum_version = (2, 4, 0) |
49 | 59 | 59 | ||
50 | === modified file 'bzrlib/_annotator_pyx.c' | |||
51 | --- bzrlib/_annotator_pyx.c 2011-08-31 15:04:43 +0000 | |||
52 | +++ bzrlib/_annotator_pyx.c 2011-11-03 14:37:19 +0000 | |||
53 | @@ -1,4 +1,4 @@ | |||
55 | 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 */ |
56 | 2 | 2 | ||
57 | 3 | #define PY_SSIZE_T_CLEAN | 3 | #define PY_SSIZE_T_CLEAN |
58 | 4 | #include "Python.h" | 4 | #include "Python.h" |
59 | @@ -538,7 +538,7 @@ | |||
60 | 538 | static PyObject *__pyx_n_s__self; | 538 | static PyObject *__pyx_n_s__self; |
61 | 539 | static PyObject *__pyx_n_s__this_annotation; | 539 | static PyObject *__pyx_n_s__this_annotation; |
62 | 540 | 540 | ||
64 | 541 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":61 | 541 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":61 |
65 | 542 | * | 542 | * |
66 | 543 | * | 543 | * |
67 | 544 | * cdef int _check_annotations_are_lists(annotations, # <<<<<<<<<<<<<< | 544 | * cdef int _check_annotations_are_lists(annotations, # <<<<<<<<<<<<<< |
68 | @@ -553,7 +553,7 @@ | |||
69 | 553 | PyObject *__pyx_t_3 = NULL; | 553 | PyObject *__pyx_t_3 = NULL; |
70 | 554 | __Pyx_RefNannySetupContext("_check_annotations_are_lists"); | 554 | __Pyx_RefNannySetupContext("_check_annotations_are_lists"); |
71 | 555 | 555 | ||
73 | 556 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":63 | 556 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":63 |
74 | 557 | * cdef int _check_annotations_are_lists(annotations, | 557 | * cdef int _check_annotations_are_lists(annotations, |
75 | 558 | * parent_annotations) except -1: | 558 | * parent_annotations) except -1: |
76 | 559 | * if not PyList_CheckExact(annotations): # <<<<<<<<<<<<<< | 559 | * if not PyList_CheckExact(annotations): # <<<<<<<<<<<<<< |
77 | @@ -563,7 +563,7 @@ | |||
78 | 563 | __pyx_t_1 = (!PyList_CheckExact(__pyx_v_annotations)); | 563 | __pyx_t_1 = (!PyList_CheckExact(__pyx_v_annotations)); |
79 | 564 | if (__pyx_t_1) { | 564 | if (__pyx_t_1) { |
80 | 565 | 565 | ||
82 | 566 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":64 | 566 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":64 |
83 | 567 | * parent_annotations) except -1: | 567 | * parent_annotations) except -1: |
84 | 568 | * if not PyList_CheckExact(annotations): | 568 | * if not PyList_CheckExact(annotations): |
85 | 569 | * raise TypeError('annotations must be a list') # <<<<<<<<<<<<<< | 569 | * raise TypeError('annotations must be a list') # <<<<<<<<<<<<<< |
86 | @@ -585,7 +585,7 @@ | |||
87 | 585 | } | 585 | } |
88 | 586 | __pyx_L3:; | 586 | __pyx_L3:; |
89 | 587 | 587 | ||
91 | 588 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":65 | 588 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":65 |
92 | 589 | * if not PyList_CheckExact(annotations): | 589 | * if not PyList_CheckExact(annotations): |
93 | 590 | * raise TypeError('annotations must be a list') | 590 | * raise TypeError('annotations must be a list') |
94 | 591 | * if not PyList_CheckExact(parent_annotations): # <<<<<<<<<<<<<< | 591 | * if not PyList_CheckExact(parent_annotations): # <<<<<<<<<<<<<< |
95 | @@ -595,7 +595,7 @@ | |||
96 | 595 | __pyx_t_1 = (!PyList_CheckExact(__pyx_v_parent_annotations)); | 595 | __pyx_t_1 = (!PyList_CheckExact(__pyx_v_parent_annotations)); |
97 | 596 | if (__pyx_t_1) { | 596 | if (__pyx_t_1) { |
98 | 597 | 597 | ||
100 | 598 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":66 | 598 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":66 |
101 | 599 | * raise TypeError('annotations must be a list') | 599 | * raise TypeError('annotations must be a list') |
102 | 600 | * if not PyList_CheckExact(parent_annotations): | 600 | * if not PyList_CheckExact(parent_annotations): |
103 | 601 | * raise TypeError('parent_annotations must be a list') # <<<<<<<<<<<<<< | 601 | * raise TypeError('parent_annotations must be a list') # <<<<<<<<<<<<<< |
104 | @@ -617,7 +617,7 @@ | |||
105 | 617 | } | 617 | } |
106 | 618 | __pyx_L4:; | 618 | __pyx_L4:; |
107 | 619 | 619 | ||
109 | 620 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":67 | 620 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":67 |
110 | 621 | * if not PyList_CheckExact(parent_annotations): | 621 | * if not PyList_CheckExact(parent_annotations): |
111 | 622 | * raise TypeError('parent_annotations must be a list') | 622 | * raise TypeError('parent_annotations must be a list') |
112 | 623 | * return 0 # <<<<<<<<<<<<<< | 623 | * return 0 # <<<<<<<<<<<<<< |
113 | @@ -639,7 +639,7 @@ | |||
114 | 639 | return __pyx_r; | 639 | return __pyx_r; |
115 | 640 | } | 640 | } |
116 | 641 | 641 | ||
118 | 642 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":70 | 642 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":70 |
119 | 643 | * | 643 | * |
120 | 644 | * | 644 | * |
121 | 645 | * cdef int _check_match_ranges(parent_annotations, annotations, # <<<<<<<<<<<<<< | 645 | * cdef int _check_match_ranges(parent_annotations, annotations, # <<<<<<<<<<<<<< |
122 | @@ -655,7 +655,7 @@ | |||
123 | 655 | PyObject *__pyx_t_4 = NULL; | 655 | PyObject *__pyx_t_4 = NULL; |
124 | 656 | __Pyx_RefNannySetupContext("_check_match_ranges"); | 656 | __Pyx_RefNannySetupContext("_check_match_ranges"); |
125 | 657 | 657 | ||
127 | 658 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":73 | 658 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":73 |
128 | 659 | * Py_ssize_t parent_idx, Py_ssize_t lines_idx, | 659 | * Py_ssize_t parent_idx, Py_ssize_t lines_idx, |
129 | 660 | * Py_ssize_t match_len) except -1: | 660 | * Py_ssize_t match_len) except -1: |
130 | 661 | * if parent_idx + match_len > PyList_GET_SIZE(parent_annotations): # <<<<<<<<<<<<<< | 661 | * if parent_idx + match_len > PyList_GET_SIZE(parent_annotations): # <<<<<<<<<<<<<< |
131 | @@ -665,7 +665,7 @@ | |||
132 | 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)); |
133 | 666 | if (__pyx_t_1) { | 666 | if (__pyx_t_1) { |
134 | 667 | 667 | ||
136 | 668 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":76 | 668 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":76 |
137 | 669 | * raise ValueError('Match length exceeds len of' | 669 | * raise ValueError('Match length exceeds len of' |
138 | 670 | * ' parent_annotations %s > %s' | 670 | * ' parent_annotations %s > %s' |
139 | 671 | * % (parent_idx + match_len, # <<<<<<<<<<<<<< | 671 | * % (parent_idx + match_len, # <<<<<<<<<<<<<< |
140 | @@ -675,7 +675,7 @@ | |||
141 | 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;} |
142 | 676 | __Pyx_GOTREF(__pyx_t_2); | 676 | __Pyx_GOTREF(__pyx_t_2); |
143 | 677 | 677 | ||
145 | 678 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":77 | 678 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":77 |
146 | 679 | * ' parent_annotations %s > %s' | 679 | * ' parent_annotations %s > %s' |
147 | 680 | * % (parent_idx + match_len, | 680 | * % (parent_idx + match_len, |
148 | 681 | * PyList_GET_SIZE(parent_annotations))) # <<<<<<<<<<<<<< | 681 | * PyList_GET_SIZE(parent_annotations))) # <<<<<<<<<<<<<< |
149 | @@ -710,7 +710,7 @@ | |||
150 | 710 | } | 710 | } |
151 | 711 | __pyx_L3:; | 711 | __pyx_L3:; |
152 | 712 | 712 | ||
154 | 713 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":78 | 713 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":78 |
155 | 714 | * % (parent_idx + match_len, | 714 | * % (parent_idx + match_len, |
156 | 715 | * PyList_GET_SIZE(parent_annotations))) | 715 | * PyList_GET_SIZE(parent_annotations))) |
157 | 716 | * if lines_idx + match_len > PyList_GET_SIZE(annotations): # <<<<<<<<<<<<<< | 716 | * if lines_idx + match_len > PyList_GET_SIZE(annotations): # <<<<<<<<<<<<<< |
158 | @@ -720,7 +720,7 @@ | |||
159 | 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)); |
160 | 721 | if (__pyx_t_1) { | 721 | if (__pyx_t_1) { |
161 | 722 | 722 | ||
163 | 723 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":81 | 723 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":81 |
164 | 724 | * raise ValueError('Match length exceeds len of' | 724 | * raise ValueError('Match length exceeds len of' |
165 | 725 | * ' annotations %s > %s' | 725 | * ' annotations %s > %s' |
166 | 726 | * % (lines_idx + match_len, # <<<<<<<<<<<<<< | 726 | * % (lines_idx + match_len, # <<<<<<<<<<<<<< |
167 | @@ -730,7 +730,7 @@ | |||
168 | 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;} |
169 | 731 | __Pyx_GOTREF(__pyx_t_3); | 731 | __Pyx_GOTREF(__pyx_t_3); |
170 | 732 | 732 | ||
172 | 733 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":82 | 733 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":82 |
173 | 734 | * ' annotations %s > %s' | 734 | * ' annotations %s > %s' |
174 | 735 | * % (lines_idx + match_len, | 735 | * % (lines_idx + match_len, |
175 | 736 | * PyList_GET_SIZE(annotations))) # <<<<<<<<<<<<<< | 736 | * PyList_GET_SIZE(annotations))) # <<<<<<<<<<<<<< |
176 | @@ -765,7 +765,7 @@ | |||
177 | 765 | } | 765 | } |
178 | 766 | __pyx_L4:; | 766 | __pyx_L4:; |
179 | 767 | 767 | ||
181 | 768 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":83 | 768 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":83 |
182 | 769 | * % (lines_idx + match_len, | 769 | * % (lines_idx + match_len, |
183 | 770 | * PyList_GET_SIZE(annotations))) | 770 | * PyList_GET_SIZE(annotations))) |
184 | 771 | * return 0 # <<<<<<<<<<<<<< | 771 | * return 0 # <<<<<<<<<<<<<< |
185 | @@ -788,7 +788,7 @@ | |||
186 | 788 | return __pyx_r; | 788 | return __pyx_r; |
187 | 789 | } | 789 | } |
188 | 790 | 790 | ||
190 | 791 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":86 | 791 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":86 |
191 | 792 | * | 792 | * |
192 | 793 | * | 793 | * |
193 | 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 # <<<<<<<<<<<<<< |
194 | @@ -801,7 +801,7 @@ | |||
195 | 801 | int __pyx_t_1; | 801 | int __pyx_t_1; |
196 | 802 | __Pyx_RefNannySetupContext("_next_tuple_entry"); | 802 | __Pyx_RefNannySetupContext("_next_tuple_entry"); |
197 | 803 | 803 | ||
199 | 804 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":94 | 804 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":94 |
200 | 805 | * This cannot raise an exception, as it does no error checking. | 805 | * This cannot raise an exception, as it does no error checking. |
201 | 806 | * """ | 806 | * """ |
202 | 807 | * pos[0] = pos[0] + 1 # <<<<<<<<<<<<<< | 807 | * pos[0] = pos[0] + 1 # <<<<<<<<<<<<<< |
203 | @@ -810,7 +810,7 @@ | |||
204 | 810 | */ | 810 | */ |
205 | 811 | (__pyx_v_pos[0]) = ((__pyx_v_pos[0]) + 1); | 811 | (__pyx_v_pos[0]) = ((__pyx_v_pos[0]) + 1); |
206 | 812 | 812 | ||
208 | 813 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":95 | 813 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":95 |
209 | 814 | * """ | 814 | * """ |
210 | 815 | * pos[0] = pos[0] + 1 | 815 | * pos[0] = pos[0] + 1 |
211 | 816 | * if pos[0] >= PyTuple_GET_SIZE(tpl): # <<<<<<<<<<<<<< | 816 | * if pos[0] >= PyTuple_GET_SIZE(tpl): # <<<<<<<<<<<<<< |
212 | @@ -820,7 +820,7 @@ | |||
213 | 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)); |
214 | 821 | if (__pyx_t_1) { | 821 | if (__pyx_t_1) { |
215 | 822 | 822 | ||
217 | 823 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":96 | 823 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":96 |
218 | 824 | * pos[0] = pos[0] + 1 | 824 | * pos[0] = pos[0] + 1 |
219 | 825 | * if pos[0] >= PyTuple_GET_SIZE(tpl): | 825 | * if pos[0] >= PyTuple_GET_SIZE(tpl): |
220 | 826 | * return NULL # <<<<<<<<<<<<<< | 826 | * return NULL # <<<<<<<<<<<<<< |
221 | @@ -833,7 +833,7 @@ | |||
222 | 833 | } | 833 | } |
223 | 834 | __pyx_L3:; | 834 | __pyx_L3:; |
224 | 835 | 835 | ||
226 | 836 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":97 | 836 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":97 |
227 | 837 | * if pos[0] >= PyTuple_GET_SIZE(tpl): | 837 | * if pos[0] >= PyTuple_GET_SIZE(tpl): |
228 | 838 | * return NULL | 838 | * return NULL |
229 | 839 | * return PyTuple_GET_ITEM(tpl, pos[0]) # <<<<<<<<<<<<<< | 839 | * return PyTuple_GET_ITEM(tpl, pos[0]) # <<<<<<<<<<<<<< |
230 | @@ -849,7 +849,7 @@ | |||
231 | 849 | return __pyx_r; | 849 | return __pyx_r; |
232 | 850 | } | 850 | } |
233 | 851 | 851 | ||
235 | 852 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":100 | 852 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":100 |
236 | 853 | * | 853 | * |
237 | 854 | * | 854 | * |
238 | 855 | * cdef object _combine_annotations(ann_one, ann_two, cache): # <<<<<<<<<<<<<< | 855 | * cdef object _combine_annotations(ann_one, ann_two, cache): # <<<<<<<<<<<<<< |
239 | @@ -877,7 +877,7 @@ | |||
240 | 877 | __pyx_v_cache_key = ((PyObject *)Py_None); __Pyx_INCREF(Py_None); | 877 | __pyx_v_cache_key = ((PyObject *)Py_None); __Pyx_INCREF(Py_None); |
241 | 878 | __pyx_v_new_ann = Py_None; __Pyx_INCREF(Py_None); | 878 | __pyx_v_new_ann = Py_None; __Pyx_INCREF(Py_None); |
242 | 879 | 879 | ||
244 | 880 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":106 | 880 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":106 |
245 | 881 | * cdef PyObject *temp, *left, *right | 881 | * cdef PyObject *temp, *left, *right |
246 | 882 | * | 882 | * |
247 | 883 | * if (PyObject_RichCompareBool(ann_one, ann_two, Py_LT)): # <<<<<<<<<<<<<< | 883 | * if (PyObject_RichCompareBool(ann_one, ann_two, Py_LT)): # <<<<<<<<<<<<<< |
248 | @@ -887,7 +887,7 @@ | |||
249 | 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;} |
250 | 888 | if (__pyx_t_1) { | 888 | if (__pyx_t_1) { |
251 | 889 | 889 | ||
253 | 890 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":107 | 890 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":107 |
254 | 891 | * | 891 | * |
255 | 892 | * if (PyObject_RichCompareBool(ann_one, ann_two, Py_LT)): | 892 | * if (PyObject_RichCompareBool(ann_one, ann_two, Py_LT)): |
256 | 893 | * cache_key = (ann_one, ann_two) # <<<<<<<<<<<<<< | 893 | * cache_key = (ann_one, ann_two) # <<<<<<<<<<<<<< |
257 | @@ -910,7 +910,7 @@ | |||
258 | 910 | } | 910 | } |
259 | 911 | /*else*/ { | 911 | /*else*/ { |
260 | 912 | 912 | ||
262 | 913 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":109 | 913 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":109 |
263 | 914 | * cache_key = (ann_one, ann_two) | 914 | * cache_key = (ann_one, ann_two) |
264 | 915 | * else: | 915 | * else: |
265 | 916 | * cache_key = (ann_two, ann_one) # <<<<<<<<<<<<<< | 916 | * cache_key = (ann_two, ann_one) # <<<<<<<<<<<<<< |
266 | @@ -932,7 +932,7 @@ | |||
267 | 932 | } | 932 | } |
268 | 933 | __pyx_L3:; | 933 | __pyx_L3:; |
269 | 934 | 934 | ||
271 | 935 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":110 | 935 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":110 |
272 | 936 | * else: | 936 | * else: |
273 | 937 | * cache_key = (ann_two, ann_one) | 937 | * cache_key = (ann_two, ann_one) |
274 | 938 | * temp = PyDict_GetItem(cache, cache_key) # <<<<<<<<<<<<<< | 938 | * temp = PyDict_GetItem(cache, cache_key) # <<<<<<<<<<<<<< |
275 | @@ -941,7 +941,7 @@ | |||
276 | 941 | */ | 941 | */ |
277 | 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)); |
278 | 943 | 943 | ||
280 | 944 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":111 | 944 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":111 |
281 | 945 | * cache_key = (ann_two, ann_one) | 945 | * cache_key = (ann_two, ann_one) |
282 | 946 | * temp = PyDict_GetItem(cache, cache_key) | 946 | * temp = PyDict_GetItem(cache, cache_key) |
283 | 947 | * if temp != NULL: # <<<<<<<<<<<<<< | 947 | * if temp != NULL: # <<<<<<<<<<<<<< |
284 | @@ -951,7 +951,7 @@ | |||
285 | 951 | __pyx_t_3 = (__pyx_v_temp != NULL); | 951 | __pyx_t_3 = (__pyx_v_temp != NULL); |
286 | 952 | if (__pyx_t_3) { | 952 | if (__pyx_t_3) { |
287 | 953 | 953 | ||
289 | 954 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":112 | 954 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":112 |
290 | 955 | * temp = PyDict_GetItem(cache, cache_key) | 955 | * temp = PyDict_GetItem(cache, cache_key) |
291 | 956 | * if temp != NULL: | 956 | * if temp != NULL: |
292 | 957 | * return <object>temp # <<<<<<<<<<<<<< | 957 | * return <object>temp # <<<<<<<<<<<<<< |
293 | @@ -966,7 +966,7 @@ | |||
294 | 966 | } | 966 | } |
295 | 967 | __pyx_L4:; | 967 | __pyx_L4:; |
296 | 968 | 968 | ||
298 | 969 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":114 | 969 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":114 |
299 | 970 | * return <object>temp | 970 | * return <object>temp |
300 | 971 | * | 971 | * |
301 | 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): # <<<<<<<<<<<<<< |
302 | @@ -982,7 +982,7 @@ | |||
303 | 982 | } | 982 | } |
304 | 983 | if (__pyx_t_5) { | 983 | if (__pyx_t_5) { |
305 | 984 | 984 | ||
307 | 985 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":115 | 985 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":115 |
308 | 986 | * | 986 | * |
309 | 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): |
310 | 988 | * raise TypeError('annotations must be tuples') # <<<<<<<<<<<<<< | 988 | * raise TypeError('annotations must be tuples') # <<<<<<<<<<<<<< |
311 | @@ -1004,7 +1004,7 @@ | |||
312 | 1004 | } | 1004 | } |
313 | 1005 | __pyx_L5:; | 1005 | __pyx_L5:; |
314 | 1006 | 1006 | ||
316 | 1007 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":118 | 1007 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":118 |
317 | 1008 | * # We know that annotations are tuples, and that both sides are already | 1008 | * # We know that annotations are tuples, and that both sides are already |
318 | 1009 | * # sorted, so we can just walk and update a new list. | 1009 | * # sorted, so we can just walk and update a new list. |
319 | 1010 | * pos_one = -1 # <<<<<<<<<<<<<< | 1010 | * pos_one = -1 # <<<<<<<<<<<<<< |
320 | @@ -1013,7 +1013,7 @@ | |||
321 | 1013 | */ | 1013 | */ |
322 | 1014 | __pyx_v_pos_one = -1; | 1014 | __pyx_v_pos_one = -1; |
323 | 1015 | 1015 | ||
325 | 1016 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":119 | 1016 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":119 |
326 | 1017 | * # sorted, so we can just walk and update a new list. | 1017 | * # sorted, so we can just walk and update a new list. |
327 | 1018 | * pos_one = -1 | 1018 | * pos_one = -1 |
328 | 1019 | * pos_two = -1 # <<<<<<<<<<<<<< | 1019 | * pos_two = -1 # <<<<<<<<<<<<<< |
329 | @@ -1022,7 +1022,7 @@ | |||
330 | 1022 | */ | 1022 | */ |
331 | 1023 | __pyx_v_pos_two = -1; | 1023 | __pyx_v_pos_two = -1; |
332 | 1024 | 1024 | ||
334 | 1025 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":120 | 1025 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":120 |
335 | 1026 | * pos_one = -1 | 1026 | * pos_one = -1 |
336 | 1027 | * pos_two = -1 | 1027 | * pos_two = -1 |
337 | 1028 | * out_pos = 0 # <<<<<<<<<<<<<< | 1028 | * out_pos = 0 # <<<<<<<<<<<<<< |
338 | @@ -1031,7 +1031,7 @@ | |||
339 | 1031 | */ | 1031 | */ |
340 | 1032 | __pyx_v_out_pos = 0; | 1032 | __pyx_v_out_pos = 0; |
341 | 1033 | 1033 | ||
343 | 1034 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":121 | 1034 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":121 |
344 | 1035 | * pos_two = -1 | 1035 | * pos_two = -1 |
345 | 1036 | * out_pos = 0 | 1036 | * out_pos = 0 |
346 | 1037 | * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<< | 1037 | * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<< |
347 | @@ -1040,7 +1040,7 @@ | |||
348 | 1040 | */ | 1040 | */ |
349 | 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)); |
350 | 1042 | 1042 | ||
352 | 1043 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":122 | 1043 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":122 |
353 | 1044 | * out_pos = 0 | 1044 | * out_pos = 0 |
354 | 1045 | * left = _next_tuple_entry(ann_one, &pos_one) | 1045 | * left = _next_tuple_entry(ann_one, &pos_one) |
355 | 1046 | * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<< | 1046 | * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<< |
356 | @@ -1049,7 +1049,7 @@ | |||
357 | 1049 | */ | 1049 | */ |
358 | 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)); |
359 | 1051 | 1051 | ||
361 | 1052 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":124 | 1052 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":124 |
362 | 1053 | * right = _next_tuple_entry(ann_two, &pos_two) | 1053 | * right = _next_tuple_entry(ann_two, &pos_two) |
363 | 1054 | * new_ann = PyTuple_New(PyTuple_GET_SIZE(ann_one) | 1054 | * new_ann = PyTuple_New(PyTuple_GET_SIZE(ann_one) |
364 | 1055 | * + PyTuple_GET_SIZE(ann_two)) # <<<<<<<<<<<<<< | 1055 | * + PyTuple_GET_SIZE(ann_two)) # <<<<<<<<<<<<<< |
365 | @@ -1062,7 +1062,7 @@ | |||
366 | 1062 | __pyx_v_new_ann = __pyx_t_6; | 1062 | __pyx_v_new_ann = __pyx_t_6; |
367 | 1063 | __pyx_t_6 = 0; | 1063 | __pyx_t_6 = 0; |
368 | 1064 | 1064 | ||
370 | 1065 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":125 | 1065 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":125 |
371 | 1066 | * new_ann = PyTuple_New(PyTuple_GET_SIZE(ann_one) | 1066 | * new_ann = PyTuple_New(PyTuple_GET_SIZE(ann_one) |
372 | 1067 | * + PyTuple_GET_SIZE(ann_two)) | 1067 | * + PyTuple_GET_SIZE(ann_two)) |
373 | 1068 | * while left != NULL and right != NULL: # <<<<<<<<<<<<<< | 1068 | * while left != NULL and right != NULL: # <<<<<<<<<<<<<< |
374 | @@ -1079,7 +1079,7 @@ | |||
375 | 1079 | } | 1079 | } |
376 | 1080 | if (!__pyx_t_4) break; | 1080 | if (!__pyx_t_4) break; |
377 | 1081 | 1081 | ||
379 | 1082 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":130 | 1082 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":130 |
380 | 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. |
381 | 1084 | * if (left == right | 1084 | * if (left == right |
382 | 1085 | * or PyObject_RichCompareBool_ptr(left, right, Py_EQ)): # <<<<<<<<<<<<<< | 1085 | * or PyObject_RichCompareBool_ptr(left, right, Py_EQ)): # <<<<<<<<<<<<<< |
383 | @@ -1094,7 +1094,7 @@ | |||
384 | 1094 | } | 1094 | } |
385 | 1095 | if (__pyx_t_5) { | 1095 | if (__pyx_t_5) { |
386 | 1096 | 1096 | ||
388 | 1097 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":132 | 1097 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":132 |
389 | 1098 | * or PyObject_RichCompareBool_ptr(left, right, Py_EQ)): | 1098 | * or PyObject_RichCompareBool_ptr(left, right, Py_EQ)): |
390 | 1099 | * # Identical values, step both | 1099 | * # Identical values, step both |
391 | 1100 | * Py_INCREF_ptr(left) # <<<<<<<<<<<<<< | 1100 | * Py_INCREF_ptr(left) # <<<<<<<<<<<<<< |
392 | @@ -1103,7 +1103,7 @@ | |||
393 | 1103 | */ | 1103 | */ |
394 | 1104 | Py_INCREF(__pyx_v_left); | 1104 | Py_INCREF(__pyx_v_left); |
395 | 1105 | 1105 | ||
397 | 1106 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":133 | 1106 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":133 |
398 | 1107 | * # Identical values, step both | 1107 | * # Identical values, step both |
399 | 1108 | * Py_INCREF_ptr(left) | 1108 | * Py_INCREF_ptr(left) |
400 | 1109 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) # <<<<<<<<<<<<<< | 1109 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) # <<<<<<<<<<<<<< |
401 | @@ -1112,7 +1112,7 @@ | |||
402 | 1112 | */ | 1112 | */ |
403 | 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); |
404 | 1114 | 1114 | ||
406 | 1115 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":134 | 1115 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":134 |
407 | 1116 | * Py_INCREF_ptr(left) | 1116 | * Py_INCREF_ptr(left) |
408 | 1117 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) | 1117 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) |
409 | 1118 | * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<< | 1118 | * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<< |
410 | @@ -1121,7 +1121,7 @@ | |||
411 | 1121 | */ | 1121 | */ |
412 | 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)); |
413 | 1123 | 1123 | ||
415 | 1124 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":135 | 1124 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":135 |
416 | 1125 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) | 1125 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) |
417 | 1126 | * left = _next_tuple_entry(ann_one, &pos_one) | 1126 | * left = _next_tuple_entry(ann_one, &pos_one) |
418 | 1127 | * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<< | 1127 | * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<< |
419 | @@ -1132,7 +1132,7 @@ | |||
420 | 1132 | goto __pyx_L8; | 1132 | goto __pyx_L8; |
421 | 1133 | } | 1133 | } |
422 | 1134 | 1134 | ||
424 | 1135 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":136 | 1135 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":136 |
425 | 1136 | * left = _next_tuple_entry(ann_one, &pos_one) | 1136 | * left = _next_tuple_entry(ann_one, &pos_one) |
426 | 1137 | * right = _next_tuple_entry(ann_two, &pos_two) | 1137 | * right = _next_tuple_entry(ann_two, &pos_two) |
427 | 1138 | * elif (PyObject_RichCompareBool_ptr(left, right, Py_LT)): # <<<<<<<<<<<<<< | 1138 | * elif (PyObject_RichCompareBool_ptr(left, right, Py_LT)): # <<<<<<<<<<<<<< |
428 | @@ -1142,7 +1142,7 @@ | |||
429 | 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); |
430 | 1143 | if (__pyx_t_1) { | 1143 | if (__pyx_t_1) { |
431 | 1144 | 1144 | ||
433 | 1145 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":138 | 1145 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":138 |
434 | 1146 | * elif (PyObject_RichCompareBool_ptr(left, right, Py_LT)): | 1146 | * elif (PyObject_RichCompareBool_ptr(left, right, Py_LT)): |
435 | 1147 | * # left < right or right == NULL | 1147 | * # left < right or right == NULL |
436 | 1148 | * Py_INCREF_ptr(left) # <<<<<<<<<<<<<< | 1148 | * Py_INCREF_ptr(left) # <<<<<<<<<<<<<< |
437 | @@ -1151,7 +1151,7 @@ | |||
438 | 1151 | */ | 1151 | */ |
439 | 1152 | Py_INCREF(__pyx_v_left); | 1152 | Py_INCREF(__pyx_v_left); |
440 | 1153 | 1153 | ||
442 | 1154 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":139 | 1154 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":139 |
443 | 1155 | * # left < right or right == NULL | 1155 | * # left < right or right == NULL |
444 | 1156 | * Py_INCREF_ptr(left) | 1156 | * Py_INCREF_ptr(left) |
445 | 1157 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) # <<<<<<<<<<<<<< | 1157 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) # <<<<<<<<<<<<<< |
446 | @@ -1160,7 +1160,7 @@ | |||
447 | 1160 | */ | 1160 | */ |
448 | 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); |
449 | 1162 | 1162 | ||
451 | 1163 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":140 | 1163 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":140 |
452 | 1164 | * Py_INCREF_ptr(left) | 1164 | * Py_INCREF_ptr(left) |
453 | 1165 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) | 1165 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) |
454 | 1166 | * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<< | 1166 | * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<< |
455 | @@ -1172,7 +1172,7 @@ | |||
456 | 1172 | } | 1172 | } |
457 | 1173 | /*else*/ { | 1173 | /*else*/ { |
458 | 1174 | 1174 | ||
460 | 1175 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":142 | 1175 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":142 |
461 | 1176 | * left = _next_tuple_entry(ann_one, &pos_one) | 1176 | * left = _next_tuple_entry(ann_one, &pos_one) |
462 | 1177 | * else: # right < left or left == NULL | 1177 | * else: # right < left or left == NULL |
463 | 1178 | * Py_INCREF_ptr(right) # <<<<<<<<<<<<<< | 1178 | * Py_INCREF_ptr(right) # <<<<<<<<<<<<<< |
464 | @@ -1181,7 +1181,7 @@ | |||
465 | 1181 | */ | 1181 | */ |
466 | 1182 | Py_INCREF(__pyx_v_right); | 1182 | Py_INCREF(__pyx_v_right); |
467 | 1183 | 1183 | ||
469 | 1184 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":143 | 1184 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":143 |
470 | 1185 | * else: # right < left or left == NULL | 1185 | * else: # right < left or left == NULL |
471 | 1186 | * Py_INCREF_ptr(right) | 1186 | * Py_INCREF_ptr(right) |
472 | 1187 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) # <<<<<<<<<<<<<< | 1187 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) # <<<<<<<<<<<<<< |
473 | @@ -1190,7 +1190,7 @@ | |||
474 | 1190 | */ | 1190 | */ |
475 | 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); |
476 | 1192 | 1192 | ||
478 | 1193 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":144 | 1193 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":144 |
479 | 1194 | * Py_INCREF_ptr(right) | 1194 | * Py_INCREF_ptr(right) |
480 | 1195 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) | 1195 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) |
481 | 1196 | * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<< | 1196 | * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<< |
482 | @@ -1201,7 +1201,7 @@ | |||
483 | 1201 | } | 1201 | } |
484 | 1202 | __pyx_L8:; | 1202 | __pyx_L8:; |
485 | 1203 | 1203 | ||
487 | 1204 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":145 | 1204 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":145 |
488 | 1205 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) | 1205 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) |
489 | 1206 | * right = _next_tuple_entry(ann_two, &pos_two) | 1206 | * right = _next_tuple_entry(ann_two, &pos_two) |
490 | 1207 | * out_pos = out_pos + 1 # <<<<<<<<<<<<<< | 1207 | * out_pos = out_pos + 1 # <<<<<<<<<<<<<< |
491 | @@ -1211,7 +1211,7 @@ | |||
492 | 1211 | __pyx_v_out_pos = (__pyx_v_out_pos + 1); | 1211 | __pyx_v_out_pos = (__pyx_v_out_pos + 1); |
493 | 1212 | } | 1212 | } |
494 | 1213 | 1213 | ||
496 | 1214 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":146 | 1214 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":146 |
497 | 1215 | * right = _next_tuple_entry(ann_two, &pos_two) | 1215 | * right = _next_tuple_entry(ann_two, &pos_two) |
498 | 1216 | * out_pos = out_pos + 1 | 1216 | * out_pos = out_pos + 1 |
499 | 1217 | * while left != NULL: # <<<<<<<<<<<<<< | 1217 | * while left != NULL: # <<<<<<<<<<<<<< |
500 | @@ -1222,7 +1222,7 @@ | |||
501 | 1222 | __pyx_t_5 = (__pyx_v_left != NULL); | 1222 | __pyx_t_5 = (__pyx_v_left != NULL); |
502 | 1223 | if (!__pyx_t_5) break; | 1223 | if (!__pyx_t_5) break; |
503 | 1224 | 1224 | ||
505 | 1225 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":147 | 1225 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":147 |
506 | 1226 | * out_pos = out_pos + 1 | 1226 | * out_pos = out_pos + 1 |
507 | 1227 | * while left != NULL: | 1227 | * while left != NULL: |
508 | 1228 | * Py_INCREF_ptr(left) # <<<<<<<<<<<<<< | 1228 | * Py_INCREF_ptr(left) # <<<<<<<<<<<<<< |
509 | @@ -1231,7 +1231,7 @@ | |||
510 | 1231 | */ | 1231 | */ |
511 | 1232 | Py_INCREF(__pyx_v_left); | 1232 | Py_INCREF(__pyx_v_left); |
512 | 1233 | 1233 | ||
514 | 1234 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":148 | 1234 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":148 |
515 | 1235 | * while left != NULL: | 1235 | * while left != NULL: |
516 | 1236 | * Py_INCREF_ptr(left) | 1236 | * Py_INCREF_ptr(left) |
517 | 1237 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) # <<<<<<<<<<<<<< | 1237 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) # <<<<<<<<<<<<<< |
518 | @@ -1240,7 +1240,7 @@ | |||
519 | 1240 | */ | 1240 | */ |
520 | 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); |
521 | 1242 | 1242 | ||
523 | 1243 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":149 | 1243 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":149 |
524 | 1244 | * Py_INCREF_ptr(left) | 1244 | * Py_INCREF_ptr(left) |
525 | 1245 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) | 1245 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) |
526 | 1246 | * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<< | 1246 | * left = _next_tuple_entry(ann_one, &pos_one) # <<<<<<<<<<<<<< |
527 | @@ -1249,7 +1249,7 @@ | |||
528 | 1249 | */ | 1249 | */ |
529 | 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)); |
530 | 1251 | 1251 | ||
532 | 1252 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":150 | 1252 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":150 |
533 | 1253 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) | 1253 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, left) |
534 | 1254 | * left = _next_tuple_entry(ann_one, &pos_one) | 1254 | * left = _next_tuple_entry(ann_one, &pos_one) |
535 | 1255 | * out_pos = out_pos + 1 # <<<<<<<<<<<<<< | 1255 | * out_pos = out_pos + 1 # <<<<<<<<<<<<<< |
536 | @@ -1259,7 +1259,7 @@ | |||
537 | 1259 | __pyx_v_out_pos = (__pyx_v_out_pos + 1); | 1259 | __pyx_v_out_pos = (__pyx_v_out_pos + 1); |
538 | 1260 | } | 1260 | } |
539 | 1261 | 1261 | ||
541 | 1262 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":151 | 1262 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":151 |
542 | 1263 | * left = _next_tuple_entry(ann_one, &pos_one) | 1263 | * left = _next_tuple_entry(ann_one, &pos_one) |
543 | 1264 | * out_pos = out_pos + 1 | 1264 | * out_pos = out_pos + 1 |
544 | 1265 | * while right != NULL: # <<<<<<<<<<<<<< | 1265 | * while right != NULL: # <<<<<<<<<<<<<< |
545 | @@ -1270,7 +1270,7 @@ | |||
546 | 1270 | __pyx_t_5 = (__pyx_v_right != NULL); | 1270 | __pyx_t_5 = (__pyx_v_right != NULL); |
547 | 1271 | if (!__pyx_t_5) break; | 1271 | if (!__pyx_t_5) break; |
548 | 1272 | 1272 | ||
550 | 1273 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":152 | 1273 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":152 |
551 | 1274 | * out_pos = out_pos + 1 | 1274 | * out_pos = out_pos + 1 |
552 | 1275 | * while right != NULL: | 1275 | * while right != NULL: |
553 | 1276 | * Py_INCREF_ptr(right) # <<<<<<<<<<<<<< | 1276 | * Py_INCREF_ptr(right) # <<<<<<<<<<<<<< |
554 | @@ -1279,7 +1279,7 @@ | |||
555 | 1279 | */ | 1279 | */ |
556 | 1280 | Py_INCREF(__pyx_v_right); | 1280 | Py_INCREF(__pyx_v_right); |
557 | 1281 | 1281 | ||
559 | 1282 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":153 | 1282 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":153 |
560 | 1283 | * while right != NULL: | 1283 | * while right != NULL: |
561 | 1284 | * Py_INCREF_ptr(right) | 1284 | * Py_INCREF_ptr(right) |
562 | 1285 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) # <<<<<<<<<<<<<< | 1285 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) # <<<<<<<<<<<<<< |
563 | @@ -1288,7 +1288,7 @@ | |||
564 | 1288 | */ | 1288 | */ |
565 | 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); |
566 | 1290 | 1290 | ||
568 | 1291 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":154 | 1291 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":154 |
569 | 1292 | * Py_INCREF_ptr(right) | 1292 | * Py_INCREF_ptr(right) |
570 | 1293 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) | 1293 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) |
571 | 1294 | * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<< | 1294 | * right = _next_tuple_entry(ann_two, &pos_two) # <<<<<<<<<<<<<< |
572 | @@ -1297,7 +1297,7 @@ | |||
573 | 1297 | */ | 1297 | */ |
574 | 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)); |
575 | 1299 | 1299 | ||
577 | 1300 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":155 | 1300 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":155 |
578 | 1301 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) | 1301 | * PyTuple_SET_ITEM_ptr(new_ann, out_pos, right) |
579 | 1302 | * right = _next_tuple_entry(ann_two, &pos_two) | 1302 | * right = _next_tuple_entry(ann_two, &pos_two) |
580 | 1303 | * out_pos = out_pos + 1 # <<<<<<<<<<<<<< | 1303 | * out_pos = out_pos + 1 # <<<<<<<<<<<<<< |
581 | @@ -1307,7 +1307,7 @@ | |||
582 | 1307 | __pyx_v_out_pos = (__pyx_v_out_pos + 1); | 1307 | __pyx_v_out_pos = (__pyx_v_out_pos + 1); |
583 | 1308 | } | 1308 | } |
584 | 1309 | 1309 | ||
586 | 1310 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":156 | 1310 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":156 |
587 | 1311 | * right = _next_tuple_entry(ann_two, &pos_two) | 1311 | * right = _next_tuple_entry(ann_two, &pos_two) |
588 | 1312 | * out_pos = out_pos + 1 | 1312 | * out_pos = out_pos + 1 |
589 | 1313 | * if out_pos != PyTuple_GET_SIZE(new_ann): # <<<<<<<<<<<<<< | 1313 | * if out_pos != PyTuple_GET_SIZE(new_ann): # <<<<<<<<<<<<<< |
590 | @@ -1317,7 +1317,7 @@ | |||
591 | 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)); |
592 | 1318 | if (__pyx_t_5) { | 1318 | if (__pyx_t_5) { |
593 | 1319 | 1319 | ||
595 | 1320 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":159 | 1320 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":159 |
596 | 1321 | * # Timing _PyTuple_Resize was not significantly faster that slicing | 1321 | * # Timing _PyTuple_Resize was not significantly faster that slicing |
597 | 1322 | * # PyTuple_Resize((<PyObject **>new_ann), out_pos) | 1322 | * # PyTuple_Resize((<PyObject **>new_ann), out_pos) |
598 | 1323 | * new_ann = new_ann[0:out_pos] # <<<<<<<<<<<<<< | 1323 | * new_ann = new_ann[0:out_pos] # <<<<<<<<<<<<<< |
599 | @@ -1333,7 +1333,7 @@ | |||
600 | 1333 | } | 1333 | } |
601 | 1334 | __pyx_L13:; | 1334 | __pyx_L13:; |
602 | 1335 | 1335 | ||
604 | 1336 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":160 | 1336 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":160 |
605 | 1337 | * # PyTuple_Resize((<PyObject **>new_ann), out_pos) | 1337 | * # PyTuple_Resize((<PyObject **>new_ann), out_pos) |
606 | 1338 | * new_ann = new_ann[0:out_pos] | 1338 | * new_ann = new_ann[0:out_pos] |
607 | 1339 | * PyDict_SetItem(cache, cache_key, new_ann) # <<<<<<<<<<<<<< | 1339 | * PyDict_SetItem(cache, cache_key, new_ann) # <<<<<<<<<<<<<< |
608 | @@ -1342,7 +1342,7 @@ | |||
609 | 1342 | */ | 1342 | */ |
610 | 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;} |
611 | 1344 | 1344 | ||
613 | 1345 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":161 | 1345 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":161 |
614 | 1346 | * new_ann = new_ann[0:out_pos] | 1346 | * new_ann = new_ann[0:out_pos] |
615 | 1347 | * PyDict_SetItem(cache, cache_key, new_ann) | 1347 | * PyDict_SetItem(cache, cache_key, new_ann) |
616 | 1348 | * return new_ann # <<<<<<<<<<<<<< | 1348 | * return new_ann # <<<<<<<<<<<<<< |
617 | @@ -1369,7 +1369,7 @@ | |||
618 | 1369 | return __pyx_r; | 1369 | return __pyx_r; |
619 | 1370 | } | 1370 | } |
620 | 1371 | 1371 | ||
622 | 1372 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":164 | 1372 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":164 |
623 | 1373 | * | 1373 | * |
624 | 1374 | * | 1374 | * |
625 | 1375 | * cdef int _apply_parent_annotations(annotations, parent_annotations, # <<<<<<<<<<<<<< | 1375 | * cdef int _apply_parent_annotations(annotations, parent_annotations, # <<<<<<<<<<<<<< |
626 | @@ -1400,7 +1400,7 @@ | |||
627 | 1400 | PyObject *__pyx_t_11 = NULL; | 1400 | PyObject *__pyx_t_11 = NULL; |
628 | 1401 | __Pyx_RefNannySetupContext("_apply_parent_annotations"); | 1401 | __Pyx_RefNannySetupContext("_apply_parent_annotations"); |
629 | 1402 | 1402 | ||
631 | 1403 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":174 | 1403 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":174 |
632 | 1404 | * cdef PyObject **par_temp, **ann_temp | 1404 | * cdef PyObject **par_temp, **ann_temp |
633 | 1405 | * | 1405 | * |
634 | 1406 | * _check_annotations_are_lists(annotations, parent_annotations) # <<<<<<<<<<<<<< | 1406 | * _check_annotations_are_lists(annotations, parent_annotations) # <<<<<<<<<<<<<< |
635 | @@ -1409,7 +1409,7 @@ | |||
636 | 1409 | */ | 1409 | */ |
637 | 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;} |
638 | 1411 | 1411 | ||
640 | 1412 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":175 | 1412 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":175 |
641 | 1413 | * | 1413 | * |
642 | 1414 | * _check_annotations_are_lists(annotations, parent_annotations) | 1414 | * _check_annotations_are_lists(annotations, parent_annotations) |
643 | 1415 | * par_list = <PyListObject *>parent_annotations # <<<<<<<<<<<<<< | 1415 | * par_list = <PyListObject *>parent_annotations # <<<<<<<<<<<<<< |
644 | @@ -1418,7 +1418,7 @@ | |||
645 | 1418 | */ | 1418 | */ |
646 | 1419 | __pyx_v_par_list = ((PyListObject *)__pyx_v_parent_annotations); | 1419 | __pyx_v_par_list = ((PyListObject *)__pyx_v_parent_annotations); |
647 | 1420 | 1420 | ||
649 | 1421 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":176 | 1421 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":176 |
650 | 1422 | * _check_annotations_are_lists(annotations, parent_annotations) | 1422 | * _check_annotations_are_lists(annotations, parent_annotations) |
651 | 1423 | * par_list = <PyListObject *>parent_annotations | 1423 | * par_list = <PyListObject *>parent_annotations |
652 | 1424 | * ann_list = <PyListObject *>annotations # <<<<<<<<<<<<<< | 1424 | * ann_list = <PyListObject *>annotations # <<<<<<<<<<<<<< |
653 | @@ -1427,7 +1427,7 @@ | |||
654 | 1427 | */ | 1427 | */ |
655 | 1428 | __pyx_v_ann_list = ((PyListObject *)__pyx_v_annotations); | 1428 | __pyx_v_ann_list = ((PyListObject *)__pyx_v_annotations); |
656 | 1429 | 1429 | ||
658 | 1430 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":181 | 1430 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":181 |
659 | 1431 | * # that. Would be interesting if we could use memcpy() but we have to incref | 1431 | * # that. Would be interesting if we could use memcpy() but we have to incref |
660 | 1432 | * # and decref | 1432 | * # and decref |
661 | 1433 | * for parent_idx, lines_idx, match_len in matching_blocks: # <<<<<<<<<<<<<< | 1433 | * for parent_idx, lines_idx, match_len in matching_blocks: # <<<<<<<<<<<<<< |
662 | @@ -1493,7 +1493,7 @@ | |||
663 | 1493 | __pyx_v_match_len = __pyx_t_8; | 1493 | __pyx_v_match_len = __pyx_t_8; |
664 | 1494 | } | 1494 | } |
665 | 1495 | 1495 | ||
667 | 1496 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":183 | 1496 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":183 |
668 | 1497 | * for parent_idx, lines_idx, match_len in matching_blocks: | 1497 | * for parent_idx, lines_idx, match_len in matching_blocks: |
669 | 1498 | * _check_match_ranges(parent_annotations, annotations, | 1498 | * _check_match_ranges(parent_annotations, annotations, |
670 | 1499 | * parent_idx, lines_idx, match_len) # <<<<<<<<<<<<<< | 1499 | * parent_idx, lines_idx, match_len) # <<<<<<<<<<<<<< |
671 | @@ -1502,7 +1502,7 @@ | |||
672 | 1502 | */ | 1502 | */ |
673 | 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;} |
674 | 1504 | 1504 | ||
676 | 1505 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":184 | 1505 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":184 |
677 | 1506 | * _check_match_ranges(parent_annotations, annotations, | 1506 | * _check_match_ranges(parent_annotations, annotations, |
678 | 1507 | * parent_idx, lines_idx, match_len) | 1507 | * parent_idx, lines_idx, match_len) |
679 | 1508 | * par_temp = par_list.ob_item + parent_idx # <<<<<<<<<<<<<< | 1508 | * par_temp = par_list.ob_item + parent_idx # <<<<<<<<<<<<<< |
680 | @@ -1511,7 +1511,7 @@ | |||
681 | 1511 | */ | 1511 | */ |
682 | 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); |
683 | 1513 | 1513 | ||
685 | 1514 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":185 | 1514 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":185 |
686 | 1515 | * parent_idx, lines_idx, match_len) | 1515 | * parent_idx, lines_idx, match_len) |
687 | 1516 | * par_temp = par_list.ob_item + parent_idx | 1516 | * par_temp = par_list.ob_item + parent_idx |
688 | 1517 | * ann_temp = ann_list.ob_item + lines_idx # <<<<<<<<<<<<<< | 1517 | * ann_temp = ann_list.ob_item + lines_idx # <<<<<<<<<<<<<< |
689 | @@ -1520,7 +1520,7 @@ | |||
690 | 1520 | */ | 1520 | */ |
691 | 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); |
692 | 1522 | 1522 | ||
694 | 1523 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":186 | 1523 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":186 |
695 | 1524 | * par_temp = par_list.ob_item + parent_idx | 1524 | * par_temp = par_list.ob_item + parent_idx |
696 | 1525 | * ann_temp = ann_list.ob_item + lines_idx | 1525 | * ann_temp = ann_list.ob_item + lines_idx |
697 | 1526 | * for idx from 0 <= idx < match_len: # <<<<<<<<<<<<<< | 1526 | * for idx from 0 <= idx < match_len: # <<<<<<<<<<<<<< |
698 | @@ -1530,7 +1530,7 @@ | |||
699 | 1530 | __pyx_t_8 = __pyx_v_match_len; | 1530 | __pyx_t_8 = __pyx_v_match_len; |
700 | 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++) { |
701 | 1532 | 1532 | ||
703 | 1533 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":187 | 1533 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":187 |
704 | 1534 | * ann_temp = ann_list.ob_item + lines_idx | 1534 | * ann_temp = ann_list.ob_item + lines_idx |
705 | 1535 | * for idx from 0 <= idx < match_len: | 1535 | * for idx from 0 <= idx < match_len: |
706 | 1536 | * Py_INCREF_ptr(par_temp[idx]) # <<<<<<<<<<<<<< | 1536 | * Py_INCREF_ptr(par_temp[idx]) # <<<<<<<<<<<<<< |
707 | @@ -1539,7 +1539,7 @@ | |||
708 | 1539 | */ | 1539 | */ |
709 | 1540 | Py_INCREF((__pyx_v_par_temp[__pyx_v_idx])); | 1540 | Py_INCREF((__pyx_v_par_temp[__pyx_v_idx])); |
710 | 1541 | 1541 | ||
712 | 1542 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":188 | 1542 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":188 |
713 | 1543 | * for idx from 0 <= idx < match_len: | 1543 | * for idx from 0 <= idx < match_len: |
714 | 1544 | * Py_INCREF_ptr(par_temp[idx]) | 1544 | * Py_INCREF_ptr(par_temp[idx]) |
715 | 1545 | * Py_DECREF_ptr(ann_temp[idx]) # <<<<<<<<<<<<<< | 1545 | * Py_DECREF_ptr(ann_temp[idx]) # <<<<<<<<<<<<<< |
716 | @@ -1548,7 +1548,7 @@ | |||
717 | 1548 | */ | 1548 | */ |
718 | 1549 | Py_DECREF((__pyx_v_ann_temp[__pyx_v_idx])); | 1549 | Py_DECREF((__pyx_v_ann_temp[__pyx_v_idx])); |
719 | 1550 | 1550 | ||
721 | 1551 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":189 | 1551 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":189 |
722 | 1552 | * Py_INCREF_ptr(par_temp[idx]) | 1552 | * Py_INCREF_ptr(par_temp[idx]) |
723 | 1553 | * Py_DECREF_ptr(ann_temp[idx]) | 1553 | * Py_DECREF_ptr(ann_temp[idx]) |
724 | 1554 | * ann_temp[idx] = par_temp[idx] # <<<<<<<<<<<<<< | 1554 | * ann_temp[idx] = par_temp[idx] # <<<<<<<<<<<<<< |
725 | @@ -1560,7 +1560,7 @@ | |||
726 | 1560 | } | 1560 | } |
727 | 1561 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; | 1561 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; |
728 | 1562 | 1562 | ||
730 | 1563 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":190 | 1563 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":190 |
731 | 1564 | * Py_DECREF_ptr(ann_temp[idx]) | 1564 | * Py_DECREF_ptr(ann_temp[idx]) |
732 | 1565 | * ann_temp[idx] = par_temp[idx] | 1565 | * ann_temp[idx] = par_temp[idx] |
733 | 1566 | * return 0 # <<<<<<<<<<<<<< | 1566 | * return 0 # <<<<<<<<<<<<<< |
734 | @@ -1586,7 +1586,7 @@ | |||
735 | 1586 | return __pyx_r; | 1586 | return __pyx_r; |
736 | 1587 | } | 1587 | } |
737 | 1588 | 1588 | ||
739 | 1589 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":193 | 1589 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":193 |
740 | 1590 | * | 1590 | * |
741 | 1591 | * | 1591 | * |
742 | 1592 | * cdef int _merge_annotations(this_annotation, annotations, parent_annotations, # <<<<<<<<<<<<<< | 1592 | * cdef int _merge_annotations(this_annotation, annotations, parent_annotations, # <<<<<<<<<<<<<< |
743 | @@ -1631,7 +1631,7 @@ | |||
744 | 1631 | __pyx_v_ann = Py_None; __Pyx_INCREF(Py_None); | 1631 | __pyx_v_ann = Py_None; __Pyx_INCREF(Py_None); |
745 | 1632 | __pyx_v_new_ann = Py_None; __Pyx_INCREF(Py_None); | 1632 | __pyx_v_new_ann = Py_None; __Pyx_INCREF(Py_None); |
746 | 1633 | 1633 | ||
748 | 1634 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":199 | 1634 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":199 |
749 | 1635 | * cdef PyObject *ann_temp, *par_temp | 1635 | * cdef PyObject *ann_temp, *par_temp |
750 | 1636 | * | 1636 | * |
751 | 1637 | * _check_annotations_are_lists(annotations, parent_annotations) # <<<<<<<<<<<<<< | 1637 | * _check_annotations_are_lists(annotations, parent_annotations) # <<<<<<<<<<<<<< |
752 | @@ -1640,7 +1640,7 @@ | |||
753 | 1640 | */ | 1640 | */ |
754 | 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;} |
755 | 1642 | 1642 | ||
757 | 1643 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":200 | 1643 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":200 |
758 | 1644 | * | 1644 | * |
759 | 1645 | * _check_annotations_are_lists(annotations, parent_annotations) | 1645 | * _check_annotations_are_lists(annotations, parent_annotations) |
760 | 1646 | * last_ann = None # <<<<<<<<<<<<<< | 1646 | * last_ann = None # <<<<<<<<<<<<<< |
761 | @@ -1651,7 +1651,7 @@ | |||
762 | 1651 | __Pyx_DECREF(__pyx_v_last_ann); | 1651 | __Pyx_DECREF(__pyx_v_last_ann); |
763 | 1652 | __pyx_v_last_ann = Py_None; | 1652 | __pyx_v_last_ann = Py_None; |
764 | 1653 | 1653 | ||
766 | 1654 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":201 | 1654 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":201 |
767 | 1655 | * _check_annotations_are_lists(annotations, parent_annotations) | 1655 | * _check_annotations_are_lists(annotations, parent_annotations) |
768 | 1656 | * last_ann = None | 1656 | * last_ann = None |
769 | 1657 | * last_parent = None # <<<<<<<<<<<<<< | 1657 | * last_parent = None # <<<<<<<<<<<<<< |
770 | @@ -1662,7 +1662,7 @@ | |||
771 | 1662 | __Pyx_DECREF(__pyx_v_last_parent); | 1662 | __Pyx_DECREF(__pyx_v_last_parent); |
772 | 1663 | __pyx_v_last_parent = Py_None; | 1663 | __pyx_v_last_parent = Py_None; |
773 | 1664 | 1664 | ||
775 | 1665 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":202 | 1665 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":202 |
776 | 1666 | * last_ann = None | 1666 | * last_ann = None |
777 | 1667 | * last_parent = None | 1667 | * last_parent = None |
778 | 1668 | * last_res = None # <<<<<<<<<<<<<< | 1668 | * last_res = None # <<<<<<<<<<<<<< |
779 | @@ -1673,7 +1673,7 @@ | |||
780 | 1673 | __Pyx_DECREF(__pyx_v_last_res); | 1673 | __Pyx_DECREF(__pyx_v_last_res); |
781 | 1674 | __pyx_v_last_res = Py_None; | 1674 | __pyx_v_last_res = Py_None; |
782 | 1675 | 1675 | ||
784 | 1676 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":203 | 1676 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":203 |
785 | 1677 | * last_parent = None | 1677 | * last_parent = None |
786 | 1678 | * last_res = None | 1678 | * last_res = None |
787 | 1679 | * for parent_idx, lines_idx, match_len in matching_blocks: # <<<<<<<<<<<<<< | 1679 | * for parent_idx, lines_idx, match_len in matching_blocks: # <<<<<<<<<<<<<< |
788 | @@ -1739,7 +1739,7 @@ | |||
789 | 1739 | __pyx_v_match_len = __pyx_t_8; | 1739 | __pyx_v_match_len = __pyx_t_8; |
790 | 1740 | } | 1740 | } |
791 | 1741 | 1741 | ||
793 | 1742 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":205 | 1742 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":205 |
794 | 1743 | * for parent_idx, lines_idx, match_len in matching_blocks: | 1743 | * for parent_idx, lines_idx, match_len in matching_blocks: |
795 | 1744 | * _check_match_ranges(parent_annotations, annotations, | 1744 | * _check_match_ranges(parent_annotations, annotations, |
796 | 1745 | * parent_idx, lines_idx, match_len) # <<<<<<<<<<<<<< | 1745 | * parent_idx, lines_idx, match_len) # <<<<<<<<<<<<<< |
797 | @@ -1748,7 +1748,7 @@ | |||
798 | 1748 | */ | 1748 | */ |
799 | 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;} |
800 | 1750 | 1750 | ||
802 | 1751 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":208 | 1751 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":208 |
803 | 1752 | * # For lines which match this parent, we will now resolve whether | 1752 | * # For lines which match this parent, we will now resolve whether |
804 | 1753 | * # this parent wins over the current annotation | 1753 | * # this parent wins over the current annotation |
805 | 1754 | * for idx from 0 <= idx < match_len: # <<<<<<<<<<<<<< | 1754 | * for idx from 0 <= idx < match_len: # <<<<<<<<<<<<<< |
806 | @@ -1758,7 +1758,7 @@ | |||
807 | 1758 | __pyx_t_8 = __pyx_v_match_len; | 1758 | __pyx_t_8 = __pyx_v_match_len; |
808 | 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++) { |
809 | 1760 | 1760 | ||
811 | 1761 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":209 | 1761 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":209 |
812 | 1762 | * # this parent wins over the current annotation | 1762 | * # this parent wins over the current annotation |
813 | 1763 | * for idx from 0 <= idx < match_len: | 1763 | * for idx from 0 <= idx < match_len: |
814 | 1764 | * ann_idx = lines_idx + idx # <<<<<<<<<<<<<< | 1764 | * ann_idx = lines_idx + idx # <<<<<<<<<<<<<< |
815 | @@ -1767,7 +1767,7 @@ | |||
816 | 1767 | */ | 1767 | */ |
817 | 1768 | __pyx_v_ann_idx = (__pyx_v_lines_idx + __pyx_v_idx); | 1768 | __pyx_v_ann_idx = (__pyx_v_lines_idx + __pyx_v_idx); |
818 | 1769 | 1769 | ||
820 | 1770 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":210 | 1770 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":210 |
821 | 1771 | * for idx from 0 <= idx < match_len: | 1771 | * for idx from 0 <= idx < match_len: |
822 | 1772 | * ann_idx = lines_idx + idx | 1772 | * ann_idx = lines_idx + idx |
823 | 1773 | * ann_temp = PyList_GET_ITEM(annotations, ann_idx) # <<<<<<<<<<<<<< | 1773 | * ann_temp = PyList_GET_ITEM(annotations, ann_idx) # <<<<<<<<<<<<<< |
824 | @@ -1776,7 +1776,7 @@ | |||
825 | 1776 | */ | 1776 | */ |
826 | 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); |
827 | 1778 | 1778 | ||
829 | 1779 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":211 | 1779 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":211 |
830 | 1780 | * ann_idx = lines_idx + idx | 1780 | * ann_idx = lines_idx + idx |
831 | 1781 | * ann_temp = PyList_GET_ITEM(annotations, ann_idx) | 1781 | * ann_temp = PyList_GET_ITEM(annotations, ann_idx) |
832 | 1782 | * par_temp = PyList_GET_ITEM(parent_annotations, parent_idx + idx) # <<<<<<<<<<<<<< | 1782 | * par_temp = PyList_GET_ITEM(parent_annotations, parent_idx + idx) # <<<<<<<<<<<<<< |
833 | @@ -1785,7 +1785,7 @@ | |||
834 | 1785 | */ | 1785 | */ |
835 | 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)); |
836 | 1787 | 1787 | ||
838 | 1788 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":212 | 1788 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":212 |
839 | 1789 | * ann_temp = PyList_GET_ITEM(annotations, ann_idx) | 1789 | * ann_temp = PyList_GET_ITEM(annotations, ann_idx) |
840 | 1790 | * par_temp = PyList_GET_ITEM(parent_annotations, parent_idx + idx) | 1790 | * par_temp = PyList_GET_ITEM(parent_annotations, parent_idx + idx) |
841 | 1791 | * if (ann_temp == par_temp): # <<<<<<<<<<<<<< | 1791 | * if (ann_temp == par_temp): # <<<<<<<<<<<<<< |
842 | @@ -1795,7 +1795,7 @@ | |||
843 | 1795 | __pyx_t_12 = (__pyx_v_ann_temp == __pyx_v_par_temp); | 1795 | __pyx_t_12 = (__pyx_v_ann_temp == __pyx_v_par_temp); |
844 | 1796 | if (__pyx_t_12) { | 1796 | if (__pyx_t_12) { |
845 | 1797 | 1797 | ||
847 | 1798 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":220 | 1798 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":220 |
848 | 1799 | * # PyObject_RichCompareBool using pointer comparison drops | 1799 | * # PyObject_RichCompareBool using pointer comparison drops |
849 | 1800 | * # timing from 215ms => 125ms | 1800 | * # timing from 215ms => 125ms |
850 | 1801 | * continue # <<<<<<<<<<<<<< | 1801 | * continue # <<<<<<<<<<<<<< |
851 | @@ -1807,7 +1807,7 @@ | |||
852 | 1807 | } | 1807 | } |
853 | 1808 | __pyx_L7:; | 1808 | __pyx_L7:; |
854 | 1809 | 1809 | ||
856 | 1810 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":221 | 1810 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":221 |
857 | 1811 | * # timing from 215ms => 125ms | 1811 | * # timing from 215ms => 125ms |
858 | 1812 | * continue | 1812 | * continue |
859 | 1813 | * par_ann = <object>par_temp # <<<<<<<<<<<<<< | 1813 | * par_ann = <object>par_temp # <<<<<<<<<<<<<< |
860 | @@ -1818,7 +1818,7 @@ | |||
861 | 1818 | __Pyx_DECREF(__pyx_v_par_ann); | 1818 | __Pyx_DECREF(__pyx_v_par_ann); |
862 | 1819 | __pyx_v_par_ann = ((PyObject *)__pyx_v_par_temp); | 1819 | __pyx_v_par_ann = ((PyObject *)__pyx_v_par_temp); |
863 | 1820 | 1820 | ||
865 | 1821 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":222 | 1821 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":222 |
866 | 1822 | * continue | 1822 | * continue |
867 | 1823 | * par_ann = <object>par_temp | 1823 | * par_ann = <object>par_temp |
868 | 1824 | * ann = <object>ann_temp # <<<<<<<<<<<<<< | 1824 | * ann = <object>ann_temp # <<<<<<<<<<<<<< |
869 | @@ -1829,7 +1829,7 @@ | |||
870 | 1829 | __Pyx_DECREF(__pyx_v_ann); | 1829 | __Pyx_DECREF(__pyx_v_ann); |
871 | 1830 | __pyx_v_ann = ((PyObject *)__pyx_v_ann_temp); | 1830 | __pyx_v_ann = ((PyObject *)__pyx_v_ann_temp); |
872 | 1831 | 1831 | ||
874 | 1832 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":223 | 1832 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":223 |
875 | 1833 | * par_ann = <object>par_temp | 1833 | * par_ann = <object>par_temp |
876 | 1834 | * ann = <object>ann_temp | 1834 | * ann = <object>ann_temp |
877 | 1835 | * if (ann is this_annotation): # <<<<<<<<<<<<<< | 1835 | * if (ann is this_annotation): # <<<<<<<<<<<<<< |
878 | @@ -1839,7 +1839,7 @@ | |||
879 | 1839 | __pyx_t_12 = (__pyx_v_ann == __pyx_v_this_annotation); | 1839 | __pyx_t_12 = (__pyx_v_ann == __pyx_v_this_annotation); |
880 | 1840 | if (__pyx_t_12) { | 1840 | if (__pyx_t_12) { |
881 | 1841 | 1841 | ||
883 | 1842 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":226 | 1842 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":226 |
884 | 1843 | * # Originally claimed 'this', but it was really in this | 1843 | * # Originally claimed 'this', but it was really in this |
885 | 1844 | * # parent | 1844 | * # parent |
886 | 1845 | * Py_INCREF(par_ann) # <<<<<<<<<<<<<< | 1845 | * Py_INCREF(par_ann) # <<<<<<<<<<<<<< |
887 | @@ -1848,7 +1848,7 @@ | |||
888 | 1848 | */ | 1848 | */ |
889 | 1849 | Py_INCREF(__pyx_v_par_ann); | 1849 | Py_INCREF(__pyx_v_par_ann); |
890 | 1850 | 1850 | ||
892 | 1851 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":227 | 1851 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":227 |
893 | 1852 | * # parent | 1852 | * # parent |
894 | 1853 | * Py_INCREF(par_ann) | 1853 | * Py_INCREF(par_ann) |
895 | 1854 | * PyList_SetItem(annotations, ann_idx, par_ann) # <<<<<<<<<<<<<< | 1854 | * PyList_SetItem(annotations, ann_idx, par_ann) # <<<<<<<<<<<<<< |
896 | @@ -1857,7 +1857,7 @@ | |||
897 | 1857 | */ | 1857 | */ |
898 | 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;} |
899 | 1859 | 1859 | ||
901 | 1860 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":228 | 1860 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":228 |
902 | 1861 | * Py_INCREF(par_ann) | 1861 | * Py_INCREF(par_ann) |
903 | 1862 | * PyList_SetItem(annotations, ann_idx, par_ann) | 1862 | * PyList_SetItem(annotations, ann_idx, par_ann) |
904 | 1863 | * continue # <<<<<<<<<<<<<< | 1863 | * continue # <<<<<<<<<<<<<< |
905 | @@ -1869,7 +1869,7 @@ | |||
906 | 1869 | } | 1869 | } |
907 | 1870 | __pyx_L8:; | 1870 | __pyx_L8:; |
908 | 1871 | 1871 | ||
910 | 1872 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":231 | 1872 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":231 |
911 | 1873 | * # Resolve the fact that both sides have a different value for | 1873 | * # Resolve the fact that both sides have a different value for |
912 | 1874 | * # last modified | 1874 | * # last modified |
913 | 1875 | * if (ann is last_ann and par_ann is last_parent): # <<<<<<<<<<<<<< | 1875 | * if (ann is last_ann and par_ann is last_parent): # <<<<<<<<<<<<<< |
914 | @@ -1885,7 +1885,7 @@ | |||
915 | 1885 | } | 1885 | } |
916 | 1886 | if (__pyx_t_14) { | 1886 | if (__pyx_t_14) { |
917 | 1887 | 1887 | ||
919 | 1888 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":232 | 1888 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":232 |
920 | 1889 | * # last modified | 1889 | * # last modified |
921 | 1890 | * if (ann is last_ann and par_ann is last_parent): | 1890 | * if (ann is last_ann and par_ann is last_parent): |
922 | 1891 | * Py_INCREF(last_res) # <<<<<<<<<<<<<< | 1891 | * Py_INCREF(last_res) # <<<<<<<<<<<<<< |
923 | @@ -1894,7 +1894,7 @@ | |||
924 | 1894 | */ | 1894 | */ |
925 | 1895 | Py_INCREF(__pyx_v_last_res); | 1895 | Py_INCREF(__pyx_v_last_res); |
926 | 1896 | 1896 | ||
928 | 1897 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":233 | 1897 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":233 |
929 | 1898 | * if (ann is last_ann and par_ann is last_parent): | 1898 | * if (ann is last_ann and par_ann is last_parent): |
930 | 1899 | * Py_INCREF(last_res) | 1899 | * Py_INCREF(last_res) |
931 | 1900 | * PyList_SetItem(annotations, ann_idx, last_res) # <<<<<<<<<<<<<< | 1900 | * PyList_SetItem(annotations, ann_idx, last_res) # <<<<<<<<<<<<<< |
932 | @@ -1906,7 +1906,7 @@ | |||
933 | 1906 | } | 1906 | } |
934 | 1907 | /*else*/ { | 1907 | /*else*/ { |
935 | 1908 | 1908 | ||
937 | 1909 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":235 | 1909 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":235 |
938 | 1910 | * PyList_SetItem(annotations, ann_idx, last_res) | 1910 | * PyList_SetItem(annotations, ann_idx, last_res) |
939 | 1911 | * else: | 1911 | * else: |
940 | 1912 | * new_ann = _combine_annotations(ann, par_ann, ann_cache) # <<<<<<<<<<<<<< | 1912 | * new_ann = _combine_annotations(ann, par_ann, ann_cache) # <<<<<<<<<<<<<< |
941 | @@ -1919,7 +1919,7 @@ | |||
942 | 1919 | __pyx_v_new_ann = __pyx_t_4; | 1919 | __pyx_v_new_ann = __pyx_t_4; |
943 | 1920 | __pyx_t_4 = 0; | 1920 | __pyx_t_4 = 0; |
944 | 1921 | 1921 | ||
946 | 1922 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":236 | 1922 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":236 |
947 | 1923 | * else: | 1923 | * else: |
948 | 1924 | * new_ann = _combine_annotations(ann, par_ann, ann_cache) | 1924 | * new_ann = _combine_annotations(ann, par_ann, ann_cache) |
949 | 1925 | * Py_INCREF(new_ann) # <<<<<<<<<<<<<< | 1925 | * Py_INCREF(new_ann) # <<<<<<<<<<<<<< |
950 | @@ -1928,7 +1928,7 @@ | |||
951 | 1928 | */ | 1928 | */ |
952 | 1929 | Py_INCREF(__pyx_v_new_ann); | 1929 | Py_INCREF(__pyx_v_new_ann); |
953 | 1930 | 1930 | ||
955 | 1931 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":237 | 1931 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":237 |
956 | 1932 | * new_ann = _combine_annotations(ann, par_ann, ann_cache) | 1932 | * new_ann = _combine_annotations(ann, par_ann, ann_cache) |
957 | 1933 | * Py_INCREF(new_ann) | 1933 | * Py_INCREF(new_ann) |
958 | 1934 | * PyList_SetItem(annotations, ann_idx, new_ann) # <<<<<<<<<<<<<< | 1934 | * PyList_SetItem(annotations, ann_idx, new_ann) # <<<<<<<<<<<<<< |
959 | @@ -1937,7 +1937,7 @@ | |||
960 | 1937 | */ | 1937 | */ |
961 | 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;} |
962 | 1939 | 1939 | ||
964 | 1940 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":238 | 1940 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":238 |
965 | 1941 | * Py_INCREF(new_ann) | 1941 | * Py_INCREF(new_ann) |
966 | 1942 | * PyList_SetItem(annotations, ann_idx, new_ann) | 1942 | * PyList_SetItem(annotations, ann_idx, new_ann) |
967 | 1943 | * last_ann = ann # <<<<<<<<<<<<<< | 1943 | * last_ann = ann # <<<<<<<<<<<<<< |
968 | @@ -1948,7 +1948,7 @@ | |||
969 | 1948 | __Pyx_DECREF(__pyx_v_last_ann); | 1948 | __Pyx_DECREF(__pyx_v_last_ann); |
970 | 1949 | __pyx_v_last_ann = __pyx_v_ann; | 1949 | __pyx_v_last_ann = __pyx_v_ann; |
971 | 1950 | 1950 | ||
973 | 1951 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":239 | 1951 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":239 |
974 | 1952 | * PyList_SetItem(annotations, ann_idx, new_ann) | 1952 | * PyList_SetItem(annotations, ann_idx, new_ann) |
975 | 1953 | * last_ann = ann | 1953 | * last_ann = ann |
976 | 1954 | * last_parent = par_ann # <<<<<<<<<<<<<< | 1954 | * last_parent = par_ann # <<<<<<<<<<<<<< |
977 | @@ -1959,7 +1959,7 @@ | |||
978 | 1959 | __Pyx_DECREF(__pyx_v_last_parent); | 1959 | __Pyx_DECREF(__pyx_v_last_parent); |
979 | 1960 | __pyx_v_last_parent = __pyx_v_par_ann; | 1960 | __pyx_v_last_parent = __pyx_v_par_ann; |
980 | 1961 | 1961 | ||
982 | 1962 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":240 | 1962 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":240 |
983 | 1963 | * last_ann = ann | 1963 | * last_ann = ann |
984 | 1964 | * last_parent = par_ann | 1964 | * last_parent = par_ann |
985 | 1965 | * last_res = new_ann # <<<<<<<<<<<<<< | 1965 | * last_res = new_ann # <<<<<<<<<<<<<< |
986 | @@ -1976,7 +1976,7 @@ | |||
987 | 1976 | } | 1976 | } |
988 | 1977 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; | 1977 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; |
989 | 1978 | 1978 | ||
991 | 1979 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":241 | 1979 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":241 |
992 | 1980 | * last_parent = par_ann | 1980 | * last_parent = par_ann |
993 | 1981 | * last_res = new_ann | 1981 | * last_res = new_ann |
994 | 1982 | * return 0 # <<<<<<<<<<<<<< | 1982 | * return 0 # <<<<<<<<<<<<<< |
995 | @@ -2008,7 +2008,7 @@ | |||
996 | 2008 | return __pyx_r; | 2008 | return __pyx_r; |
997 | 2009 | } | 2009 | } |
998 | 2010 | 2010 | ||
1000 | 2011 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":247 | 2011 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":247 |
1001 | 2012 | * """Class that drives performing annotations.""" | 2012 | * """Class that drives performing annotations.""" |
1002 | 2013 | * | 2013 | * |
1003 | 2014 | * def _update_from_first_parent(self, key, annotations, lines, parent_key): # <<<<<<<<<<<<<< | 2014 | * def _update_from_first_parent(self, key, annotations, lines, parent_key): # <<<<<<<<<<<<<< |
1004 | @@ -2106,7 +2106,7 @@ | |||
1005 | 2106 | __pyx_v_parent_annotations = Py_None; __Pyx_INCREF(Py_None); | 2106 | __pyx_v_parent_annotations = Py_None; __Pyx_INCREF(Py_None); |
1006 | 2107 | __pyx_v_matching_blocks = Py_None; __Pyx_INCREF(Py_None); | 2107 | __pyx_v_matching_blocks = Py_None; __Pyx_INCREF(Py_None); |
1007 | 2108 | 2108 | ||
1009 | 2109 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":250 | 2109 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":250 |
1010 | 2110 | * """Reannotate this text relative to its first parent.""" | 2110 | * """Reannotate this text relative to its first parent.""" |
1011 | 2111 | * (parent_annotations, | 2111 | * (parent_annotations, |
1012 | 2112 | * matching_blocks) = self._get_parent_annotations_and_matches( # <<<<<<<<<<<<<< | 2112 | * matching_blocks) = self._get_parent_annotations_and_matches( # <<<<<<<<<<<<<< |
1013 | @@ -2116,7 +2116,7 @@ | |||
1014 | 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;} |
1015 | 2117 | __Pyx_GOTREF(__pyx_t_1); | 2117 | __Pyx_GOTREF(__pyx_t_1); |
1016 | 2118 | 2118 | ||
1018 | 2119 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":251 | 2119 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":251 |
1019 | 2120 | * (parent_annotations, | 2120 | * (parent_annotations, |
1020 | 2121 | * matching_blocks) = self._get_parent_annotations_and_matches( | 2121 | * matching_blocks) = self._get_parent_annotations_and_matches( |
1021 | 2122 | * key, lines, parent_key) # <<<<<<<<<<<<<< | 2122 | * key, lines, parent_key) # <<<<<<<<<<<<<< |
1022 | @@ -2143,7 +2143,7 @@ | |||
1023 | 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); |
1024 | 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); |
1025 | 2145 | 2145 | ||
1027 | 2146 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":249 | 2146 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":249 |
1028 | 2147 | * def _update_from_first_parent(self, key, annotations, lines, parent_key): | 2147 | * def _update_from_first_parent(self, key, annotations, lines, parent_key): |
1029 | 2148 | * """Reannotate this text relative to its first parent.""" | 2148 | * """Reannotate this text relative to its first parent.""" |
1030 | 2149 | * (parent_annotations, # <<<<<<<<<<<<<< | 2149 | * (parent_annotations, # <<<<<<<<<<<<<< |
1031 | @@ -2175,7 +2175,7 @@ | |||
1032 | 2175 | __pyx_t_1 = 0; | 2175 | __pyx_t_1 = 0; |
1033 | 2176 | } | 2176 | } |
1034 | 2177 | 2177 | ||
1036 | 2178 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":254 | 2178 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":254 |
1037 | 2179 | * | 2179 | * |
1038 | 2180 | * _apply_parent_annotations(annotations, parent_annotations, | 2180 | * _apply_parent_annotations(annotations, parent_annotations, |
1039 | 2181 | * matching_blocks) # <<<<<<<<<<<<<< | 2181 | * matching_blocks) # <<<<<<<<<<<<<< |
1040 | @@ -2201,7 +2201,7 @@ | |||
1041 | 2201 | return __pyx_r; | 2201 | return __pyx_r; |
1042 | 2202 | } | 2202 | } |
1043 | 2203 | 2203 | ||
1045 | 2204 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":256 | 2204 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":256 |
1046 | 2205 | * matching_blocks) | 2205 | * matching_blocks) |
1047 | 2206 | * | 2206 | * |
1048 | 2207 | * def _update_from_other_parents(self, key, annotations, lines, # <<<<<<<<<<<<<< | 2207 | * def _update_from_other_parents(self, key, annotations, lines, # <<<<<<<<<<<<<< |
1049 | @@ -2309,7 +2309,7 @@ | |||
1050 | 2309 | __pyx_v_parent_annotations = Py_None; __Pyx_INCREF(Py_None); | 2309 | __pyx_v_parent_annotations = Py_None; __Pyx_INCREF(Py_None); |
1051 | 2310 | __pyx_v_matching_blocks = Py_None; __Pyx_INCREF(Py_None); | 2310 | __pyx_v_matching_blocks = Py_None; __Pyx_INCREF(Py_None); |
1052 | 2311 | 2311 | ||
1054 | 2312 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":260 | 2312 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":260 |
1055 | 2313 | * """Reannotate this text relative to a second (or more) parent.""" | 2313 | * """Reannotate this text relative to a second (or more) parent.""" |
1056 | 2314 | * (parent_annotations, | 2314 | * (parent_annotations, |
1057 | 2315 | * matching_blocks) = self._get_parent_annotations_and_matches( # <<<<<<<<<<<<<< | 2315 | * matching_blocks) = self._get_parent_annotations_and_matches( # <<<<<<<<<<<<<< |
1058 | @@ -2319,7 +2319,7 @@ | |||
1059 | 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;} |
1060 | 2320 | __Pyx_GOTREF(__pyx_t_1); | 2320 | __Pyx_GOTREF(__pyx_t_1); |
1061 | 2321 | 2321 | ||
1063 | 2322 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":261 | 2322 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":261 |
1064 | 2323 | * (parent_annotations, | 2323 | * (parent_annotations, |
1065 | 2324 | * matching_blocks) = self._get_parent_annotations_and_matches( | 2324 | * matching_blocks) = self._get_parent_annotations_and_matches( |
1066 | 2325 | * key, lines, parent_key) # <<<<<<<<<<<<<< | 2325 | * key, lines, parent_key) # <<<<<<<<<<<<<< |
1067 | @@ -2346,7 +2346,7 @@ | |||
1068 | 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); |
1069 | 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); |
1070 | 2348 | 2348 | ||
1072 | 2349 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":259 | 2349 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":259 |
1073 | 2350 | * this_annotation, parent_key): | 2350 | * this_annotation, parent_key): |
1074 | 2351 | * """Reannotate this text relative to a second (or more) parent.""" | 2351 | * """Reannotate this text relative to a second (or more) parent.""" |
1075 | 2352 | * (parent_annotations, # <<<<<<<<<<<<<< | 2352 | * (parent_annotations, # <<<<<<<<<<<<<< |
1076 | @@ -2378,7 +2378,7 @@ | |||
1077 | 2378 | __pyx_t_1 = 0; | 2378 | __pyx_t_1 = 0; |
1078 | 2379 | } | 2379 | } |
1079 | 2380 | 2380 | ||
1081 | 2381 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":263 | 2381 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":263 |
1082 | 2382 | * key, lines, parent_key) | 2382 | * key, lines, parent_key) |
1083 | 2383 | * _merge_annotations(this_annotation, annotations, parent_annotations, | 2383 | * _merge_annotations(this_annotation, annotations, parent_annotations, |
1084 | 2384 | * matching_blocks, self._ann_tuple_cache) # <<<<<<<<<<<<<< | 2384 | * matching_blocks, self._ann_tuple_cache) # <<<<<<<<<<<<<< |
1085 | @@ -2407,7 +2407,7 @@ | |||
1086 | 2407 | return __pyx_r; | 2407 | return __pyx_r; |
1087 | 2408 | } | 2408 | } |
1088 | 2409 | 2409 | ||
1090 | 2410 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":265 | 2410 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":265 |
1091 | 2411 | * matching_blocks, self._ann_tuple_cache) | 2411 | * matching_blocks, self._ann_tuple_cache) |
1092 | 2412 | * | 2412 | * |
1093 | 2413 | * def annotate_flat(self, key): # <<<<<<<<<<<<<< | 2413 | * def annotate_flat(self, key): # <<<<<<<<<<<<<< |
1094 | @@ -2496,7 +2496,7 @@ | |||
1095 | 2496 | __pyx_v_head = Py_None; __Pyx_INCREF(Py_None); | 2496 | __pyx_v_head = Py_None; __Pyx_INCREF(Py_None); |
1096 | 2497 | __pyx_v_the_heads = Py_None; __Pyx_INCREF(Py_None); | 2497 | __pyx_v_the_heads = Py_None; __Pyx_INCREF(Py_None); |
1097 | 2498 | 2498 | ||
1099 | 2499 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":272 | 2499 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":272 |
1100 | 2500 | * cdef Py_ssize_t pos, num_lines | 2500 | * cdef Py_ssize_t pos, num_lines |
1101 | 2501 | * | 2501 | * |
1102 | 2502 | * from bzrlib import annotate # <<<<<<<<<<<<<< | 2502 | * from bzrlib import annotate # <<<<<<<<<<<<<< |
1103 | @@ -2519,7 +2519,7 @@ | |||
1104 | 2519 | __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; | 2519 | __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; |
1105 | 2520 | __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; | 2520 | __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; |
1106 | 2521 | 2521 | ||
1108 | 2522 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":274 | 2522 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":274 |
1109 | 2523 | * from bzrlib import annotate | 2523 | * from bzrlib import annotate |
1110 | 2524 | * | 2524 | * |
1111 | 2525 | * custom_tiebreaker = annotate._break_annotation_tie # <<<<<<<<<<<<<< | 2525 | * custom_tiebreaker = annotate._break_annotation_tie # <<<<<<<<<<<<<< |
1112 | @@ -2532,7 +2532,7 @@ | |||
1113 | 2532 | __pyx_v_custom_tiebreaker = __pyx_t_2; | 2532 | __pyx_v_custom_tiebreaker = __pyx_t_2; |
1114 | 2533 | __pyx_t_2 = 0; | 2533 | __pyx_t_2 = 0; |
1115 | 2534 | 2534 | ||
1117 | 2535 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":275 | 2535 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":275 |
1118 | 2536 | * | 2536 | * |
1119 | 2537 | * custom_tiebreaker = annotate._break_annotation_tie | 2537 | * custom_tiebreaker = annotate._break_annotation_tie |
1120 | 2538 | * annotations, lines = self.annotate(key) # <<<<<<<<<<<<<< | 2538 | * annotations, lines = self.annotate(key) # <<<<<<<<<<<<<< |
1121 | @@ -2579,7 +2579,7 @@ | |||
1122 | 2579 | __pyx_t_2 = 0; | 2579 | __pyx_t_2 = 0; |
1123 | 2580 | } | 2580 | } |
1124 | 2581 | 2581 | ||
1126 | 2582 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":276 | 2582 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":276 |
1127 | 2583 | * custom_tiebreaker = annotate._break_annotation_tie | 2583 | * custom_tiebreaker = annotate._break_annotation_tie |
1128 | 2584 | * annotations, lines = self.annotate(key) | 2584 | * annotations, lines = self.annotate(key) |
1129 | 2585 | * num_lines = len(lines) # <<<<<<<<<<<<<< | 2585 | * num_lines = len(lines) # <<<<<<<<<<<<<< |
1130 | @@ -2589,7 +2589,7 @@ | |||
1131 | 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;} |
1132 | 2590 | __pyx_v_num_lines = __pyx_t_5; | 2590 | __pyx_v_num_lines = __pyx_t_5; |
1133 | 2591 | 2591 | ||
1135 | 2592 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":277 | 2592 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":277 |
1136 | 2593 | * annotations, lines = self.annotate(key) | 2593 | * annotations, lines = self.annotate(key) |
1137 | 2594 | * num_lines = len(lines) | 2594 | * num_lines = len(lines) |
1138 | 2595 | * out = [] # <<<<<<<<<<<<<< | 2595 | * out = [] # <<<<<<<<<<<<<< |
1139 | @@ -2602,7 +2602,7 @@ | |||
1140 | 2602 | __pyx_v_out = __pyx_t_3; | 2602 | __pyx_v_out = __pyx_t_3; |
1141 | 2603 | __pyx_t_3 = 0; | 2603 | __pyx_t_3 = 0; |
1142 | 2604 | 2604 | ||
1144 | 2605 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":278 | 2605 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":278 |
1145 | 2606 | * num_lines = len(lines) | 2606 | * num_lines = len(lines) |
1146 | 2607 | * out = [] | 2607 | * out = [] |
1147 | 2608 | * heads = self._get_heads_provider().heads # <<<<<<<<<<<<<< | 2608 | * heads = self._get_heads_provider().heads # <<<<<<<<<<<<<< |
1148 | @@ -2621,7 +2621,7 @@ | |||
1149 | 2621 | __pyx_v_heads = __pyx_t_3; | 2621 | __pyx_v_heads = __pyx_t_3; |
1150 | 2622 | __pyx_t_3 = 0; | 2622 | __pyx_t_3 = 0; |
1151 | 2623 | 2623 | ||
1153 | 2624 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":279 | 2624 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":279 |
1154 | 2625 | * out = [] | 2625 | * out = [] |
1155 | 2626 | * heads = self._get_heads_provider().heads | 2626 | * heads = self._get_heads_provider().heads |
1156 | 2627 | * for pos from 0 <= pos < num_lines: # <<<<<<<<<<<<<< | 2627 | * for pos from 0 <= pos < num_lines: # <<<<<<<<<<<<<< |
1157 | @@ -2631,7 +2631,7 @@ | |||
1158 | 2631 | __pyx_t_5 = __pyx_v_num_lines; | 2631 | __pyx_t_5 = __pyx_v_num_lines; |
1159 | 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++) { |
1160 | 2633 | 2633 | ||
1162 | 2634 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":280 | 2634 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":280 |
1163 | 2635 | * heads = self._get_heads_provider().heads | 2635 | * heads = self._get_heads_provider().heads |
1164 | 2636 | * for pos from 0 <= pos < num_lines: | 2636 | * for pos from 0 <= pos < num_lines: |
1165 | 2637 | * annotation = annotations[pos] # <<<<<<<<<<<<<< | 2637 | * annotation = annotations[pos] # <<<<<<<<<<<<<< |
1166 | @@ -2644,7 +2644,7 @@ | |||
1167 | 2644 | __pyx_v_annotation = __pyx_t_3; | 2644 | __pyx_v_annotation = __pyx_t_3; |
1168 | 2645 | __pyx_t_3 = 0; | 2645 | __pyx_t_3 = 0; |
1169 | 2646 | 2646 | ||
1171 | 2647 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":281 | 2647 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":281 |
1172 | 2648 | * for pos from 0 <= pos < num_lines: | 2648 | * for pos from 0 <= pos < num_lines: |
1173 | 2649 | * annotation = annotations[pos] | 2649 | * annotation = annotations[pos] |
1174 | 2650 | * line = lines[pos] # <<<<<<<<<<<<<< | 2650 | * line = lines[pos] # <<<<<<<<<<<<<< |
1175 | @@ -2657,7 +2657,7 @@ | |||
1176 | 2657 | __pyx_v_line = __pyx_t_3; | 2657 | __pyx_v_line = __pyx_t_3; |
1177 | 2658 | __pyx_t_3 = 0; | 2658 | __pyx_t_3 = 0; |
1178 | 2659 | 2659 | ||
1180 | 2660 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":282 | 2660 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":282 |
1181 | 2661 | * annotation = annotations[pos] | 2661 | * annotation = annotations[pos] |
1182 | 2662 | * line = lines[pos] | 2662 | * line = lines[pos] |
1183 | 2663 | * if len(annotation) == 1: # <<<<<<<<<<<<<< | 2663 | * if len(annotation) == 1: # <<<<<<<<<<<<<< |
1184 | @@ -2668,7 +2668,7 @@ | |||
1185 | 2668 | __pyx_t_7 = (__pyx_t_6 == 1); | 2668 | __pyx_t_7 = (__pyx_t_6 == 1); |
1186 | 2669 | if (__pyx_t_7) { | 2669 | if (__pyx_t_7) { |
1187 | 2670 | 2670 | ||
1189 | 2671 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":283 | 2671 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":283 |
1190 | 2672 | * line = lines[pos] | 2672 | * line = lines[pos] |
1191 | 2673 | * if len(annotation) == 1: | 2673 | * if len(annotation) == 1: |
1192 | 2674 | * head = annotation[0] # <<<<<<<<<<<<<< | 2674 | * head = annotation[0] # <<<<<<<<<<<<<< |
1193 | @@ -2684,7 +2684,7 @@ | |||
1194 | 2684 | } | 2684 | } |
1195 | 2685 | /*else*/ { | 2685 | /*else*/ { |
1196 | 2686 | 2686 | ||
1198 | 2687 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":285 | 2687 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":285 |
1199 | 2688 | * head = annotation[0] | 2688 | * head = annotation[0] |
1200 | 2689 | * else: | 2689 | * else: |
1201 | 2690 | * the_heads = heads(annotation) # <<<<<<<<<<<<<< | 2690 | * the_heads = heads(annotation) # <<<<<<<<<<<<<< |
1202 | @@ -2703,7 +2703,7 @@ | |||
1203 | 2703 | __pyx_v_the_heads = __pyx_t_2; | 2703 | __pyx_v_the_heads = __pyx_t_2; |
1204 | 2704 | __pyx_t_2 = 0; | 2704 | __pyx_t_2 = 0; |
1205 | 2705 | 2705 | ||
1207 | 2706 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":286 | 2706 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":286 |
1208 | 2707 | * else: | 2707 | * else: |
1209 | 2708 | * the_heads = heads(annotation) | 2708 | * the_heads = heads(annotation) |
1210 | 2709 | * if len(the_heads) == 1: # <<<<<<<<<<<<<< | 2709 | * if len(the_heads) == 1: # <<<<<<<<<<<<<< |
1211 | @@ -2714,7 +2714,7 @@ | |||
1212 | 2714 | __pyx_t_7 = (__pyx_t_6 == 1); | 2714 | __pyx_t_7 = (__pyx_t_6 == 1); |
1213 | 2715 | if (__pyx_t_7) { | 2715 | if (__pyx_t_7) { |
1214 | 2716 | 2716 | ||
1216 | 2717 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":287 | 2717 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":287 |
1217 | 2718 | * the_heads = heads(annotation) | 2718 | * the_heads = heads(annotation) |
1218 | 2719 | * if len(the_heads) == 1: | 2719 | * if len(the_heads) == 1: |
1219 | 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 # <<<<<<<<<<<<<< |
1220 | @@ -2753,7 +2753,7 @@ | |||
1221 | 2753 | } | 2753 | } |
1222 | 2754 | /*else*/ { | 2754 | /*else*/ { |
1223 | 2755 | 2755 | ||
1225 | 2756 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":291 | 2756 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":291 |
1226 | 2757 | * # We need to resolve the ambiguity, for now just pick the | 2757 | * # We need to resolve the ambiguity, for now just pick the |
1227 | 2758 | * # sorted smallest | 2758 | * # sorted smallest |
1228 | 2759 | * head = self._resolve_annotation_tie(the_heads, line, # <<<<<<<<<<<<<< | 2759 | * head = self._resolve_annotation_tie(the_heads, line, # <<<<<<<<<<<<<< |
1229 | @@ -2763,7 +2763,7 @@ | |||
1230 | 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;} |
1231 | 2764 | __Pyx_GOTREF(__pyx_t_2); | 2764 | __Pyx_GOTREF(__pyx_t_2); |
1232 | 2765 | 2765 | ||
1234 | 2766 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":292 | 2766 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":292 |
1235 | 2767 | * # sorted smallest | 2767 | * # sorted smallest |
1236 | 2768 | * head = self._resolve_annotation_tie(the_heads, line, | 2768 | * head = self._resolve_annotation_tie(the_heads, line, |
1237 | 2769 | * custom_tiebreaker) # <<<<<<<<<<<<<< | 2769 | * custom_tiebreaker) # <<<<<<<<<<<<<< |
1238 | @@ -2793,7 +2793,7 @@ | |||
1239 | 2793 | } | 2793 | } |
1240 | 2794 | __pyx_L8:; | 2794 | __pyx_L8:; |
1241 | 2795 | 2795 | ||
1243 | 2796 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":293 | 2796 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":293 |
1244 | 2797 | * head = self._resolve_annotation_tie(the_heads, line, | 2797 | * head = self._resolve_annotation_tie(the_heads, line, |
1245 | 2798 | * custom_tiebreaker) | 2798 | * custom_tiebreaker) |
1246 | 2799 | * PyList_Append(out, (head, line)) # <<<<<<<<<<<<<< | 2799 | * PyList_Append(out, (head, line)) # <<<<<<<<<<<<<< |
1247 | @@ -2811,7 +2811,7 @@ | |||
1248 | 2811 | __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; | 2811 | __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; |
1249 | 2812 | } | 2812 | } |
1250 | 2813 | 2813 | ||
1252 | 2814 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":294 | 2814 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":294 |
1253 | 2815 | * custom_tiebreaker) | 2815 | * custom_tiebreaker) |
1254 | 2816 | * PyList_Append(out, (head, line)) | 2816 | * PyList_Append(out, (head, line)) |
1255 | 2817 | * return out # <<<<<<<<<<<<<< | 2817 | * return out # <<<<<<<<<<<<<< |
1256 | @@ -2977,7 +2977,7 @@ | |||
1257 | 2977 | /*--- Function import code ---*/ | 2977 | /*--- Function import code ---*/ |
1258 | 2978 | /*--- Execution code ---*/ | 2978 | /*--- Execution code ---*/ |
1259 | 2979 | 2979 | ||
1261 | 2980 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":58 | 2980 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":58 |
1262 | 2981 | * | 2981 | * |
1263 | 2982 | * | 2982 | * |
1264 | 2983 | * from bzrlib import _annotator_py # <<<<<<<<<<<<<< | 2983 | * from bzrlib import _annotator_py # <<<<<<<<<<<<<< |
1265 | @@ -2998,7 +2998,7 @@ | |||
1266 | 2998 | __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; | 2998 | __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; |
1267 | 2999 | __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; | 2999 | __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; |
1268 | 3000 | 3000 | ||
1270 | 3001 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":244 | 3001 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":244 |
1271 | 3002 | * | 3002 | * |
1272 | 3003 | * | 3003 | * |
1273 | 3004 | * class Annotator(_annotator_py.Annotator): # <<<<<<<<<<<<<< | 3004 | * class Annotator(_annotator_py.Annotator): # <<<<<<<<<<<<<< |
1274 | @@ -3022,7 +3022,7 @@ | |||
1275 | 3022 | __Pyx_GOTREF(__pyx_t_3); | 3022 | __Pyx_GOTREF(__pyx_t_3); |
1276 | 3023 | __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; | 3023 | __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; |
1277 | 3024 | 3024 | ||
1279 | 3025 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":247 | 3025 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":247 |
1280 | 3026 | * """Class that drives performing annotations.""" | 3026 | * """Class that drives performing annotations.""" |
1281 | 3027 | * | 3027 | * |
1282 | 3028 | * def _update_from_first_parent(self, key, annotations, lines, parent_key): # <<<<<<<<<<<<<< | 3028 | * def _update_from_first_parent(self, key, annotations, lines, parent_key): # <<<<<<<<<<<<<< |
1283 | @@ -3037,7 +3037,7 @@ | |||
1284 | 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;} |
1285 | 3038 | __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; | 3038 | __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; |
1286 | 3039 | 3039 | ||
1288 | 3040 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":256 | 3040 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":256 |
1289 | 3041 | * matching_blocks) | 3041 | * matching_blocks) |
1290 | 3042 | * | 3042 | * |
1291 | 3043 | * def _update_from_other_parents(self, key, annotations, lines, # <<<<<<<<<<<<<< | 3043 | * def _update_from_other_parents(self, key, annotations, lines, # <<<<<<<<<<<<<< |
1292 | @@ -3052,7 +3052,7 @@ | |||
1293 | 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;} |
1294 | 3053 | __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; | 3053 | __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; |
1295 | 3054 | 3054 | ||
1297 | 3055 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":265 | 3055 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":265 |
1298 | 3056 | * matching_blocks, self._ann_tuple_cache) | 3056 | * matching_blocks, self._ann_tuple_cache) |
1299 | 3057 | * | 3057 | * |
1300 | 3058 | * def annotate_flat(self, key): # <<<<<<<<<<<<<< | 3058 | * def annotate_flat(self, key): # <<<<<<<<<<<<<< |
1301 | @@ -3070,7 +3070,7 @@ | |||
1302 | 3070 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; | 3070 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; |
1303 | 3071 | __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; | 3071 | __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; |
1304 | 3072 | 3072 | ||
1306 | 3073 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_annotator_pyx.pyx":1 | 3073 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_annotator_pyx.pyx":1 |
1307 | 3074 | * # Copyright (C) 2009, 2010 Canonical Ltd # <<<<<<<<<<<<<< | 3074 | * # Copyright (C) 2009, 2010 Canonical Ltd # <<<<<<<<<<<<<< |
1308 | 3075 | * # | 3075 | * # |
1309 | 3076 | * # This program is free software; you can redistribute it and/or modify | 3076 | * # This program is free software; you can redistribute it and/or modify |
1310 | 3077 | 3077 | ||
1311 | === modified file 'bzrlib/_bencode_pyx.c' | |||
1312 | --- bzrlib/_bencode_pyx.c 2011-08-31 15:04:43 +0000 | |||
1313 | +++ bzrlib/_bencode_pyx.c 2011-11-03 14:37:19 +0000 | |||
1314 | @@ -1,4 +1,4 @@ | |||
1316 | 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 */ |
1317 | 2 | 2 | ||
1318 | 3 | #define PY_SSIZE_T_CLEAN | 3 | #define PY_SSIZE_T_CLEAN |
1319 | 4 | #include "Python.h" | 4 | #include "Python.h" |
1320 | @@ -281,7 +281,7 @@ | |||
1321 | 281 | 281 | ||
1322 | 282 | /* Type declarations */ | 282 | /* Type declarations */ |
1323 | 283 | 283 | ||
1325 | 284 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":240 | 284 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":240 |
1326 | 285 | * | 285 | * |
1327 | 286 | * | 286 | * |
1328 | 287 | * cdef enum: # <<<<<<<<<<<<<< | 287 | * cdef enum: # <<<<<<<<<<<<<< |
1329 | @@ -294,7 +294,7 @@ | |||
1330 | 294 | __pyx_e_6bzrlib_12_bencode_pyx_INT_BUF_SIZE = 32 | 294 | __pyx_e_6bzrlib_12_bencode_pyx_INT_BUF_SIZE = 32 |
1331 | 295 | }; | 295 | }; |
1332 | 296 | 296 | ||
1334 | 297 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":54 | 297 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":54 |
1335 | 298 | * int snprintf(char* buffer, size_t nsize, char* fmt, ...) | 298 | * int snprintf(char* buffer, size_t nsize, char* fmt, ...) |
1336 | 299 | * | 299 | * |
1337 | 300 | * cdef class Decoder # <<<<<<<<<<<<<< | 300 | * cdef class Decoder # <<<<<<<<<<<<<< |
1338 | @@ -311,7 +311,7 @@ | |||
1339 | 311 | PyObject *text; | 311 | PyObject *text; |
1340 | 312 | }; | 312 | }; |
1341 | 313 | 313 | ||
1343 | 314 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":55 | 314 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":55 |
1344 | 315 | * | 315 | * |
1345 | 316 | * cdef class Decoder | 316 | * cdef class Decoder |
1346 | 317 | * cdef class Encoder # <<<<<<<<<<<<<< | 317 | * cdef class Encoder # <<<<<<<<<<<<<< |
1347 | @@ -329,7 +329,7 @@ | |||
1348 | 329 | }; | 329 | }; |
1349 | 330 | 330 | ||
1350 | 331 | 331 | ||
1352 | 332 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":245 | 332 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":245 |
1353 | 333 | * | 333 | * |
1354 | 334 | * | 334 | * |
1355 | 335 | * cdef class Encoder: # <<<<<<<<<<<<<< | 335 | * cdef class Encoder: # <<<<<<<<<<<<<< |
1356 | @@ -349,7 +349,7 @@ | |||
1357 | 349 | static struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *__pyx_vtabptr_6bzrlib_12_bencode_pyx_Encoder; | 349 | static struct __pyx_vtabstruct_6bzrlib_12_bencode_pyx_Encoder *__pyx_vtabptr_6bzrlib_12_bencode_pyx_Encoder; |
1358 | 350 | 350 | ||
1359 | 351 | 351 | ||
1361 | 352 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":69 | 352 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":69 |
1362 | 353 | * | 353 | * |
1363 | 354 | * | 354 | * |
1364 | 355 | * cdef class Decoder: # <<<<<<<<<<<<<< | 355 | * cdef class Decoder: # <<<<<<<<<<<<<< |
1365 | @@ -636,7 +636,7 @@ | |||
1366 | 636 | static PyObject *__pyx_int_0; | 636 | static PyObject *__pyx_int_0; |
1367 | 637 | static int __pyx_k_15; | 637 | static int __pyx_k_15; |
1368 | 638 | 638 | ||
1370 | 639 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":72 | 639 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":72 |
1371 | 640 | * """Bencode decoder""" | 640 | * """Bencode decoder""" |
1372 | 641 | * | 641 | * |
1373 | 642 | * cdef readonly char *tail # <<<<<<<<<<<<<< | 642 | * cdef readonly char *tail # <<<<<<<<<<<<<< |
1374 | @@ -668,7 +668,7 @@ | |||
1375 | 668 | return __pyx_r; | 668 | return __pyx_r; |
1376 | 669 | } | 669 | } |
1377 | 670 | 670 | ||
1379 | 671 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":73 | 671 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":73 |
1380 | 672 | * | 672 | * |
1381 | 673 | * cdef readonly char *tail | 673 | * cdef readonly char *tail |
1382 | 674 | * cdef readonly int size # <<<<<<<<<<<<<< | 674 | * cdef readonly int size # <<<<<<<<<<<<<< |
1383 | @@ -700,7 +700,7 @@ | |||
1384 | 700 | return __pyx_r; | 700 | return __pyx_r; |
1385 | 701 | } | 701 | } |
1386 | 702 | 702 | ||
1388 | 703 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":74 | 703 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":74 |
1389 | 704 | * cdef readonly char *tail | 704 | * cdef readonly char *tail |
1390 | 705 | * cdef readonly int size | 705 | * cdef readonly int size |
1391 | 706 | * cdef readonly int _yield_tuples # <<<<<<<<<<<<<< | 706 | * cdef readonly int _yield_tuples # <<<<<<<<<<<<<< |
1392 | @@ -732,7 +732,7 @@ | |||
1393 | 732 | return __pyx_r; | 732 | return __pyx_r; |
1394 | 733 | } | 733 | } |
1395 | 734 | 734 | ||
1397 | 735 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":77 | 735 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":77 |
1398 | 736 | * cdef object text | 736 | * cdef object text |
1399 | 737 | * | 737 | * |
1400 | 738 | * def __init__(self, s, yield_tuples=0): # <<<<<<<<<<<<<< | 738 | * def __init__(self, s, yield_tuples=0): # <<<<<<<<<<<<<< |
1401 | @@ -799,7 +799,7 @@ | |||
1402 | 799 | return -1; | 799 | return -1; |
1403 | 800 | __pyx_L4_argument_unpacking_done:; | 800 | __pyx_L4_argument_unpacking_done:; |
1404 | 801 | 801 | ||
1406 | 802 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":81 | 802 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":81 |
1407 | 803 | * @param s: Python string. | 803 | * @param s: Python string. |
1408 | 804 | * """ | 804 | * """ |
1409 | 805 | * if not PyString_CheckExact(s): # <<<<<<<<<<<<<< | 805 | * if not PyString_CheckExact(s): # <<<<<<<<<<<<<< |
1410 | @@ -809,7 +809,7 @@ | |||
1411 | 809 | __pyx_t_1 = (!PyString_CheckExact(__pyx_v_s)); | 809 | __pyx_t_1 = (!PyString_CheckExact(__pyx_v_s)); |
1412 | 810 | if (__pyx_t_1) { | 810 | if (__pyx_t_1) { |
1413 | 811 | 811 | ||
1415 | 812 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":82 | 812 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":82 |
1416 | 813 | * """ | 813 | * """ |
1417 | 814 | * if not PyString_CheckExact(s): | 814 | * if not PyString_CheckExact(s): |
1418 | 815 | * raise TypeError("String required") # <<<<<<<<<<<<<< | 815 | * raise TypeError("String required") # <<<<<<<<<<<<<< |
1419 | @@ -831,7 +831,7 @@ | |||
1420 | 831 | } | 831 | } |
1421 | 832 | __pyx_L6:; | 832 | __pyx_L6:; |
1422 | 833 | 833 | ||
1424 | 834 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":84 | 834 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":84 |
1425 | 835 | * raise TypeError("String required") | 835 | * raise TypeError("String required") |
1426 | 836 | * | 836 | * |
1427 | 837 | * self.text = s # <<<<<<<<<<<<<< | 837 | * self.text = s # <<<<<<<<<<<<<< |
1428 | @@ -844,7 +844,7 @@ | |||
1429 | 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); |
1430 | 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; |
1431 | 846 | 846 | ||
1433 | 847 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":85 | 847 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":85 |
1434 | 848 | * | 848 | * |
1435 | 849 | * self.text = s | 849 | * self.text = s |
1436 | 850 | * self.tail = PyString_AS_STRING(s) # <<<<<<<<<<<<<< | 850 | * self.tail = PyString_AS_STRING(s) # <<<<<<<<<<<<<< |
1437 | @@ -854,7 +854,7 @@ | |||
1438 | 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;} |
1439 | 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; |
1440 | 856 | 856 | ||
1442 | 857 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":86 | 857 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":86 |
1443 | 858 | * self.text = s | 858 | * self.text = s |
1444 | 859 | * self.tail = PyString_AS_STRING(s) | 859 | * self.tail = PyString_AS_STRING(s) |
1445 | 860 | * self.size = PyString_GET_SIZE(s) # <<<<<<<<<<<<<< | 860 | * self.size = PyString_GET_SIZE(s) # <<<<<<<<<<<<<< |
1446 | @@ -864,7 +864,7 @@ | |||
1447 | 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;} |
1448 | 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; |
1449 | 866 | 866 | ||
1451 | 867 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":87 | 867 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":87 |
1452 | 868 | * self.tail = PyString_AS_STRING(s) | 868 | * self.tail = PyString_AS_STRING(s) |
1453 | 869 | * self.size = PyString_GET_SIZE(s) | 869 | * self.size = PyString_GET_SIZE(s) |
1454 | 870 | * self._yield_tuples = int(yield_tuples) # <<<<<<<<<<<<<< | 870 | * self._yield_tuples = int(yield_tuples) # <<<<<<<<<<<<<< |
1455 | @@ -895,7 +895,7 @@ | |||
1456 | 895 | return __pyx_r; | 895 | return __pyx_r; |
1457 | 896 | } | 896 | } |
1458 | 897 | 897 | ||
1460 | 898 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":89 | 898 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":89 |
1461 | 899 | * self._yield_tuples = int(yield_tuples) | 899 | * self._yield_tuples = int(yield_tuples) |
1462 | 900 | * | 900 | * |
1463 | 901 | * def decode(self): # <<<<<<<<<<<<<< | 901 | * def decode(self): # <<<<<<<<<<<<<< |
1464 | @@ -913,7 +913,7 @@ | |||
1465 | 913 | __Pyx_RefNannySetupContext("decode"); | 913 | __Pyx_RefNannySetupContext("decode"); |
1466 | 914 | __pyx_v_result = Py_None; __Pyx_INCREF(Py_None); | 914 | __pyx_v_result = Py_None; __Pyx_INCREF(Py_None); |
1467 | 915 | 915 | ||
1469 | 916 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":90 | 916 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":90 |
1470 | 917 | * | 917 | * |
1471 | 918 | * def decode(self): | 918 | * def decode(self): |
1472 | 919 | * result = self._decode_object() # <<<<<<<<<<<<<< | 919 | * result = self._decode_object() # <<<<<<<<<<<<<< |
1473 | @@ -926,7 +926,7 @@ | |||
1474 | 926 | __pyx_v_result = __pyx_t_1; | 926 | __pyx_v_result = __pyx_t_1; |
1475 | 927 | __pyx_t_1 = 0; | 927 | __pyx_t_1 = 0; |
1476 | 928 | 928 | ||
1478 | 929 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":91 | 929 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":91 |
1479 | 930 | * def decode(self): | 930 | * def decode(self): |
1480 | 931 | * result = self._decode_object() | 931 | * result = self._decode_object() |
1481 | 932 | * if self.size != 0: # <<<<<<<<<<<<<< | 932 | * if self.size != 0: # <<<<<<<<<<<<<< |
1482 | @@ -936,7 +936,7 @@ | |||
1483 | 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); |
1484 | 937 | if (__pyx_t_2) { | 937 | if (__pyx_t_2) { |
1485 | 938 | 938 | ||
1487 | 939 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":92 | 939 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":92 |
1488 | 940 | * result = self._decode_object() | 940 | * result = self._decode_object() |
1489 | 941 | * if self.size != 0: | 941 | * if self.size != 0: |
1490 | 942 | * raise ValueError('junk in stream') # <<<<<<<<<<<<<< | 942 | * raise ValueError('junk in stream') # <<<<<<<<<<<<<< |
1491 | @@ -958,7 +958,7 @@ | |||
1492 | 958 | } | 958 | } |
1493 | 959 | __pyx_L5:; | 959 | __pyx_L5:; |
1494 | 960 | 960 | ||
1496 | 961 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":93 | 961 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":93 |
1497 | 962 | * if self.size != 0: | 962 | * if self.size != 0: |
1498 | 963 | * raise ValueError('junk in stream') | 963 | * raise ValueError('junk in stream') |
1499 | 964 | * return result # <<<<<<<<<<<<<< | 964 | * return result # <<<<<<<<<<<<<< |
1500 | @@ -984,7 +984,7 @@ | |||
1501 | 984 | return __pyx_r; | 984 | return __pyx_r; |
1502 | 985 | } | 985 | } |
1503 | 986 | 986 | ||
1505 | 987 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":95 | 987 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":95 |
1506 | 988 | * return result | 988 | * return result |
1507 | 989 | * | 989 | * |
1508 | 990 | * def decode_object(self): # <<<<<<<<<<<<<< | 990 | * def decode_object(self): # <<<<<<<<<<<<<< |
1509 | @@ -998,7 +998,7 @@ | |||
1510 | 998 | PyObject *__pyx_t_1 = NULL; | 998 | PyObject *__pyx_t_1 = NULL; |
1511 | 999 | __Pyx_RefNannySetupContext("decode_object"); | 999 | __Pyx_RefNannySetupContext("decode_object"); |
1512 | 1000 | 1000 | ||
1514 | 1001 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":96 | 1001 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":96 |
1515 | 1002 | * | 1002 | * |
1516 | 1003 | * def decode_object(self): | 1003 | * def decode_object(self): |
1517 | 1004 | * return self._decode_object() # <<<<<<<<<<<<<< | 1004 | * return self._decode_object() # <<<<<<<<<<<<<< |
1518 | @@ -1024,7 +1024,7 @@ | |||
1519 | 1024 | return __pyx_r; | 1024 | return __pyx_r; |
1520 | 1025 | } | 1025 | } |
1521 | 1026 | 1026 | ||
1523 | 1027 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":98 | 1027 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":98 |
1524 | 1028 | * return self._decode_object() | 1028 | * return self._decode_object() |
1525 | 1029 | * | 1029 | * |
1526 | 1030 | * cdef object _decode_object(self): # <<<<<<<<<<<<<< | 1030 | * cdef object _decode_object(self): # <<<<<<<<<<<<<< |
1527 | @@ -1041,7 +1041,7 @@ | |||
1528 | 1041 | int __pyx_t_4; | 1041 | int __pyx_t_4; |
1529 | 1042 | __Pyx_RefNannySetupContext("_decode_object"); | 1042 | __Pyx_RefNannySetupContext("_decode_object"); |
1530 | 1043 | 1043 | ||
1532 | 1044 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":101 | 1044 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":101 |
1533 | 1045 | * cdef char ch | 1045 | * cdef char ch |
1534 | 1046 | * | 1046 | * |
1535 | 1047 | * if 0 == self.size: # <<<<<<<<<<<<<< | 1047 | * if 0 == self.size: # <<<<<<<<<<<<<< |
1536 | @@ -1051,7 +1051,7 @@ | |||
1537 | 1051 | __pyx_t_1 = (0 == __pyx_v_self->size); | 1051 | __pyx_t_1 = (0 == __pyx_v_self->size); |
1538 | 1052 | if (__pyx_t_1) { | 1052 | if (__pyx_t_1) { |
1539 | 1053 | 1053 | ||
1541 | 1054 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":102 | 1054 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":102 |
1542 | 1055 | * | 1055 | * |
1543 | 1056 | * if 0 == self.size: | 1056 | * if 0 == self.size: |
1544 | 1057 | * raise ValueError('stream underflow') # <<<<<<<<<<<<<< | 1057 | * raise ValueError('stream underflow') # <<<<<<<<<<<<<< |
1545 | @@ -1073,7 +1073,7 @@ | |||
1546 | 1073 | } | 1073 | } |
1547 | 1074 | __pyx_L3:; | 1074 | __pyx_L3:; |
1548 | 1075 | 1075 | ||
1550 | 1076 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":104 | 1076 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":104 |
1551 | 1077 | * raise ValueError('stream underflow') | 1077 | * raise ValueError('stream underflow') |
1552 | 1078 | * | 1078 | * |
1553 | 1079 | * if Py_EnterRecursiveCall("_decode_object"): # <<<<<<<<<<<<<< | 1079 | * if Py_EnterRecursiveCall("_decode_object"): # <<<<<<<<<<<<<< |
1554 | @@ -1083,7 +1083,7 @@ | |||
1555 | 1083 | __pyx_t_4 = Py_EnterRecursiveCall(__pyx_k___decode_object); | 1083 | __pyx_t_4 = Py_EnterRecursiveCall(__pyx_k___decode_object); |
1556 | 1084 | if (__pyx_t_4) { | 1084 | if (__pyx_t_4) { |
1557 | 1085 | 1085 | ||
1559 | 1086 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":105 | 1086 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":105 |
1560 | 1087 | * | 1087 | * |
1561 | 1088 | * if Py_EnterRecursiveCall("_decode_object"): | 1088 | * if Py_EnterRecursiveCall("_decode_object"): |
1562 | 1089 | * raise RuntimeError("too deeply nested") # <<<<<<<<<<<<<< | 1089 | * raise RuntimeError("too deeply nested") # <<<<<<<<<<<<<< |
1563 | @@ -1105,7 +1105,7 @@ | |||
1564 | 1105 | } | 1105 | } |
1565 | 1106 | __pyx_L4:; | 1106 | __pyx_L4:; |
1566 | 1107 | 1107 | ||
1568 | 1108 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":106 | 1108 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":106 |
1569 | 1109 | * if Py_EnterRecursiveCall("_decode_object"): | 1109 | * if Py_EnterRecursiveCall("_decode_object"): |
1570 | 1110 | * raise RuntimeError("too deeply nested") | 1110 | * raise RuntimeError("too deeply nested") |
1571 | 1111 | * try: # <<<<<<<<<<<<<< | 1111 | * try: # <<<<<<<<<<<<<< |
1572 | @@ -1114,7 +1114,7 @@ | |||
1573 | 1114 | */ | 1114 | */ |
1574 | 1115 | /*try:*/ { | 1115 | /*try:*/ { |
1575 | 1116 | 1116 | ||
1577 | 1117 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":107 | 1117 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":107 |
1578 | 1118 | * raise RuntimeError("too deeply nested") | 1118 | * raise RuntimeError("too deeply nested") |
1579 | 1119 | * try: | 1119 | * try: |
1580 | 1120 | * ch = self.tail[0] # <<<<<<<<<<<<<< | 1120 | * ch = self.tail[0] # <<<<<<<<<<<<<< |
1581 | @@ -1123,7 +1123,7 @@ | |||
1582 | 1123 | */ | 1123 | */ |
1583 | 1124 | __pyx_v_ch = (__pyx_v_self->tail[0]); | 1124 | __pyx_v_ch = (__pyx_v_self->tail[0]); |
1584 | 1125 | 1125 | ||
1586 | 1126 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":108 | 1126 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":108 |
1587 | 1127 | * try: | 1127 | * try: |
1588 | 1128 | * ch = self.tail[0] | 1128 | * ch = self.tail[0] |
1589 | 1129 | * if c'0' <= ch <= c'9': # <<<<<<<<<<<<<< | 1129 | * if c'0' <= ch <= c'9': # <<<<<<<<<<<<<< |
1590 | @@ -1136,7 +1136,7 @@ | |||
1591 | 1136 | } | 1136 | } |
1592 | 1137 | if (__pyx_t_1) { | 1137 | if (__pyx_t_1) { |
1593 | 1138 | 1138 | ||
1595 | 1139 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":109 | 1139 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":109 |
1596 | 1140 | * ch = self.tail[0] | 1140 | * ch = self.tail[0] |
1597 | 1141 | * if c'0' <= ch <= c'9': | 1141 | * if c'0' <= ch <= c'9': |
1598 | 1142 | * return self._decode_string() # <<<<<<<<<<<<<< | 1142 | * return self._decode_string() # <<<<<<<<<<<<<< |
1599 | @@ -1152,7 +1152,7 @@ | |||
1600 | 1152 | goto __pyx_L8; | 1152 | goto __pyx_L8; |
1601 | 1153 | } | 1153 | } |
1602 | 1154 | 1154 | ||
1604 | 1155 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":110 | 1155 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":110 |
1605 | 1156 | * if c'0' <= ch <= c'9': | 1156 | * if c'0' <= ch <= c'9': |
1606 | 1157 | * return self._decode_string() | 1157 | * return self._decode_string() |
1607 | 1158 | * elif ch == c'l': # <<<<<<<<<<<<<< | 1158 | * elif ch == c'l': # <<<<<<<<<<<<<< |
1608 | @@ -1162,7 +1162,7 @@ | |||
1609 | 1162 | __pyx_t_1 = (__pyx_v_ch == 'l'); | 1162 | __pyx_t_1 = (__pyx_v_ch == 'l'); |
1610 | 1163 | if (__pyx_t_1) { | 1163 | if (__pyx_t_1) { |
1611 | 1164 | 1164 | ||
1613 | 1165 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":111 | 1165 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":111 |
1614 | 1166 | * return self._decode_string() | 1166 | * return self._decode_string() |
1615 | 1167 | * elif ch == c'l': | 1167 | * elif ch == c'l': |
1616 | 1168 | * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< | 1168 | * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< |
1617 | @@ -1171,7 +1171,7 @@ | |||
1618 | 1171 | */ | 1171 | */ |
1619 | 1172 | D_UPDATE_TAIL(__pyx_v_self, 1); | 1172 | D_UPDATE_TAIL(__pyx_v_self, 1); |
1620 | 1173 | 1173 | ||
1622 | 1174 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":112 | 1174 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":112 |
1623 | 1175 | * elif ch == c'l': | 1175 | * elif ch == c'l': |
1624 | 1176 | * D_UPDATE_TAIL(self, 1) | 1176 | * D_UPDATE_TAIL(self, 1) |
1625 | 1177 | * return self._decode_list() # <<<<<<<<<<<<<< | 1177 | * return self._decode_list() # <<<<<<<<<<<<<< |
1626 | @@ -1187,7 +1187,7 @@ | |||
1627 | 1187 | goto __pyx_L8; | 1187 | goto __pyx_L8; |
1628 | 1188 | } | 1188 | } |
1629 | 1189 | 1189 | ||
1631 | 1190 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":113 | 1190 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":113 |
1632 | 1191 | * D_UPDATE_TAIL(self, 1) | 1191 | * D_UPDATE_TAIL(self, 1) |
1633 | 1192 | * return self._decode_list() | 1192 | * return self._decode_list() |
1634 | 1193 | * elif ch == c'i': # <<<<<<<<<<<<<< | 1193 | * elif ch == c'i': # <<<<<<<<<<<<<< |
1635 | @@ -1197,7 +1197,7 @@ | |||
1636 | 1197 | __pyx_t_1 = (__pyx_v_ch == 'i'); | 1197 | __pyx_t_1 = (__pyx_v_ch == 'i'); |
1637 | 1198 | if (__pyx_t_1) { | 1198 | if (__pyx_t_1) { |
1638 | 1199 | 1199 | ||
1640 | 1200 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":114 | 1200 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":114 |
1641 | 1201 | * return self._decode_list() | 1201 | * return self._decode_list() |
1642 | 1202 | * elif ch == c'i': | 1202 | * elif ch == c'i': |
1643 | 1203 | * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< | 1203 | * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< |
1644 | @@ -1206,7 +1206,7 @@ | |||
1645 | 1206 | */ | 1206 | */ |
1646 | 1207 | D_UPDATE_TAIL(__pyx_v_self, 1); | 1207 | D_UPDATE_TAIL(__pyx_v_self, 1); |
1647 | 1208 | 1208 | ||
1649 | 1209 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":115 | 1209 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":115 |
1650 | 1210 | * elif ch == c'i': | 1210 | * elif ch == c'i': |
1651 | 1211 | * D_UPDATE_TAIL(self, 1) | 1211 | * D_UPDATE_TAIL(self, 1) |
1652 | 1212 | * return self._decode_int() # <<<<<<<<<<<<<< | 1212 | * return self._decode_int() # <<<<<<<<<<<<<< |
1653 | @@ -1222,7 +1222,7 @@ | |||
1654 | 1222 | goto __pyx_L8; | 1222 | goto __pyx_L8; |
1655 | 1223 | } | 1223 | } |
1656 | 1224 | 1224 | ||
1658 | 1225 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":116 | 1225 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":116 |
1659 | 1226 | * D_UPDATE_TAIL(self, 1) | 1226 | * D_UPDATE_TAIL(self, 1) |
1660 | 1227 | * return self._decode_int() | 1227 | * return self._decode_int() |
1661 | 1228 | * elif ch == c'd': # <<<<<<<<<<<<<< | 1228 | * elif ch == c'd': # <<<<<<<<<<<<<< |
1662 | @@ -1232,7 +1232,7 @@ | |||
1663 | 1232 | __pyx_t_1 = (__pyx_v_ch == 'd'); | 1232 | __pyx_t_1 = (__pyx_v_ch == 'd'); |
1664 | 1233 | if (__pyx_t_1) { | 1233 | if (__pyx_t_1) { |
1665 | 1234 | 1234 | ||
1667 | 1235 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":117 | 1235 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":117 |
1668 | 1236 | * return self._decode_int() | 1236 | * return self._decode_int() |
1669 | 1237 | * elif ch == c'd': | 1237 | * elif ch == c'd': |
1670 | 1238 | * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< | 1238 | * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< |
1671 | @@ -1241,7 +1241,7 @@ | |||
1672 | 1241 | */ | 1241 | */ |
1673 | 1242 | D_UPDATE_TAIL(__pyx_v_self, 1); | 1242 | D_UPDATE_TAIL(__pyx_v_self, 1); |
1674 | 1243 | 1243 | ||
1676 | 1244 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":118 | 1244 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":118 |
1677 | 1245 | * elif ch == c'd': | 1245 | * elif ch == c'd': |
1678 | 1246 | * D_UPDATE_TAIL(self, 1) | 1246 | * D_UPDATE_TAIL(self, 1) |
1679 | 1247 | * return self._decode_dict() # <<<<<<<<<<<<<< | 1247 | * return self._decode_dict() # <<<<<<<<<<<<<< |
1680 | @@ -1258,7 +1258,7 @@ | |||
1681 | 1258 | } | 1258 | } |
1682 | 1259 | /*else*/ { | 1259 | /*else*/ { |
1683 | 1260 | 1260 | ||
1685 | 1261 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":120 | 1261 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":120 |
1686 | 1262 | * return self._decode_dict() | 1262 | * return self._decode_dict() |
1687 | 1263 | * else: | 1263 | * else: |
1688 | 1264 | * raise ValueError('unknown object type identifier %r' % ch) # <<<<<<<<<<<<<< | 1264 | * raise ValueError('unknown object type identifier %r' % ch) # <<<<<<<<<<<<<< |
1689 | @@ -1285,7 +1285,7 @@ | |||
1690 | 1285 | __pyx_L8:; | 1285 | __pyx_L8:; |
1691 | 1286 | } | 1286 | } |
1692 | 1287 | 1287 | ||
1694 | 1288 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":122 | 1288 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":122 |
1695 | 1289 | * raise ValueError('unknown object type identifier %r' % ch) | 1289 | * raise ValueError('unknown object type identifier %r' % ch) |
1696 | 1290 | * finally: | 1290 | * finally: |
1697 | 1291 | * Py_LeaveRecursiveCall() # <<<<<<<<<<<<<< | 1291 | * Py_LeaveRecursiveCall() # <<<<<<<<<<<<<< |
1698 | @@ -1336,7 +1336,7 @@ | |||
1699 | 1336 | return __pyx_r; | 1336 | return __pyx_r; |
1700 | 1337 | } | 1337 | } |
1701 | 1338 | 1338 | ||
1703 | 1339 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":124 | 1339 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":124 |
1704 | 1340 | * Py_LeaveRecursiveCall() | 1340 | * Py_LeaveRecursiveCall() |
1705 | 1341 | * | 1341 | * |
1706 | 1342 | * cdef int _read_digits(self, char stop_char) except -1: # <<<<<<<<<<<<<< | 1342 | * cdef int _read_digits(self, char stop_char) except -1: # <<<<<<<<<<<<<< |
1707 | @@ -1356,7 +1356,7 @@ | |||
1708 | 1356 | int __pyx_t_7; | 1356 | int __pyx_t_7; |
1709 | 1357 | __Pyx_RefNannySetupContext("_read_digits"); | 1357 | __Pyx_RefNannySetupContext("_read_digits"); |
1710 | 1358 | 1358 | ||
1712 | 1359 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":126 | 1359 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":126 |
1713 | 1360 | * cdef int _read_digits(self, char stop_char) except -1: | 1360 | * cdef int _read_digits(self, char stop_char) except -1: |
1714 | 1361 | * cdef int i | 1361 | * cdef int i |
1715 | 1362 | * i = 0 # <<<<<<<<<<<<<< | 1362 | * i = 0 # <<<<<<<<<<<<<< |
1716 | @@ -1365,7 +1365,7 @@ | |||
1717 | 1365 | */ | 1365 | */ |
1718 | 1366 | __pyx_v_i = 0; | 1366 | __pyx_v_i = 0; |
1719 | 1367 | 1367 | ||
1721 | 1368 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":127 | 1368 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":127 |
1722 | 1369 | * cdef int i | 1369 | * cdef int i |
1723 | 1370 | * i = 0 | 1370 | * i = 0 |
1724 | 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 # <<<<<<<<<<<<<< |
1725 | @@ -1374,7 +1374,7 @@ | |||
1726 | 1374 | */ | 1374 | */ |
1727 | 1375 | while (1) { | 1375 | while (1) { |
1728 | 1376 | 1376 | ||
1730 | 1377 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":128 | 1377 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":128 |
1731 | 1378 | * i = 0 | 1378 | * i = 0 |
1732 | 1379 | * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or | 1379 | * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or |
1733 | 1380 | * self.tail[i] == c'-') and i < self.size: # <<<<<<<<<<<<<< | 1380 | * self.tail[i] == c'-') and i < self.size: # <<<<<<<<<<<<<< |
1734 | @@ -1384,7 +1384,7 @@ | |||
1735 | 1384 | __pyx_t_1 = ((__pyx_v_self->tail[__pyx_v_i]) >= '0'); | 1384 | __pyx_t_1 = ((__pyx_v_self->tail[__pyx_v_i]) >= '0'); |
1736 | 1385 | if (__pyx_t_1) { | 1385 | if (__pyx_t_1) { |
1737 | 1386 | 1386 | ||
1739 | 1387 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":127 | 1387 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":127 |
1740 | 1388 | * cdef int i | 1388 | * cdef int i |
1741 | 1389 | * i = 0 | 1389 | * i = 0 |
1742 | 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 # <<<<<<<<<<<<<< |
1743 | @@ -1398,7 +1398,7 @@ | |||
1744 | 1398 | } | 1398 | } |
1745 | 1399 | if (!__pyx_t_3) { | 1399 | if (!__pyx_t_3) { |
1746 | 1400 | 1400 | ||
1748 | 1401 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":128 | 1401 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":128 |
1749 | 1402 | * i = 0 | 1402 | * i = 0 |
1750 | 1403 | * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or | 1403 | * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or |
1751 | 1404 | * self.tail[i] == c'-') and i < self.size: # <<<<<<<<<<<<<< | 1404 | * self.tail[i] == c'-') and i < self.size: # <<<<<<<<<<<<<< |
1752 | @@ -1418,7 +1418,7 @@ | |||
1753 | 1418 | } | 1418 | } |
1754 | 1419 | if (!__pyx_t_1) break; | 1419 | if (!__pyx_t_1) break; |
1755 | 1420 | 1420 | ||
1757 | 1421 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":129 | 1421 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":129 |
1758 | 1422 | * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or | 1422 | * while ((self.tail[i] >= c'0' and self.tail[i] <= c'9') or |
1759 | 1423 | * self.tail[i] == c'-') and i < self.size: | 1423 | * self.tail[i] == c'-') and i < self.size: |
1760 | 1424 | * i = i + 1 # <<<<<<<<<<<<<< | 1424 | * i = i + 1 # <<<<<<<<<<<<<< |
1761 | @@ -1428,7 +1428,7 @@ | |||
1762 | 1428 | __pyx_v_i = (__pyx_v_i + 1); | 1428 | __pyx_v_i = (__pyx_v_i + 1); |
1763 | 1429 | } | 1429 | } |
1764 | 1430 | 1430 | ||
1766 | 1431 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":131 | 1431 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":131 |
1767 | 1432 | * i = i + 1 | 1432 | * i = i + 1 |
1768 | 1433 | * | 1433 | * |
1769 | 1434 | * if self.tail[i] != stop_char: # <<<<<<<<<<<<<< | 1434 | * if self.tail[i] != stop_char: # <<<<<<<<<<<<<< |
1770 | @@ -1438,7 +1438,7 @@ | |||
1771 | 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); |
1772 | 1439 | if (__pyx_t_1) { | 1439 | if (__pyx_t_1) { |
1773 | 1440 | 1440 | ||
1775 | 1441 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":133 | 1441 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":133 |
1776 | 1442 | * if self.tail[i] != stop_char: | 1442 | * if self.tail[i] != stop_char: |
1777 | 1443 | * raise ValueError("Stop character %c not found: %c" % | 1443 | * raise ValueError("Stop character %c not found: %c" % |
1778 | 1444 | * (stop_char, self.tail[i])) # <<<<<<<<<<<<<< | 1444 | * (stop_char, self.tail[i])) # <<<<<<<<<<<<<< |
1779 | @@ -1475,7 +1475,7 @@ | |||
1780 | 1475 | } | 1475 | } |
1781 | 1476 | __pyx_L5:; | 1476 | __pyx_L5:; |
1782 | 1477 | 1477 | ||
1784 | 1478 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":134 | 1478 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":134 |
1785 | 1479 | * raise ValueError("Stop character %c not found: %c" % | 1479 | * raise ValueError("Stop character %c not found: %c" % |
1786 | 1480 | * (stop_char, self.tail[i])) | 1480 | * (stop_char, self.tail[i])) |
1787 | 1481 | * if (self.tail[0] == c'0' or # <<<<<<<<<<<<<< | 1481 | * if (self.tail[0] == c'0' or # <<<<<<<<<<<<<< |
1788 | @@ -1485,7 +1485,7 @@ | |||
1789 | 1485 | __pyx_t_1 = ((__pyx_v_self->tail[0]) == '0'); | 1485 | __pyx_t_1 = ((__pyx_v_self->tail[0]) == '0'); |
1790 | 1486 | if (!__pyx_t_1) { | 1486 | if (!__pyx_t_1) { |
1791 | 1487 | 1487 | ||
1793 | 1488 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":135 | 1488 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":135 |
1794 | 1489 | * (stop_char, self.tail[i])) | 1489 | * (stop_char, self.tail[i])) |
1795 | 1490 | * if (self.tail[0] == c'0' or | 1490 | * if (self.tail[0] == c'0' or |
1796 | 1491 | * (self.tail[0] == c'-' and self.tail[1] == c'0')): # <<<<<<<<<<<<<< | 1491 | * (self.tail[0] == c'-' and self.tail[1] == c'0')): # <<<<<<<<<<<<<< |
1797 | @@ -1505,7 +1505,7 @@ | |||
1798 | 1505 | } | 1505 | } |
1799 | 1506 | if (__pyx_t_2) { | 1506 | if (__pyx_t_2) { |
1800 | 1507 | 1507 | ||
1802 | 1508 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":136 | 1508 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":136 |
1803 | 1509 | * if (self.tail[0] == c'0' or | 1509 | * if (self.tail[0] == c'0' or |
1804 | 1510 | * (self.tail[0] == c'-' and self.tail[1] == c'0')): | 1510 | * (self.tail[0] == c'-' and self.tail[1] == c'0')): |
1805 | 1511 | * if i == 1: # <<<<<<<<<<<<<< | 1511 | * if i == 1: # <<<<<<<<<<<<<< |
1806 | @@ -1515,7 +1515,7 @@ | |||
1807 | 1515 | __pyx_t_2 = (__pyx_v_i == 1); | 1515 | __pyx_t_2 = (__pyx_v_i == 1); |
1808 | 1516 | if (__pyx_t_2) { | 1516 | if (__pyx_t_2) { |
1809 | 1517 | 1517 | ||
1811 | 1518 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":137 | 1518 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":137 |
1812 | 1519 | * (self.tail[0] == c'-' and self.tail[1] == c'0')): | 1519 | * (self.tail[0] == c'-' and self.tail[1] == c'0')): |
1813 | 1520 | * if i == 1: | 1520 | * if i == 1: |
1814 | 1521 | * return i # <<<<<<<<<<<<<< | 1521 | * return i # <<<<<<<<<<<<<< |
1815 | @@ -1528,7 +1528,7 @@ | |||
1816 | 1528 | } | 1528 | } |
1817 | 1529 | /*else*/ { | 1529 | /*else*/ { |
1818 | 1530 | 1530 | ||
1820 | 1531 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":139 | 1531 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":139 |
1821 | 1532 | * return i | 1532 | * return i |
1822 | 1533 | * else: | 1533 | * else: |
1823 | 1534 | * raise ValueError # leading zeroes are not allowed # <<<<<<<<<<<<<< | 1534 | * raise ValueError # leading zeroes are not allowed # <<<<<<<<<<<<<< |
1824 | @@ -1543,7 +1543,7 @@ | |||
1825 | 1543 | } | 1543 | } |
1826 | 1544 | __pyx_L6:; | 1544 | __pyx_L6:; |
1827 | 1545 | 1545 | ||
1829 | 1546 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":140 | 1546 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":140 |
1830 | 1547 | * else: | 1547 | * else: |
1831 | 1548 | * raise ValueError # leading zeroes are not allowed | 1548 | * raise ValueError # leading zeroes are not allowed |
1832 | 1549 | * return i # <<<<<<<<<<<<<< | 1549 | * return i # <<<<<<<<<<<<<< |
1833 | @@ -1566,7 +1566,7 @@ | |||
1834 | 1566 | return __pyx_r; | 1566 | return __pyx_r; |
1835 | 1567 | } | 1567 | } |
1836 | 1568 | 1568 | ||
1838 | 1569 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":142 | 1569 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":142 |
1839 | 1570 | * return i | 1570 | * return i |
1840 | 1571 | * | 1571 | * |
1841 | 1572 | * cdef object _decode_int(self): # <<<<<<<<<<<<<< | 1572 | * cdef object _decode_int(self): # <<<<<<<<<<<<<< |
1842 | @@ -1583,7 +1583,7 @@ | |||
1843 | 1583 | __Pyx_RefNannySetupContext("_decode_int"); | 1583 | __Pyx_RefNannySetupContext("_decode_int"); |
1844 | 1584 | __pyx_v_ret = Py_None; __Pyx_INCREF(Py_None); | 1584 | __pyx_v_ret = Py_None; __Pyx_INCREF(Py_None); |
1845 | 1585 | 1585 | ||
1847 | 1586 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":144 | 1586 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":144 |
1848 | 1587 | * cdef object _decode_int(self): | 1587 | * cdef object _decode_int(self): |
1849 | 1588 | * cdef int i | 1588 | * cdef int i |
1850 | 1589 | * i = self._read_digits(c'e') # <<<<<<<<<<<<<< | 1589 | * i = self._read_digits(c'e') # <<<<<<<<<<<<<< |
1851 | @@ -1593,7 +1593,7 @@ | |||
1852 | 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;} |
1853 | 1594 | __pyx_v_i = __pyx_t_1; | 1594 | __pyx_v_i = __pyx_t_1; |
1854 | 1595 | 1595 | ||
1856 | 1596 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":145 | 1596 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":145 |
1857 | 1597 | * cdef int i | 1597 | * cdef int i |
1858 | 1598 | * i = self._read_digits(c'e') | 1598 | * i = self._read_digits(c'e') |
1859 | 1599 | * self.tail[i] = 0 # <<<<<<<<<<<<<< | 1599 | * self.tail[i] = 0 # <<<<<<<<<<<<<< |
1860 | @@ -1602,7 +1602,7 @@ | |||
1861 | 1602 | */ | 1602 | */ |
1862 | 1603 | (__pyx_v_self->tail[__pyx_v_i]) = 0; | 1603 | (__pyx_v_self->tail[__pyx_v_i]) = 0; |
1863 | 1604 | 1604 | ||
1865 | 1605 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":146 | 1605 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":146 |
1866 | 1606 | * i = self._read_digits(c'e') | 1606 | * i = self._read_digits(c'e') |
1867 | 1607 | * self.tail[i] = 0 | 1607 | * self.tail[i] = 0 |
1868 | 1608 | * try: # <<<<<<<<<<<<<< | 1608 | * try: # <<<<<<<<<<<<<< |
1869 | @@ -1611,7 +1611,7 @@ | |||
1870 | 1611 | */ | 1611 | */ |
1871 | 1612 | /*try:*/ { | 1612 | /*try:*/ { |
1872 | 1613 | 1613 | ||
1874 | 1614 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":147 | 1614 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":147 |
1875 | 1615 | * self.tail[i] = 0 | 1615 | * self.tail[i] = 0 |
1876 | 1616 | * try: | 1616 | * try: |
1877 | 1617 | * ret = PyInt_FromString(self.tail, NULL, 10) # <<<<<<<<<<<<<< | 1617 | * ret = PyInt_FromString(self.tail, NULL, 10) # <<<<<<<<<<<<<< |
1878 | @@ -1625,7 +1625,7 @@ | |||
1879 | 1625 | __pyx_t_2 = 0; | 1625 | __pyx_t_2 = 0; |
1880 | 1626 | } | 1626 | } |
1881 | 1627 | 1627 | ||
1883 | 1628 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":149 | 1628 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":149 |
1884 | 1629 | * ret = PyInt_FromString(self.tail, NULL, 10) | 1629 | * ret = PyInt_FromString(self.tail, NULL, 10) |
1885 | 1630 | * finally: | 1630 | * finally: |
1886 | 1631 | * self.tail[i] = c'e' # <<<<<<<<<<<<<< | 1631 | * self.tail[i] = c'e' # <<<<<<<<<<<<<< |
1887 | @@ -1659,7 +1659,7 @@ | |||
1888 | 1659 | } | 1659 | } |
1889 | 1660 | } | 1660 | } |
1890 | 1661 | 1661 | ||
1892 | 1662 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":150 | 1662 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":150 |
1893 | 1663 | * finally: | 1663 | * finally: |
1894 | 1664 | * self.tail[i] = c'e' | 1664 | * self.tail[i] = c'e' |
1895 | 1665 | * D_UPDATE_TAIL(self, i+1) # <<<<<<<<<<<<<< | 1665 | * D_UPDATE_TAIL(self, i+1) # <<<<<<<<<<<<<< |
1896 | @@ -1668,7 +1668,7 @@ | |||
1897 | 1668 | */ | 1668 | */ |
1898 | 1669 | D_UPDATE_TAIL(__pyx_v_self, (__pyx_v_i + 1)); | 1669 | D_UPDATE_TAIL(__pyx_v_self, (__pyx_v_i + 1)); |
1899 | 1670 | 1670 | ||
1901 | 1671 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":151 | 1671 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":151 |
1902 | 1672 | * self.tail[i] = c'e' | 1672 | * self.tail[i] = c'e' |
1903 | 1673 | * D_UPDATE_TAIL(self, i+1) | 1673 | * D_UPDATE_TAIL(self, i+1) |
1904 | 1674 | * return ret # <<<<<<<<<<<<<< | 1674 | * return ret # <<<<<<<<<<<<<< |
1905 | @@ -1693,7 +1693,7 @@ | |||
1906 | 1693 | return __pyx_r; | 1693 | return __pyx_r; |
1907 | 1694 | } | 1694 | } |
1908 | 1695 | 1695 | ||
1910 | 1696 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":153 | 1696 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":153 |
1911 | 1697 | * return ret | 1697 | * return ret |
1912 | 1698 | * | 1698 | * |
1913 | 1699 | * cdef object _decode_string(self): # <<<<<<<<<<<<<< | 1699 | * cdef object _decode_string(self): # <<<<<<<<<<<<<< |
1914 | @@ -1715,7 +1715,7 @@ | |||
1915 | 1715 | __Pyx_RefNannySetupContext("_decode_string"); | 1715 | __Pyx_RefNannySetupContext("_decode_string"); |
1916 | 1716 | __pyx_v_result = Py_None; __Pyx_INCREF(Py_None); | 1716 | __pyx_v_result = Py_None; __Pyx_INCREF(Py_None); |
1917 | 1717 | 1717 | ||
1919 | 1718 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":160 | 1718 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":160 |
1920 | 1719 | * # or they wouldn't have called _decode_string | 1719 | * # or they wouldn't have called _decode_string |
1921 | 1720 | * # strtol will stop at trailing whitespace, etc | 1720 | * # strtol will stop at trailing whitespace, etc |
1922 | 1721 | * n = strtol(self.tail, &next_tail, 10) # <<<<<<<<<<<<<< | 1721 | * n = strtol(self.tail, &next_tail, 10) # <<<<<<<<<<<<<< |
1923 | @@ -1724,7 +1724,7 @@ | |||
1924 | 1724 | */ | 1724 | */ |
1925 | 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); |
1926 | 1726 | 1726 | ||
1928 | 1727 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":161 | 1727 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":161 |
1929 | 1728 | * # strtol will stop at trailing whitespace, etc | 1728 | * # strtol will stop at trailing whitespace, etc |
1930 | 1729 | * n = strtol(self.tail, &next_tail, 10) | 1729 | * n = strtol(self.tail, &next_tail, 10) |
1931 | 1730 | * if next_tail == NULL or next_tail[0] != c':': # <<<<<<<<<<<<<< | 1730 | * if next_tail == NULL or next_tail[0] != c':': # <<<<<<<<<<<<<< |
1932 | @@ -1740,7 +1740,7 @@ | |||
1933 | 1740 | } | 1740 | } |
1934 | 1741 | if (__pyx_t_3) { | 1741 | if (__pyx_t_3) { |
1935 | 1742 | 1742 | ||
1937 | 1743 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":162 | 1743 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":162 |
1938 | 1744 | * n = strtol(self.tail, &next_tail, 10) | 1744 | * n = strtol(self.tail, &next_tail, 10) |
1939 | 1745 | * if next_tail == NULL or next_tail[0] != c':': | 1745 | * if next_tail == NULL or next_tail[0] != c':': |
1940 | 1746 | * raise ValueError('string len not terminated by ":"') # <<<<<<<<<<<<<< | 1746 | * raise ValueError('string len not terminated by ":"') # <<<<<<<<<<<<<< |
1941 | @@ -1762,7 +1762,7 @@ | |||
1942 | 1762 | } | 1762 | } |
1943 | 1763 | __pyx_L3:; | 1763 | __pyx_L3:; |
1944 | 1764 | 1764 | ||
1946 | 1765 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":164 | 1765 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":164 |
1947 | 1766 | * raise ValueError('string len not terminated by ":"') | 1766 | * raise ValueError('string len not terminated by ":"') |
1948 | 1767 | * # strtol allows leading zeros, so validate that we don't have that | 1767 | * # strtol allows leading zeros, so validate that we don't have that |
1949 | 1768 | * if (self.tail[0] == c'0' # <<<<<<<<<<<<<< | 1768 | * if (self.tail[0] == c'0' # <<<<<<<<<<<<<< |
1950 | @@ -1772,7 +1772,7 @@ | |||
1951 | 1772 | __pyx_t_3 = ((__pyx_v_self->tail[0]) == '0'); | 1772 | __pyx_t_3 = ((__pyx_v_self->tail[0]) == '0'); |
1952 | 1773 | if (__pyx_t_3) { | 1773 | if (__pyx_t_3) { |
1953 | 1774 | 1774 | ||
1955 | 1775 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":165 | 1775 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":165 |
1956 | 1776 | * # strtol allows leading zeros, so validate that we don't have that | 1776 | * # strtol allows leading zeros, so validate that we don't have that |
1957 | 1777 | * if (self.tail[0] == c'0' | 1777 | * if (self.tail[0] == c'0' |
1958 | 1778 | * and (n != 0 or (next_tail - self.tail != 1))): # <<<<<<<<<<<<<< | 1778 | * and (n != 0 or (next_tail - self.tail != 1))): # <<<<<<<<<<<<<< |
1959 | @@ -1792,7 +1792,7 @@ | |||
1960 | 1792 | } | 1792 | } |
1961 | 1793 | if (__pyx_t_1) { | 1793 | if (__pyx_t_1) { |
1962 | 1794 | 1794 | ||
1964 | 1795 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":166 | 1795 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":166 |
1965 | 1796 | * if (self.tail[0] == c'0' | 1796 | * if (self.tail[0] == c'0' |
1966 | 1797 | * and (n != 0 or (next_tail - self.tail != 1))): | 1797 | * and (n != 0 or (next_tail - self.tail != 1))): |
1967 | 1798 | * raise ValueError('leading zeros are not allowed') # <<<<<<<<<<<<<< | 1798 | * raise ValueError('leading zeros are not allowed') # <<<<<<<<<<<<<< |
1968 | @@ -1814,7 +1814,7 @@ | |||
1969 | 1814 | } | 1814 | } |
1970 | 1815 | __pyx_L4:; | 1815 | __pyx_L4:; |
1971 | 1816 | 1816 | ||
1973 | 1817 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":167 | 1817 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":167 |
1974 | 1818 | * and (n != 0 or (next_tail - self.tail != 1))): | 1818 | * and (n != 0 or (next_tail - self.tail != 1))): |
1975 | 1819 | * raise ValueError('leading zeros are not allowed') | 1819 | * raise ValueError('leading zeros are not allowed') |
1976 | 1820 | * D_UPDATE_TAIL(self, next_tail - self.tail + 1) # <<<<<<<<<<<<<< | 1820 | * D_UPDATE_TAIL(self, next_tail - self.tail + 1) # <<<<<<<<<<<<<< |
1977 | @@ -1823,7 +1823,7 @@ | |||
1978 | 1823 | */ | 1823 | */ |
1979 | 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)); |
1980 | 1825 | 1825 | ||
1982 | 1826 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":168 | 1826 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":168 |
1983 | 1827 | * raise ValueError('leading zeros are not allowed') | 1827 | * raise ValueError('leading zeros are not allowed') |
1984 | 1828 | * D_UPDATE_TAIL(self, next_tail - self.tail + 1) | 1828 | * D_UPDATE_TAIL(self, next_tail - self.tail + 1) |
1985 | 1829 | * if n == 0: # <<<<<<<<<<<<<< | 1829 | * if n == 0: # <<<<<<<<<<<<<< |
1986 | @@ -1833,7 +1833,7 @@ | |||
1987 | 1833 | __pyx_t_1 = (__pyx_v_n == 0); | 1833 | __pyx_t_1 = (__pyx_v_n == 0); |
1988 | 1834 | if (__pyx_t_1) { | 1834 | if (__pyx_t_1) { |
1989 | 1835 | 1835 | ||
1991 | 1836 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":169 | 1836 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":169 |
1992 | 1837 | * D_UPDATE_TAIL(self, next_tail - self.tail + 1) | 1837 | * D_UPDATE_TAIL(self, next_tail - self.tail + 1) |
1993 | 1838 | * if n == 0: | 1838 | * if n == 0: |
1994 | 1839 | * return '' # <<<<<<<<<<<<<< | 1839 | * return '' # <<<<<<<<<<<<<< |
1995 | @@ -1848,7 +1848,7 @@ | |||
1996 | 1848 | } | 1848 | } |
1997 | 1849 | __pyx_L5:; | 1849 | __pyx_L5:; |
1998 | 1850 | 1850 | ||
2000 | 1851 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":170 | 1851 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":170 |
2001 | 1852 | * if n == 0: | 1852 | * if n == 0: |
2002 | 1853 | * return '' | 1853 | * return '' |
2003 | 1854 | * if n > self.size: # <<<<<<<<<<<<<< | 1854 | * if n > self.size: # <<<<<<<<<<<<<< |
2004 | @@ -1858,7 +1858,7 @@ | |||
2005 | 1858 | __pyx_t_1 = (__pyx_v_n > __pyx_v_self->size); | 1858 | __pyx_t_1 = (__pyx_v_n > __pyx_v_self->size); |
2006 | 1859 | if (__pyx_t_1) { | 1859 | if (__pyx_t_1) { |
2007 | 1860 | 1860 | ||
2009 | 1861 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":171 | 1861 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":171 |
2010 | 1862 | * return '' | 1862 | * return '' |
2011 | 1863 | * if n > self.size: | 1863 | * if n > self.size: |
2012 | 1864 | * raise ValueError('stream underflow') # <<<<<<<<<<<<<< | 1864 | * raise ValueError('stream underflow') # <<<<<<<<<<<<<< |
2013 | @@ -1880,7 +1880,7 @@ | |||
2014 | 1880 | } | 1880 | } |
2015 | 1881 | __pyx_L6:; | 1881 | __pyx_L6:; |
2016 | 1882 | 1882 | ||
2018 | 1883 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":172 | 1883 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":172 |
2019 | 1884 | * if n > self.size: | 1884 | * if n > self.size: |
2020 | 1885 | * raise ValueError('stream underflow') | 1885 | * raise ValueError('stream underflow') |
2021 | 1886 | * if n < 0: # <<<<<<<<<<<<<< | 1886 | * if n < 0: # <<<<<<<<<<<<<< |
2022 | @@ -1890,7 +1890,7 @@ | |||
2023 | 1890 | __pyx_t_1 = (__pyx_v_n < 0); | 1890 | __pyx_t_1 = (__pyx_v_n < 0); |
2024 | 1891 | if (__pyx_t_1) { | 1891 | if (__pyx_t_1) { |
2025 | 1892 | 1892 | ||
2027 | 1893 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":173 | 1893 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":173 |
2028 | 1894 | * raise ValueError('stream underflow') | 1894 | * raise ValueError('stream underflow') |
2029 | 1895 | * if n < 0: | 1895 | * if n < 0: |
2030 | 1896 | * raise ValueError('string size below zero: %d' % n) # <<<<<<<<<<<<<< | 1896 | * raise ValueError('string size below zero: %d' % n) # <<<<<<<<<<<<<< |
2031 | @@ -1917,7 +1917,7 @@ | |||
2032 | 1917 | } | 1917 | } |
2033 | 1918 | __pyx_L7:; | 1918 | __pyx_L7:; |
2034 | 1919 | 1919 | ||
2036 | 1920 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":175 | 1920 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":175 |
2037 | 1921 | * raise ValueError('string size below zero: %d' % n) | 1921 | * raise ValueError('string size below zero: %d' % n) |
2038 | 1922 | * | 1922 | * |
2039 | 1923 | * result = PyString_FromStringAndSize(self.tail, n) # <<<<<<<<<<<<<< | 1923 | * result = PyString_FromStringAndSize(self.tail, n) # <<<<<<<<<<<<<< |
2040 | @@ -1930,7 +1930,7 @@ | |||
2041 | 1930 | __pyx_v_result = __pyx_t_4; | 1930 | __pyx_v_result = __pyx_t_4; |
2042 | 1931 | __pyx_t_4 = 0; | 1931 | __pyx_t_4 = 0; |
2043 | 1932 | 1932 | ||
2045 | 1933 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":176 | 1933 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":176 |
2046 | 1934 | * | 1934 | * |
2047 | 1935 | * result = PyString_FromStringAndSize(self.tail, n) | 1935 | * result = PyString_FromStringAndSize(self.tail, n) |
2048 | 1936 | * D_UPDATE_TAIL(self, n) # <<<<<<<<<<<<<< | 1936 | * D_UPDATE_TAIL(self, n) # <<<<<<<<<<<<<< |
2049 | @@ -1939,7 +1939,7 @@ | |||
2050 | 1939 | */ | 1939 | */ |
2051 | 1940 | D_UPDATE_TAIL(__pyx_v_self, __pyx_v_n); | 1940 | D_UPDATE_TAIL(__pyx_v_self, __pyx_v_n); |
2052 | 1941 | 1941 | ||
2054 | 1942 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":177 | 1942 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":177 |
2055 | 1943 | * result = PyString_FromStringAndSize(self.tail, n) | 1943 | * result = PyString_FromStringAndSize(self.tail, n) |
2056 | 1944 | * D_UPDATE_TAIL(self, n) | 1944 | * D_UPDATE_TAIL(self, n) |
2057 | 1945 | * return result # <<<<<<<<<<<<<< | 1945 | * return result # <<<<<<<<<<<<<< |
2058 | @@ -1965,7 +1965,7 @@ | |||
2059 | 1965 | return __pyx_r; | 1965 | return __pyx_r; |
2060 | 1966 | } | 1966 | } |
2061 | 1967 | 1967 | ||
2063 | 1968 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":179 | 1968 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":179 |
2064 | 1969 | * return result | 1969 | * return result |
2065 | 1970 | * | 1970 | * |
2066 | 1971 | * cdef object _decode_list(self): # <<<<<<<<<<<<<< | 1971 | * cdef object _decode_list(self): # <<<<<<<<<<<<<< |
2067 | @@ -1983,7 +1983,7 @@ | |||
2068 | 1983 | __Pyx_RefNannySetupContext("_decode_list"); | 1983 | __Pyx_RefNannySetupContext("_decode_list"); |
2069 | 1984 | __pyx_v_result = ((PyObject *)Py_None); __Pyx_INCREF(Py_None); | 1984 | __pyx_v_result = ((PyObject *)Py_None); __Pyx_INCREF(Py_None); |
2070 | 1985 | 1985 | ||
2072 | 1986 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":180 | 1986 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":180 |
2073 | 1987 | * | 1987 | * |
2074 | 1988 | * cdef object _decode_list(self): | 1988 | * cdef object _decode_list(self): |
2075 | 1989 | * result = [] # <<<<<<<<<<<<<< | 1989 | * result = [] # <<<<<<<<<<<<<< |
2076 | @@ -1996,7 +1996,7 @@ | |||
2077 | 1996 | __pyx_v_result = __pyx_t_1; | 1996 | __pyx_v_result = __pyx_t_1; |
2078 | 1997 | __pyx_t_1 = 0; | 1997 | __pyx_t_1 = 0; |
2079 | 1998 | 1998 | ||
2081 | 1999 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":182 | 1999 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":182 |
2082 | 2000 | * result = [] | 2000 | * result = [] |
2083 | 2001 | * | 2001 | * |
2084 | 2002 | * while self.size > 0: # <<<<<<<<<<<<<< | 2002 | * while self.size > 0: # <<<<<<<<<<<<<< |
2085 | @@ -2007,7 +2007,7 @@ | |||
2086 | 2007 | __pyx_t_2 = (__pyx_v_self->size > 0); | 2007 | __pyx_t_2 = (__pyx_v_self->size > 0); |
2087 | 2008 | if (!__pyx_t_2) break; | 2008 | if (!__pyx_t_2) break; |
2088 | 2009 | 2009 | ||
2090 | 2010 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":183 | 2010 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":183 |
2091 | 2011 | * | 2011 | * |
2092 | 2012 | * while self.size > 0: | 2012 | * while self.size > 0: |
2093 | 2013 | * if self.tail[0] == c'e': # <<<<<<<<<<<<<< | 2013 | * if self.tail[0] == c'e': # <<<<<<<<<<<<<< |
2094 | @@ -2017,7 +2017,7 @@ | |||
2095 | 2017 | __pyx_t_2 = ((__pyx_v_self->tail[0]) == 'e'); | 2017 | __pyx_t_2 = ((__pyx_v_self->tail[0]) == 'e'); |
2096 | 2018 | if (__pyx_t_2) { | 2018 | if (__pyx_t_2) { |
2097 | 2019 | 2019 | ||
2099 | 2020 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":184 | 2020 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":184 |
2100 | 2021 | * while self.size > 0: | 2021 | * while self.size > 0: |
2101 | 2022 | * if self.tail[0] == c'e': | 2022 | * if self.tail[0] == c'e': |
2102 | 2023 | * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< | 2023 | * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< |
2103 | @@ -2026,7 +2026,7 @@ | |||
2104 | 2026 | */ | 2026 | */ |
2105 | 2027 | D_UPDATE_TAIL(__pyx_v_self, 1); | 2027 | D_UPDATE_TAIL(__pyx_v_self, 1); |
2106 | 2028 | 2028 | ||
2108 | 2029 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":185 | 2029 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":185 |
2109 | 2030 | * if self.tail[0] == c'e': | 2030 | * if self.tail[0] == c'e': |
2110 | 2031 | * D_UPDATE_TAIL(self, 1) | 2031 | * D_UPDATE_TAIL(self, 1) |
2111 | 2032 | * if self._yield_tuples: # <<<<<<<<<<<<<< | 2032 | * if self._yield_tuples: # <<<<<<<<<<<<<< |
2112 | @@ -2035,7 +2035,7 @@ | |||
2113 | 2035 | */ | 2035 | */ |
2114 | 2036 | if (__pyx_v_self->_yield_tuples) { | 2036 | if (__pyx_v_self->_yield_tuples) { |
2115 | 2037 | 2037 | ||
2117 | 2038 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":186 | 2038 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":186 |
2118 | 2039 | * D_UPDATE_TAIL(self, 1) | 2039 | * D_UPDATE_TAIL(self, 1) |
2119 | 2040 | * if self._yield_tuples: | 2040 | * if self._yield_tuples: |
2120 | 2041 | * return tuple(result) # <<<<<<<<<<<<<< | 2041 | * return tuple(result) # <<<<<<<<<<<<<< |
2121 | @@ -2055,7 +2055,7 @@ | |||
2122 | 2055 | } | 2055 | } |
2123 | 2056 | /*else*/ { | 2056 | /*else*/ { |
2124 | 2057 | 2057 | ||
2126 | 2058 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":188 | 2058 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":188 |
2127 | 2059 | * return tuple(result) | 2059 | * return tuple(result) |
2128 | 2060 | * else: | 2060 | * else: |
2129 | 2061 | * return result # <<<<<<<<<<<<<< | 2061 | * return result # <<<<<<<<<<<<<< |
2130 | @@ -2072,7 +2072,7 @@ | |||
2131 | 2072 | } | 2072 | } |
2132 | 2073 | /*else*/ { | 2073 | /*else*/ { |
2133 | 2074 | 2074 | ||
2135 | 2075 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":193 | 2075 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":193 |
2136 | 2076 | * # string, since we know that won't be creating recursion | 2076 | * # string, since we know that won't be creating recursion |
2137 | 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': |
2138 | 2078 | * PyList_Append(result, self._decode_object()) # <<<<<<<<<<<<<< | 2078 | * PyList_Append(result, self._decode_object()) # <<<<<<<<<<<<<< |
2139 | @@ -2087,7 +2087,7 @@ | |||
2140 | 2087 | __pyx_L5:; | 2087 | __pyx_L5:; |
2141 | 2088 | } | 2088 | } |
2142 | 2089 | 2089 | ||
2144 | 2090 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":195 | 2090 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":195 |
2145 | 2091 | * PyList_Append(result, self._decode_object()) | 2091 | * PyList_Append(result, self._decode_object()) |
2146 | 2092 | * | 2092 | * |
2147 | 2093 | * raise ValueError('malformed list') # <<<<<<<<<<<<<< | 2093 | * raise ValueError('malformed list') # <<<<<<<<<<<<<< |
2148 | @@ -2120,7 +2120,7 @@ | |||
2149 | 2120 | return __pyx_r; | 2120 | return __pyx_r; |
2150 | 2121 | } | 2121 | } |
2151 | 2122 | 2122 | ||
2153 | 2123 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":197 | 2123 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":197 |
2154 | 2124 | * raise ValueError('malformed list') | 2124 | * raise ValueError('malformed list') |
2155 | 2125 | * | 2125 | * |
2156 | 2126 | * cdef object _decode_dict(self): # <<<<<<<<<<<<<< | 2126 | * cdef object _decode_dict(self): # <<<<<<<<<<<<<< |
2157 | @@ -2146,7 +2146,7 @@ | |||
2158 | 2146 | __pyx_v_key = Py_None; __Pyx_INCREF(Py_None); | 2146 | __pyx_v_key = Py_None; __Pyx_INCREF(Py_None); |
2159 | 2147 | __pyx_v_value = Py_None; __Pyx_INCREF(Py_None); | 2147 | __pyx_v_value = Py_None; __Pyx_INCREF(Py_None); |
2160 | 2148 | 2148 | ||
2162 | 2149 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":200 | 2149 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":200 |
2163 | 2150 | * cdef char ch | 2150 | * cdef char ch |
2164 | 2151 | * | 2151 | * |
2165 | 2152 | * result = {} # <<<<<<<<<<<<<< | 2152 | * result = {} # <<<<<<<<<<<<<< |
2166 | @@ -2159,7 +2159,7 @@ | |||
2167 | 2159 | __pyx_v_result = __pyx_t_1; | 2159 | __pyx_v_result = __pyx_t_1; |
2168 | 2160 | __pyx_t_1 = 0; | 2160 | __pyx_t_1 = 0; |
2169 | 2161 | 2161 | ||
2171 | 2162 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":201 | 2162 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":201 |
2172 | 2163 | * | 2163 | * |
2173 | 2164 | * result = {} | 2164 | * result = {} |
2174 | 2165 | * lastkey = None # <<<<<<<<<<<<<< | 2165 | * lastkey = None # <<<<<<<<<<<<<< |
2175 | @@ -2170,7 +2170,7 @@ | |||
2176 | 2170 | __Pyx_DECREF(__pyx_v_lastkey); | 2170 | __Pyx_DECREF(__pyx_v_lastkey); |
2177 | 2171 | __pyx_v_lastkey = Py_None; | 2171 | __pyx_v_lastkey = Py_None; |
2178 | 2172 | 2172 | ||
2180 | 2173 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":203 | 2173 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":203 |
2181 | 2174 | * lastkey = None | 2174 | * lastkey = None |
2182 | 2175 | * | 2175 | * |
2183 | 2176 | * while self.size > 0: # <<<<<<<<<<<<<< | 2176 | * while self.size > 0: # <<<<<<<<<<<<<< |
2184 | @@ -2181,7 +2181,7 @@ | |||
2185 | 2181 | __pyx_t_2 = (__pyx_v_self->size > 0); | 2181 | __pyx_t_2 = (__pyx_v_self->size > 0); |
2186 | 2182 | if (!__pyx_t_2) break; | 2182 | if (!__pyx_t_2) break; |
2187 | 2183 | 2183 | ||
2189 | 2184 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":204 | 2184 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":204 |
2190 | 2185 | * | 2185 | * |
2191 | 2186 | * while self.size > 0: | 2186 | * while self.size > 0: |
2192 | 2187 | * ch = self.tail[0] # <<<<<<<<<<<<<< | 2187 | * ch = self.tail[0] # <<<<<<<<<<<<<< |
2193 | @@ -2190,7 +2190,7 @@ | |||
2194 | 2190 | */ | 2190 | */ |
2195 | 2191 | __pyx_v_ch = (__pyx_v_self->tail[0]); | 2191 | __pyx_v_ch = (__pyx_v_self->tail[0]); |
2196 | 2192 | 2192 | ||
2198 | 2193 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":205 | 2193 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":205 |
2199 | 2194 | * while self.size > 0: | 2194 | * while self.size > 0: |
2200 | 2195 | * ch = self.tail[0] | 2195 | * ch = self.tail[0] |
2201 | 2196 | * if ch == c'e': # <<<<<<<<<<<<<< | 2196 | * if ch == c'e': # <<<<<<<<<<<<<< |
2202 | @@ -2200,7 +2200,7 @@ | |||
2203 | 2200 | __pyx_t_2 = (__pyx_v_ch == 'e'); | 2200 | __pyx_t_2 = (__pyx_v_ch == 'e'); |
2204 | 2201 | if (__pyx_t_2) { | 2201 | if (__pyx_t_2) { |
2205 | 2202 | 2202 | ||
2207 | 2203 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":206 | 2203 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":206 |
2208 | 2204 | * ch = self.tail[0] | 2204 | * ch = self.tail[0] |
2209 | 2205 | * if ch == c'e': | 2205 | * if ch == c'e': |
2210 | 2206 | * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< | 2206 | * D_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< |
2211 | @@ -2209,7 +2209,7 @@ | |||
2212 | 2209 | */ | 2209 | */ |
2213 | 2210 | D_UPDATE_TAIL(__pyx_v_self, 1); | 2210 | D_UPDATE_TAIL(__pyx_v_self, 1); |
2214 | 2211 | 2211 | ||
2216 | 2212 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":207 | 2212 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":207 |
2217 | 2213 | * if ch == c'e': | 2213 | * if ch == c'e': |
2218 | 2214 | * D_UPDATE_TAIL(self, 1) | 2214 | * D_UPDATE_TAIL(self, 1) |
2219 | 2215 | * return result # <<<<<<<<<<<<<< | 2215 | * return result # <<<<<<<<<<<<<< |
2220 | @@ -2224,7 +2224,7 @@ | |||
2221 | 2224 | } | 2224 | } |
2222 | 2225 | /*else*/ { | 2225 | /*else*/ { |
2223 | 2226 | 2226 | ||
2225 | 2227 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":210 | 2227 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":210 |
2226 | 2228 | * else: | 2228 | * else: |
2227 | 2229 | * # keys should be strings only | 2229 | * # keys should be strings only |
2228 | 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': # <<<<<<<<<<<<<< |
2229 | @@ -2240,7 +2240,7 @@ | |||
2230 | 2240 | } | 2240 | } |
2231 | 2241 | if (__pyx_t_4) { | 2241 | if (__pyx_t_4) { |
2232 | 2242 | 2242 | ||
2234 | 2243 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":211 | 2243 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":211 |
2235 | 2244 | * # keys should be strings only | 2244 | * # keys should be strings only |
2236 | 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': |
2237 | 2246 | * raise ValueError('key was not a simple string.') # <<<<<<<<<<<<<< | 2246 | * raise ValueError('key was not a simple string.') # <<<<<<<<<<<<<< |
2238 | @@ -2262,7 +2262,7 @@ | |||
2239 | 2262 | } | 2262 | } |
2240 | 2263 | __pyx_L6:; | 2263 | __pyx_L6:; |
2241 | 2264 | 2264 | ||
2243 | 2265 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":212 | 2265 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":212 |
2244 | 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': |
2245 | 2267 | * raise ValueError('key was not a simple string.') | 2267 | * raise ValueError('key was not a simple string.') |
2246 | 2268 | * key = self._decode_string() # <<<<<<<<<<<<<< | 2268 | * key = self._decode_string() # <<<<<<<<<<<<<< |
2247 | @@ -2275,7 +2275,7 @@ | |||
2248 | 2275 | __pyx_v_key = __pyx_t_5; | 2275 | __pyx_v_key = __pyx_t_5; |
2249 | 2276 | __pyx_t_5 = 0; | 2276 | __pyx_t_5 = 0; |
2250 | 2277 | 2277 | ||
2252 | 2278 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":213 | 2278 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":213 |
2253 | 2279 | * raise ValueError('key was not a simple string.') | 2279 | * raise ValueError('key was not a simple string.') |
2254 | 2280 | * key = self._decode_string() | 2280 | * key = self._decode_string() |
2255 | 2281 | * if lastkey >= key: # <<<<<<<<<<<<<< | 2281 | * if lastkey >= key: # <<<<<<<<<<<<<< |
2256 | @@ -2288,7 +2288,7 @@ | |||
2257 | 2288 | __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; | 2288 | __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; |
2258 | 2289 | if (__pyx_t_4) { | 2289 | if (__pyx_t_4) { |
2259 | 2290 | 2290 | ||
2261 | 2291 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":214 | 2291 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":214 |
2262 | 2292 | * key = self._decode_string() | 2292 | * key = self._decode_string() |
2263 | 2293 | * if lastkey >= key: | 2293 | * if lastkey >= key: |
2264 | 2294 | * raise ValueError('dict keys disordered') # <<<<<<<<<<<<<< | 2294 | * raise ValueError('dict keys disordered') # <<<<<<<<<<<<<< |
2265 | @@ -2310,7 +2310,7 @@ | |||
2266 | 2310 | } | 2310 | } |
2267 | 2311 | /*else*/ { | 2311 | /*else*/ { |
2268 | 2312 | 2312 | ||
2270 | 2313 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":216 | 2313 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":216 |
2271 | 2314 | * raise ValueError('dict keys disordered') | 2314 | * raise ValueError('dict keys disordered') |
2272 | 2315 | * else: | 2315 | * else: |
2273 | 2316 | * lastkey = key # <<<<<<<<<<<<<< | 2316 | * lastkey = key # <<<<<<<<<<<<<< |
2274 | @@ -2323,7 +2323,7 @@ | |||
2275 | 2323 | } | 2323 | } |
2276 | 2324 | __pyx_L7:; | 2324 | __pyx_L7:; |
2277 | 2325 | 2325 | ||
2279 | 2326 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":217 | 2326 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":217 |
2280 | 2327 | * else: | 2327 | * else: |
2281 | 2328 | * lastkey = key | 2328 | * lastkey = key |
2282 | 2329 | * value = self._decode_object() # <<<<<<<<<<<<<< | 2329 | * value = self._decode_object() # <<<<<<<<<<<<<< |
2283 | @@ -2336,7 +2336,7 @@ | |||
2284 | 2336 | __pyx_v_value = __pyx_t_1; | 2336 | __pyx_v_value = __pyx_t_1; |
2285 | 2337 | __pyx_t_1 = 0; | 2337 | __pyx_t_1 = 0; |
2286 | 2338 | 2338 | ||
2288 | 2339 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":218 | 2339 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":218 |
2289 | 2340 | * lastkey = key | 2340 | * lastkey = key |
2290 | 2341 | * value = self._decode_object() | 2341 | * value = self._decode_object() |
2291 | 2342 | * result[key] = value # <<<<<<<<<<<<<< | 2342 | * result[key] = value # <<<<<<<<<<<<<< |
2292 | @@ -2348,7 +2348,7 @@ | |||
2293 | 2348 | __pyx_L5:; | 2348 | __pyx_L5:; |
2294 | 2349 | } | 2349 | } |
2295 | 2350 | 2350 | ||
2297 | 2351 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":220 | 2351 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":220 |
2298 | 2352 | * result[key] = value | 2352 | * result[key] = value |
2299 | 2353 | * | 2353 | * |
2300 | 2354 | * raise ValueError('malformed dict') # <<<<<<<<<<<<<< | 2354 | * raise ValueError('malformed dict') # <<<<<<<<<<<<<< |
2301 | @@ -2384,7 +2384,7 @@ | |||
2302 | 2384 | return __pyx_r; | 2384 | return __pyx_r; |
2303 | 2385 | } | 2385 | } |
2304 | 2386 | 2386 | ||
2306 | 2387 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":223 | 2387 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":223 |
2307 | 2388 | * | 2388 | * |
2308 | 2389 | * | 2389 | * |
2309 | 2390 | * def bdecode(object s): # <<<<<<<<<<<<<< | 2390 | * def bdecode(object s): # <<<<<<<<<<<<<< |
2310 | @@ -2401,7 +2401,7 @@ | |||
2311 | 2401 | __Pyx_RefNannySetupContext("bdecode"); | 2401 | __Pyx_RefNannySetupContext("bdecode"); |
2312 | 2402 | __pyx_self = __pyx_self; | 2402 | __pyx_self = __pyx_self; |
2313 | 2403 | 2403 | ||
2315 | 2404 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":225 | 2404 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":225 |
2316 | 2405 | * def bdecode(object s): | 2405 | * def bdecode(object s): |
2317 | 2406 | * """Decode string x to Python object""" | 2406 | * """Decode string x to Python object""" |
2318 | 2407 | * return Decoder(s).decode() # <<<<<<<<<<<<<< | 2407 | * return Decoder(s).decode() # <<<<<<<<<<<<<< |
2319 | @@ -2440,7 +2440,7 @@ | |||
2320 | 2440 | return __pyx_r; | 2440 | return __pyx_r; |
2321 | 2441 | } | 2441 | } |
2322 | 2442 | 2442 | ||
2324 | 2443 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":228 | 2443 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":228 |
2325 | 2444 | * | 2444 | * |
2326 | 2445 | * | 2445 | * |
2327 | 2446 | * def bdecode_as_tuple(object s): # <<<<<<<<<<<<<< | 2446 | * def bdecode_as_tuple(object s): # <<<<<<<<<<<<<< |
2328 | @@ -2457,7 +2457,7 @@ | |||
2329 | 2457 | __Pyx_RefNannySetupContext("bdecode_as_tuple"); | 2457 | __Pyx_RefNannySetupContext("bdecode_as_tuple"); |
2330 | 2458 | __pyx_self = __pyx_self; | 2458 | __pyx_self = __pyx_self; |
2331 | 2459 | 2459 | ||
2333 | 2460 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":230 | 2460 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":230 |
2334 | 2461 | * def bdecode_as_tuple(object s): | 2461 | * def bdecode_as_tuple(object s): |
2335 | 2462 | * """Decode string x to Python object, using tuples rather than lists.""" | 2462 | * """Decode string x to Python object, using tuples rather than lists.""" |
2336 | 2463 | * return Decoder(s, True).decode() # <<<<<<<<<<<<<< | 2463 | * return Decoder(s, True).decode() # <<<<<<<<<<<<<< |
2337 | @@ -2501,7 +2501,7 @@ | |||
2338 | 2501 | return __pyx_r; | 2501 | return __pyx_r; |
2339 | 2502 | } | 2502 | } |
2340 | 2503 | 2503 | ||
2342 | 2504 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":236 | 2504 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":236 |
2343 | 2505 | * __slots__ = ['bencoded'] | 2505 | * __slots__ = ['bencoded'] |
2344 | 2506 | * | 2506 | * |
2345 | 2507 | * def __init__(self, s): # <<<<<<<<<<<<<< | 2507 | * def __init__(self, s): # <<<<<<<<<<<<<< |
2346 | @@ -2559,7 +2559,7 @@ | |||
2347 | 2559 | return NULL; | 2559 | return NULL; |
2348 | 2560 | __pyx_L4_argument_unpacking_done:; | 2560 | __pyx_L4_argument_unpacking_done:; |
2349 | 2561 | 2561 | ||
2351 | 2562 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":237 | 2562 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":237 |
2352 | 2563 | * | 2563 | * |
2353 | 2564 | * def __init__(self, s): | 2564 | * def __init__(self, s): |
2354 | 2565 | * self.bencoded = s # <<<<<<<<<<<<<< | 2565 | * self.bencoded = s # <<<<<<<<<<<<<< |
2355 | @@ -2579,7 +2579,7 @@ | |||
2356 | 2579 | return __pyx_r; | 2579 | return __pyx_r; |
2357 | 2580 | } | 2580 | } |
2358 | 2581 | 2581 | ||
2360 | 2582 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":248 | 2582 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":248 |
2361 | 2583 | * """Bencode encoder""" | 2583 | * """Bencode encoder""" |
2362 | 2584 | * | 2584 | * |
2363 | 2585 | * cdef readonly char *tail # <<<<<<<<<<<<<< | 2585 | * cdef readonly char *tail # <<<<<<<<<<<<<< |
2364 | @@ -2611,7 +2611,7 @@ | |||
2365 | 2611 | return __pyx_r; | 2611 | return __pyx_r; |
2366 | 2612 | } | 2612 | } |
2367 | 2613 | 2613 | ||
2369 | 2614 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":249 | 2614 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":249 |
2370 | 2615 | * | 2615 | * |
2371 | 2616 | * cdef readonly char *tail | 2616 | * cdef readonly char *tail |
2372 | 2617 | * cdef readonly int size # <<<<<<<<<<<<<< | 2617 | * cdef readonly int size # <<<<<<<<<<<<<< |
2373 | @@ -2643,7 +2643,7 @@ | |||
2374 | 2643 | return __pyx_r; | 2643 | return __pyx_r; |
2375 | 2644 | } | 2644 | } |
2376 | 2645 | 2645 | ||
2378 | 2646 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":250 | 2646 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":250 |
2379 | 2647 | * cdef readonly char *tail | 2647 | * cdef readonly char *tail |
2380 | 2648 | * cdef readonly int size | 2648 | * cdef readonly int size |
2381 | 2649 | * cdef readonly char *buffer # <<<<<<<<<<<<<< | 2649 | * cdef readonly char *buffer # <<<<<<<<<<<<<< |
2382 | @@ -2675,7 +2675,7 @@ | |||
2383 | 2675 | return __pyx_r; | 2675 | return __pyx_r; |
2384 | 2676 | } | 2676 | } |
2385 | 2677 | 2677 | ||
2387 | 2678 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":251 | 2678 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":251 |
2388 | 2679 | * cdef readonly int size | 2679 | * cdef readonly int size |
2389 | 2680 | * cdef readonly char *buffer | 2680 | * cdef readonly char *buffer |
2390 | 2681 | * cdef readonly int maxsize # <<<<<<<<<<<<<< | 2681 | * cdef readonly int maxsize # <<<<<<<<<<<<<< |
2391 | @@ -2707,7 +2707,7 @@ | |||
2392 | 2707 | return __pyx_r; | 2707 | return __pyx_r; |
2393 | 2708 | } | 2708 | } |
2394 | 2709 | 2709 | ||
2396 | 2710 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":253 | 2710 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":253 |
2397 | 2711 | * cdef readonly int maxsize | 2711 | * cdef readonly int maxsize |
2398 | 2712 | * | 2712 | * |
2399 | 2713 | * def __init__(self, int maxsize=INITSIZE): # <<<<<<<<<<<<<< | 2713 | * def __init__(self, int maxsize=INITSIZE): # <<<<<<<<<<<<<< |
2400 | @@ -2767,7 +2767,7 @@ | |||
2401 | 2767 | return -1; | 2767 | return -1; |
2402 | 2768 | __pyx_L4_argument_unpacking_done:; | 2768 | __pyx_L4_argument_unpacking_done:; |
2403 | 2769 | 2769 | ||
2405 | 2770 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":259 | 2770 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":259 |
2406 | 2771 | * cdef char *p | 2771 | * cdef char *p |
2407 | 2772 | * | 2772 | * |
2408 | 2773 | * self.maxsize = 0 # <<<<<<<<<<<<<< | 2773 | * self.maxsize = 0 # <<<<<<<<<<<<<< |
2409 | @@ -2776,7 +2776,7 @@ | |||
2410 | 2776 | */ | 2776 | */ |
2411 | 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; |
2412 | 2778 | 2778 | ||
2414 | 2779 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":260 | 2779 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":260 |
2415 | 2780 | * | 2780 | * |
2416 | 2781 | * self.maxsize = 0 | 2781 | * self.maxsize = 0 |
2417 | 2782 | * self.size = 0 # <<<<<<<<<<<<<< | 2782 | * self.size = 0 # <<<<<<<<<<<<<< |
2418 | @@ -2785,7 +2785,7 @@ | |||
2419 | 2785 | */ | 2785 | */ |
2420 | 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; |
2421 | 2787 | 2787 | ||
2423 | 2788 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":261 | 2788 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":261 |
2424 | 2789 | * self.maxsize = 0 | 2789 | * self.maxsize = 0 |
2425 | 2790 | * self.size = 0 | 2790 | * self.size = 0 |
2426 | 2791 | * self.tail = NULL # <<<<<<<<<<<<<< | 2791 | * self.tail = NULL # <<<<<<<<<<<<<< |
2427 | @@ -2794,7 +2794,7 @@ | |||
2428 | 2794 | */ | 2794 | */ |
2429 | 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; |
2430 | 2796 | 2796 | ||
2432 | 2797 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":263 | 2797 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":263 |
2433 | 2798 | * self.tail = NULL | 2798 | * self.tail = NULL |
2434 | 2799 | * | 2799 | * |
2435 | 2800 | * p = <char*>malloc(maxsize) # <<<<<<<<<<<<<< | 2800 | * p = <char*>malloc(maxsize) # <<<<<<<<<<<<<< |
2436 | @@ -2803,7 +2803,7 @@ | |||
2437 | 2803 | */ | 2803 | */ |
2438 | 2804 | __pyx_v_p = ((char *)malloc(__pyx_v_maxsize)); | 2804 | __pyx_v_p = ((char *)malloc(__pyx_v_maxsize)); |
2439 | 2805 | 2805 | ||
2441 | 2806 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":264 | 2806 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":264 |
2442 | 2807 | * | 2807 | * |
2443 | 2808 | * p = <char*>malloc(maxsize) | 2808 | * p = <char*>malloc(maxsize) |
2444 | 2809 | * if p == NULL: # <<<<<<<<<<<<<< | 2809 | * if p == NULL: # <<<<<<<<<<<<<< |
2445 | @@ -2813,7 +2813,7 @@ | |||
2446 | 2813 | __pyx_t_1 = (__pyx_v_p == NULL); | 2813 | __pyx_t_1 = (__pyx_v_p == NULL); |
2447 | 2814 | if (__pyx_t_1) { | 2814 | if (__pyx_t_1) { |
2448 | 2815 | 2815 | ||
2450 | 2816 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":265 | 2816 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":265 |
2451 | 2817 | * p = <char*>malloc(maxsize) | 2817 | * p = <char*>malloc(maxsize) |
2452 | 2818 | * if p == NULL: | 2818 | * if p == NULL: |
2453 | 2819 | * raise MemoryError('Not enough memory to allocate buffer ' # <<<<<<<<<<<<<< | 2819 | * raise MemoryError('Not enough memory to allocate buffer ' # <<<<<<<<<<<<<< |
2454 | @@ -2835,7 +2835,7 @@ | |||
2455 | 2835 | } | 2835 | } |
2456 | 2836 | __pyx_L6:; | 2836 | __pyx_L6:; |
2457 | 2837 | 2837 | ||
2459 | 2838 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":267 | 2838 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":267 |
2460 | 2839 | * raise MemoryError('Not enough memory to allocate buffer ' | 2839 | * raise MemoryError('Not enough memory to allocate buffer ' |
2461 | 2840 | * 'for encoder') | 2840 | * 'for encoder') |
2462 | 2841 | * self.buffer = p # <<<<<<<<<<<<<< | 2841 | * self.buffer = p # <<<<<<<<<<<<<< |
2463 | @@ -2844,7 +2844,7 @@ | |||
2464 | 2844 | */ | 2844 | */ |
2465 | 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; |
2466 | 2846 | 2846 | ||
2468 | 2847 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":268 | 2847 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":268 |
2469 | 2848 | * 'for encoder') | 2848 | * 'for encoder') |
2470 | 2849 | * self.buffer = p | 2849 | * self.buffer = p |
2471 | 2850 | * self.maxsize = maxsize # <<<<<<<<<<<<<< | 2850 | * self.maxsize = maxsize # <<<<<<<<<<<<<< |
2472 | @@ -2853,7 +2853,7 @@ | |||
2473 | 2853 | */ | 2853 | */ |
2474 | 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; |
2475 | 2855 | 2855 | ||
2477 | 2856 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":269 | 2856 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":269 |
2478 | 2857 | * self.buffer = p | 2857 | * self.buffer = p |
2479 | 2858 | * self.maxsize = maxsize | 2858 | * self.maxsize = maxsize |
2480 | 2859 | * self.tail = p # <<<<<<<<<<<<<< | 2859 | * self.tail = p # <<<<<<<<<<<<<< |
2481 | @@ -2874,7 +2874,7 @@ | |||
2482 | 2874 | return __pyx_r; | 2874 | return __pyx_r; |
2483 | 2875 | } | 2875 | } |
2484 | 2876 | 2876 | ||
2486 | 2877 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":271 | 2877 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":271 |
2487 | 2878 | * self.tail = p | 2878 | * self.tail = p |
2488 | 2879 | * | 2879 | * |
2489 | 2880 | * def __dealloc__(self): # <<<<<<<<<<<<<< | 2880 | * def __dealloc__(self): # <<<<<<<<<<<<<< |
2490 | @@ -2886,7 +2886,7 @@ | |||
2491 | 2886 | static void __pyx_pf_6bzrlib_12_bencode_pyx_7Encoder___dealloc__(PyObject *__pyx_v_self) { | 2886 | static void __pyx_pf_6bzrlib_12_bencode_pyx_7Encoder___dealloc__(PyObject *__pyx_v_self) { |
2492 | 2887 | __Pyx_RefNannySetupContext("__dealloc__"); | 2887 | __Pyx_RefNannySetupContext("__dealloc__"); |
2493 | 2888 | 2888 | ||
2495 | 2889 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":272 | 2889 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":272 |
2496 | 2890 | * | 2890 | * |
2497 | 2891 | * def __dealloc__(self): | 2891 | * def __dealloc__(self): |
2498 | 2892 | * free(self.buffer) # <<<<<<<<<<<<<< | 2892 | * free(self.buffer) # <<<<<<<<<<<<<< |
2499 | @@ -2895,7 +2895,7 @@ | |||
2500 | 2895 | */ | 2895 | */ |
2501 | 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); |
2502 | 2897 | 2897 | ||
2504 | 2898 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":273 | 2898 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":273 |
2505 | 2899 | * def __dealloc__(self): | 2899 | * def __dealloc__(self): |
2506 | 2900 | * free(self.buffer) | 2900 | * free(self.buffer) |
2507 | 2901 | * self.buffer = NULL # <<<<<<<<<<<<<< | 2901 | * self.buffer = NULL # <<<<<<<<<<<<<< |
2508 | @@ -2904,7 +2904,7 @@ | |||
2509 | 2904 | */ | 2904 | */ |
2510 | 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; |
2511 | 2906 | 2906 | ||
2513 | 2907 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":274 | 2907 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":274 |
2514 | 2908 | * free(self.buffer) | 2908 | * free(self.buffer) |
2515 | 2909 | * self.buffer = NULL | 2909 | * self.buffer = NULL |
2516 | 2910 | * self.maxsize = 0 # <<<<<<<<<<<<<< | 2910 | * self.maxsize = 0 # <<<<<<<<<<<<<< |
2517 | @@ -2916,7 +2916,7 @@ | |||
2518 | 2916 | __Pyx_RefNannyFinishContext(); | 2916 | __Pyx_RefNannyFinishContext(); |
2519 | 2917 | } | 2917 | } |
2520 | 2918 | 2918 | ||
2522 | 2919 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":276 | 2919 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":276 |
2523 | 2920 | * self.maxsize = 0 | 2920 | * self.maxsize = 0 |
2524 | 2921 | * | 2921 | * |
2525 | 2922 | * def __str__(self): # <<<<<<<<<<<<<< | 2922 | * def __str__(self): # <<<<<<<<<<<<<< |
2526 | @@ -2933,7 +2933,7 @@ | |||
2527 | 2933 | PyObject *__pyx_t_4 = NULL; | 2933 | PyObject *__pyx_t_4 = NULL; |
2528 | 2934 | __Pyx_RefNannySetupContext("__str__"); | 2934 | __Pyx_RefNannySetupContext("__str__"); |
2529 | 2935 | 2935 | ||
2531 | 2936 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":277 | 2936 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":277 |
2532 | 2937 | * | 2937 | * |
2533 | 2938 | * def __str__(self): | 2938 | * def __str__(self): |
2534 | 2939 | * if self.buffer != NULL and self.size != 0: # <<<<<<<<<<<<<< | 2939 | * if self.buffer != NULL and self.size != 0: # <<<<<<<<<<<<<< |
2535 | @@ -2949,7 +2949,7 @@ | |||
2536 | 2949 | } | 2949 | } |
2537 | 2950 | if (__pyx_t_3) { | 2950 | if (__pyx_t_3) { |
2538 | 2951 | 2951 | ||
2540 | 2952 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":278 | 2952 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":278 |
2541 | 2953 | * def __str__(self): | 2953 | * def __str__(self): |
2542 | 2954 | * if self.buffer != NULL and self.size != 0: | 2954 | * if self.buffer != NULL and self.size != 0: |
2543 | 2955 | * return PyString_FromStringAndSize(self.buffer, self.size) # <<<<<<<<<<<<<< | 2955 | * return PyString_FromStringAndSize(self.buffer, self.size) # <<<<<<<<<<<<<< |
2544 | @@ -2966,7 +2966,7 @@ | |||
2545 | 2966 | } | 2966 | } |
2546 | 2967 | /*else*/ { | 2967 | /*else*/ { |
2547 | 2968 | 2968 | ||
2549 | 2969 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":280 | 2969 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":280 |
2550 | 2970 | * return PyString_FromStringAndSize(self.buffer, self.size) | 2970 | * return PyString_FromStringAndSize(self.buffer, self.size) |
2551 | 2971 | * else: | 2971 | * else: |
2552 | 2972 | * return '' # <<<<<<<<<<<<<< | 2972 | * return '' # <<<<<<<<<<<<<< |
2553 | @@ -2992,7 +2992,7 @@ | |||
2554 | 2992 | return __pyx_r; | 2992 | return __pyx_r; |
2555 | 2993 | } | 2993 | } |
2556 | 2994 | 2994 | ||
2558 | 2995 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":282 | 2995 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":282 |
2559 | 2996 | * return '' | 2996 | * return '' |
2560 | 2997 | * | 2997 | * |
2561 | 2998 | * cdef int _ensure_buffer(self, int required) except 0: # <<<<<<<<<<<<<< | 2998 | * cdef int _ensure_buffer(self, int required) except 0: # <<<<<<<<<<<<<< |
2562 | @@ -3009,7 +3009,7 @@ | |||
2563 | 3009 | PyObject *__pyx_t_3 = NULL; | 3009 | PyObject *__pyx_t_3 = NULL; |
2564 | 3010 | __Pyx_RefNannySetupContext("_ensure_buffer"); | 3010 | __Pyx_RefNannySetupContext("_ensure_buffer"); |
2565 | 3011 | 3011 | ||
2567 | 3012 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":290 | 3012 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":290 |
2568 | 3013 | * cdef int new_size | 3013 | * cdef int new_size |
2569 | 3014 | * | 3014 | * |
2570 | 3015 | * if self.size + required < self.maxsize: # <<<<<<<<<<<<<< | 3015 | * if self.size + required < self.maxsize: # <<<<<<<<<<<<<< |
2571 | @@ -3019,7 +3019,7 @@ | |||
2572 | 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); |
2573 | 3020 | if (__pyx_t_1) { | 3020 | if (__pyx_t_1) { |
2574 | 3021 | 3021 | ||
2576 | 3022 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":291 | 3022 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":291 |
2577 | 3023 | * | 3023 | * |
2578 | 3024 | * if self.size + required < self.maxsize: | 3024 | * if self.size + required < self.maxsize: |
2579 | 3025 | * return 1 # <<<<<<<<<<<<<< | 3025 | * return 1 # <<<<<<<<<<<<<< |
2580 | @@ -3032,7 +3032,7 @@ | |||
2581 | 3032 | } | 3032 | } |
2582 | 3033 | __pyx_L3:; | 3033 | __pyx_L3:; |
2583 | 3034 | 3034 | ||
2585 | 3035 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":293 | 3035 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":293 |
2586 | 3036 | * return 1 | 3036 | * return 1 |
2587 | 3037 | * | 3037 | * |
2588 | 3038 | * new_size = self.maxsize # <<<<<<<<<<<<<< | 3038 | * new_size = self.maxsize # <<<<<<<<<<<<<< |
2589 | @@ -3041,7 +3041,7 @@ | |||
2590 | 3041 | */ | 3041 | */ |
2591 | 3042 | __pyx_v_new_size = __pyx_v_self->maxsize; | 3042 | __pyx_v_new_size = __pyx_v_self->maxsize; |
2592 | 3043 | 3043 | ||
2594 | 3044 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":294 | 3044 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":294 |
2595 | 3045 | * | 3045 | * |
2596 | 3046 | * new_size = self.maxsize | 3046 | * new_size = self.maxsize |
2597 | 3047 | * while new_size < self.size + required: # <<<<<<<<<<<<<< | 3047 | * while new_size < self.size + required: # <<<<<<<<<<<<<< |
2598 | @@ -3052,7 +3052,7 @@ | |||
2599 | 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)); |
2600 | 3053 | if (!__pyx_t_1) break; | 3053 | if (!__pyx_t_1) break; |
2601 | 3054 | 3054 | ||
2603 | 3055 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":295 | 3055 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":295 |
2604 | 3056 | * new_size = self.maxsize | 3056 | * new_size = self.maxsize |
2605 | 3057 | * while new_size < self.size + required: | 3057 | * while new_size < self.size + required: |
2606 | 3058 | * new_size = new_size * 2 # <<<<<<<<<<<<<< | 3058 | * new_size = new_size * 2 # <<<<<<<<<<<<<< |
2607 | @@ -3062,7 +3062,7 @@ | |||
2608 | 3062 | __pyx_v_new_size = (__pyx_v_new_size * 2); | 3062 | __pyx_v_new_size = (__pyx_v_new_size * 2); |
2609 | 3063 | } | 3063 | } |
2610 | 3064 | 3064 | ||
2612 | 3065 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":296 | 3065 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":296 |
2613 | 3066 | * while new_size < self.size + required: | 3066 | * while new_size < self.size + required: |
2614 | 3067 | * new_size = new_size * 2 | 3067 | * new_size = new_size * 2 |
2615 | 3068 | * new_buffer = <char*>realloc(self.buffer, <size_t>new_size) # <<<<<<<<<<<<<< | 3068 | * new_buffer = <char*>realloc(self.buffer, <size_t>new_size) # <<<<<<<<<<<<<< |
2616 | @@ -3071,7 +3071,7 @@ | |||
2617 | 3071 | */ | 3071 | */ |
2618 | 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))); |
2619 | 3073 | 3073 | ||
2621 | 3074 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":297 | 3074 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":297 |
2622 | 3075 | * new_size = new_size * 2 | 3075 | * new_size = new_size * 2 |
2623 | 3076 | * new_buffer = <char*>realloc(self.buffer, <size_t>new_size) | 3076 | * new_buffer = <char*>realloc(self.buffer, <size_t>new_size) |
2624 | 3077 | * if new_buffer == NULL: # <<<<<<<<<<<<<< | 3077 | * if new_buffer == NULL: # <<<<<<<<<<<<<< |
2625 | @@ -3081,7 +3081,7 @@ | |||
2626 | 3081 | __pyx_t_1 = (__pyx_v_new_buffer == NULL); | 3081 | __pyx_t_1 = (__pyx_v_new_buffer == NULL); |
2627 | 3082 | if (__pyx_t_1) { | 3082 | if (__pyx_t_1) { |
2628 | 3083 | 3083 | ||
2630 | 3084 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":298 | 3084 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":298 |
2631 | 3085 | * new_buffer = <char*>realloc(self.buffer, <size_t>new_size) | 3085 | * new_buffer = <char*>realloc(self.buffer, <size_t>new_size) |
2632 | 3086 | * if new_buffer == NULL: | 3086 | * if new_buffer == NULL: |
2633 | 3087 | * raise MemoryError('Cannot realloc buffer for encoder') # <<<<<<<<<<<<<< | 3087 | * raise MemoryError('Cannot realloc buffer for encoder') # <<<<<<<<<<<<<< |
2634 | @@ -3103,7 +3103,7 @@ | |||
2635 | 3103 | } | 3103 | } |
2636 | 3104 | __pyx_L6:; | 3104 | __pyx_L6:; |
2637 | 3105 | 3105 | ||
2639 | 3106 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":300 | 3106 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":300 |
2640 | 3107 | * raise MemoryError('Cannot realloc buffer for encoder') | 3107 | * raise MemoryError('Cannot realloc buffer for encoder') |
2641 | 3108 | * | 3108 | * |
2642 | 3109 | * self.buffer = new_buffer # <<<<<<<<<<<<<< | 3109 | * self.buffer = new_buffer # <<<<<<<<<<<<<< |
2643 | @@ -3112,7 +3112,7 @@ | |||
2644 | 3112 | */ | 3112 | */ |
2645 | 3113 | __pyx_v_self->buffer = __pyx_v_new_buffer; | 3113 | __pyx_v_self->buffer = __pyx_v_new_buffer; |
2646 | 3114 | 3114 | ||
2648 | 3115 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":301 | 3115 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":301 |
2649 | 3116 | * | 3116 | * |
2650 | 3117 | * self.buffer = new_buffer | 3117 | * self.buffer = new_buffer |
2651 | 3118 | * self.maxsize = new_size # <<<<<<<<<<<<<< | 3118 | * self.maxsize = new_size # <<<<<<<<<<<<<< |
2652 | @@ -3121,7 +3121,7 @@ | |||
2653 | 3121 | */ | 3121 | */ |
2654 | 3122 | __pyx_v_self->maxsize = __pyx_v_new_size; | 3122 | __pyx_v_self->maxsize = __pyx_v_new_size; |
2655 | 3123 | 3123 | ||
2657 | 3124 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":302 | 3124 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":302 |
2658 | 3125 | * self.buffer = new_buffer | 3125 | * self.buffer = new_buffer |
2659 | 3126 | * self.maxsize = new_size | 3126 | * self.maxsize = new_size |
2660 | 3127 | * self.tail = &new_buffer[self.size] # <<<<<<<<<<<<<< | 3127 | * self.tail = &new_buffer[self.size] # <<<<<<<<<<<<<< |
2661 | @@ -3130,7 +3130,7 @@ | |||
2662 | 3130 | */ | 3130 | */ |
2663 | 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])); |
2664 | 3132 | 3132 | ||
2666 | 3133 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":303 | 3133 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":303 |
2667 | 3134 | * self.maxsize = new_size | 3134 | * self.maxsize = new_size |
2668 | 3135 | * self.tail = &new_buffer[self.size] | 3135 | * self.tail = &new_buffer[self.size] |
2669 | 3136 | * return 1 # <<<<<<<<<<<<<< | 3136 | * return 1 # <<<<<<<<<<<<<< |
2670 | @@ -3152,7 +3152,7 @@ | |||
2671 | 3152 | return __pyx_r; | 3152 | return __pyx_r; |
2672 | 3153 | } | 3153 | } |
2673 | 3154 | 3154 | ||
2675 | 3155 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":305 | 3155 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":305 |
2676 | 3156 | * return 1 | 3156 | * return 1 |
2677 | 3157 | * | 3157 | * |
2678 | 3158 | * cdef int _encode_int(self, int x) except 0: # <<<<<<<<<<<<<< | 3158 | * cdef int _encode_int(self, int x) except 0: # <<<<<<<<<<<<<< |
2679 | @@ -3169,7 +3169,7 @@ | |||
2680 | 3169 | PyObject *__pyx_t_4 = NULL; | 3169 | PyObject *__pyx_t_4 = NULL; |
2681 | 3170 | __Pyx_RefNannySetupContext("_encode_int"); | 3170 | __Pyx_RefNannySetupContext("_encode_int"); |
2682 | 3171 | 3171 | ||
2684 | 3172 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":310 | 3172 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":310 |
2685 | 3173 | * """ | 3173 | * """ |
2686 | 3174 | * cdef int n | 3174 | * cdef int n |
2687 | 3175 | * self._ensure_buffer(INT_BUF_SIZE) # <<<<<<<<<<<<<< | 3175 | * self._ensure_buffer(INT_BUF_SIZE) # <<<<<<<<<<<<<< |
2688 | @@ -3178,7 +3178,7 @@ | |||
2689 | 3178 | */ | 3178 | */ |
2690 | 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;} |
2691 | 3180 | 3180 | ||
2693 | 3181 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":311 | 3181 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":311 |
2694 | 3182 | * cdef int n | 3182 | * cdef int n |
2695 | 3183 | * self._ensure_buffer(INT_BUF_SIZE) | 3183 | * self._ensure_buffer(INT_BUF_SIZE) |
2696 | 3184 | * n = snprintf(self.tail, INT_BUF_SIZE, "i%de", x) # <<<<<<<<<<<<<< | 3184 | * n = snprintf(self.tail, INT_BUF_SIZE, "i%de", x) # <<<<<<<<<<<<<< |
2697 | @@ -3187,7 +3187,7 @@ | |||
2698 | 3187 | */ | 3187 | */ |
2699 | 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); |
2700 | 3189 | 3189 | ||
2702 | 3190 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":312 | 3190 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":312 |
2703 | 3191 | * self._ensure_buffer(INT_BUF_SIZE) | 3191 | * self._ensure_buffer(INT_BUF_SIZE) |
2704 | 3192 | * n = snprintf(self.tail, INT_BUF_SIZE, "i%de", x) | 3192 | * n = snprintf(self.tail, INT_BUF_SIZE, "i%de", x) |
2705 | 3193 | * if n < 0: # <<<<<<<<<<<<<< | 3193 | * if n < 0: # <<<<<<<<<<<<<< |
2706 | @@ -3197,7 +3197,7 @@ | |||
2707 | 3197 | __pyx_t_2 = (__pyx_v_n < 0); | 3197 | __pyx_t_2 = (__pyx_v_n < 0); |
2708 | 3198 | if (__pyx_t_2) { | 3198 | if (__pyx_t_2) { |
2709 | 3199 | 3199 | ||
2711 | 3200 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":313 | 3200 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":313 |
2712 | 3201 | * n = snprintf(self.tail, INT_BUF_SIZE, "i%de", x) | 3201 | * n = snprintf(self.tail, INT_BUF_SIZE, "i%de", x) |
2713 | 3202 | * if n < 0: | 3202 | * if n < 0: |
2714 | 3203 | * raise MemoryError('int %d too big to encode' % x) # <<<<<<<<<<<<<< | 3203 | * raise MemoryError('int %d too big to encode' % x) # <<<<<<<<<<<<<< |
2715 | @@ -3224,7 +3224,7 @@ | |||
2716 | 3224 | } | 3224 | } |
2717 | 3225 | __pyx_L3:; | 3225 | __pyx_L3:; |
2718 | 3226 | 3226 | ||
2720 | 3227 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":314 | 3227 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":314 |
2721 | 3228 | * if n < 0: | 3228 | * if n < 0: |
2722 | 3229 | * raise MemoryError('int %d too big to encode' % x) | 3229 | * raise MemoryError('int %d too big to encode' % x) |
2723 | 3230 | * E_UPDATE_TAIL(self, n) # <<<<<<<<<<<<<< | 3230 | * E_UPDATE_TAIL(self, n) # <<<<<<<<<<<<<< |
2724 | @@ -3233,7 +3233,7 @@ | |||
2725 | 3233 | */ | 3233 | */ |
2726 | 3234 | E_UPDATE_TAIL(__pyx_v_self, __pyx_v_n); | 3234 | E_UPDATE_TAIL(__pyx_v_self, __pyx_v_n); |
2727 | 3235 | 3235 | ||
2729 | 3236 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":315 | 3236 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":315 |
2730 | 3237 | * raise MemoryError('int %d too big to encode' % x) | 3237 | * raise MemoryError('int %d too big to encode' % x) |
2731 | 3238 | * E_UPDATE_TAIL(self, n) | 3238 | * E_UPDATE_TAIL(self, n) |
2732 | 3239 | * return 1 # <<<<<<<<<<<<<< | 3239 | * return 1 # <<<<<<<<<<<<<< |
2733 | @@ -3255,7 +3255,7 @@ | |||
2734 | 3255 | return __pyx_r; | 3255 | return __pyx_r; |
2735 | 3256 | } | 3256 | } |
2736 | 3257 | 3257 | ||
2738 | 3258 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":317 | 3258 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":317 |
2739 | 3259 | * return 1 | 3259 | * return 1 |
2740 | 3260 | * | 3260 | * |
2741 | 3261 | * cdef int _encode_long(self, x) except 0: # <<<<<<<<<<<<<< | 3261 | * cdef int _encode_long(self, x) except 0: # <<<<<<<<<<<<<< |
2742 | @@ -3271,7 +3271,7 @@ | |||
2743 | 3271 | int __pyx_t_4; | 3271 | int __pyx_t_4; |
2744 | 3272 | __Pyx_RefNannySetupContext("_encode_long"); | 3272 | __Pyx_RefNannySetupContext("_encode_long"); |
2745 | 3273 | 3273 | ||
2747 | 3274 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":318 | 3274 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":318 |
2748 | 3275 | * | 3275 | * |
2749 | 3276 | * cdef int _encode_long(self, x) except 0: | 3276 | * cdef int _encode_long(self, x) except 0: |
2750 | 3277 | * return self._append_string(''.join(('i', str(x), 'e'))) # <<<<<<<<<<<<<< | 3277 | * return self._append_string(''.join(('i', str(x), 'e'))) # <<<<<<<<<<<<<< |
2751 | @@ -3326,7 +3326,7 @@ | |||
2752 | 3326 | return __pyx_r; | 3326 | return __pyx_r; |
2753 | 3327 | } | 3327 | } |
2754 | 3328 | 3328 | ||
2756 | 3329 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":320 | 3329 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":320 |
2757 | 3330 | * return self._append_string(''.join(('i', str(x), 'e'))) | 3330 | * return self._append_string(''.join(('i', str(x), 'e'))) |
2758 | 3331 | * | 3331 | * |
2759 | 3332 | * cdef int _append_string(self, s) except 0: # <<<<<<<<<<<<<< | 3332 | * cdef int _append_string(self, s) except 0: # <<<<<<<<<<<<<< |
2760 | @@ -3342,7 +3342,7 @@ | |||
2761 | 3342 | char *__pyx_t_3; | 3342 | char *__pyx_t_3; |
2762 | 3343 | __Pyx_RefNannySetupContext("_append_string"); | 3343 | __Pyx_RefNannySetupContext("_append_string"); |
2763 | 3344 | 3344 | ||
2765 | 3345 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":322 | 3345 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":322 |
2766 | 3346 | * cdef int _append_string(self, s) except 0: | 3346 | * cdef int _append_string(self, s) except 0: |
2767 | 3347 | * cdef Py_ssize_t n | 3347 | * cdef Py_ssize_t n |
2768 | 3348 | * n = PyString_GET_SIZE(s) # <<<<<<<<<<<<<< | 3348 | * n = PyString_GET_SIZE(s) # <<<<<<<<<<<<<< |
2769 | @@ -3352,7 +3352,7 @@ | |||
2770 | 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;} |
2771 | 3353 | __pyx_v_n = __pyx_t_1; | 3353 | __pyx_v_n = __pyx_t_1; |
2772 | 3354 | 3354 | ||
2774 | 3355 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":323 | 3355 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":323 |
2775 | 3356 | * cdef Py_ssize_t n | 3356 | * cdef Py_ssize_t n |
2776 | 3357 | * n = PyString_GET_SIZE(s) | 3357 | * n = PyString_GET_SIZE(s) |
2777 | 3358 | * self._ensure_buffer(n) # <<<<<<<<<<<<<< | 3358 | * self._ensure_buffer(n) # <<<<<<<<<<<<<< |
2778 | @@ -3361,7 +3361,7 @@ | |||
2779 | 3361 | */ | 3361 | */ |
2780 | 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;} |
2781 | 3363 | 3363 | ||
2783 | 3364 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":324 | 3364 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":324 |
2784 | 3365 | * n = PyString_GET_SIZE(s) | 3365 | * n = PyString_GET_SIZE(s) |
2785 | 3366 | * self._ensure_buffer(n) | 3366 | * self._ensure_buffer(n) |
2786 | 3367 | * memcpy(self.tail, PyString_AS_STRING(s), n) # <<<<<<<<<<<<<< | 3367 | * memcpy(self.tail, PyString_AS_STRING(s), n) # <<<<<<<<<<<<<< |
2787 | @@ -3371,7 +3371,7 @@ | |||
2788 | 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;} |
2789 | 3372 | memcpy(__pyx_v_self->tail, __pyx_t_3, __pyx_v_n); | 3372 | memcpy(__pyx_v_self->tail, __pyx_t_3, __pyx_v_n); |
2790 | 3373 | 3373 | ||
2792 | 3374 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":325 | 3374 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":325 |
2793 | 3375 | * self._ensure_buffer(n) | 3375 | * self._ensure_buffer(n) |
2794 | 3376 | * memcpy(self.tail, PyString_AS_STRING(s), n) | 3376 | * memcpy(self.tail, PyString_AS_STRING(s), n) |
2795 | 3377 | * E_UPDATE_TAIL(self, n) # <<<<<<<<<<<<<< | 3377 | * E_UPDATE_TAIL(self, n) # <<<<<<<<<<<<<< |
2796 | @@ -3380,7 +3380,7 @@ | |||
2797 | 3380 | */ | 3380 | */ |
2798 | 3381 | E_UPDATE_TAIL(__pyx_v_self, __pyx_v_n); | 3381 | E_UPDATE_TAIL(__pyx_v_self, __pyx_v_n); |
2799 | 3382 | 3382 | ||
2801 | 3383 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":326 | 3383 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":326 |
2802 | 3384 | * memcpy(self.tail, PyString_AS_STRING(s), n) | 3384 | * memcpy(self.tail, PyString_AS_STRING(s), n) |
2803 | 3385 | * E_UPDATE_TAIL(self, n) | 3385 | * E_UPDATE_TAIL(self, n) |
2804 | 3386 | * return 1 # <<<<<<<<<<<<<< | 3386 | * return 1 # <<<<<<<<<<<<<< |
2805 | @@ -3400,7 +3400,7 @@ | |||
2806 | 3400 | return __pyx_r; | 3400 | return __pyx_r; |
2807 | 3401 | } | 3401 | } |
2808 | 3402 | 3402 | ||
2810 | 3403 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":328 | 3403 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":328 |
2811 | 3404 | * return 1 | 3404 | * return 1 |
2812 | 3405 | * | 3405 | * |
2813 | 3406 | * cdef int _encode_string(self, x) except 0: # <<<<<<<<<<<<<< | 3406 | * cdef int _encode_string(self, x) except 0: # <<<<<<<<<<<<<< |
2814 | @@ -3420,7 +3420,7 @@ | |||
2815 | 3420 | char *__pyx_t_6; | 3420 | char *__pyx_t_6; |
2816 | 3421 | __Pyx_RefNannySetupContext("_encode_string"); | 3421 | __Pyx_RefNannySetupContext("_encode_string"); |
2817 | 3422 | 3422 | ||
2819 | 3423 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":331 | 3423 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":331 |
2820 | 3424 | * cdef int n | 3424 | * cdef int n |
2821 | 3425 | * cdef Py_ssize_t x_len | 3425 | * cdef Py_ssize_t x_len |
2822 | 3426 | * x_len = PyString_GET_SIZE(x) # <<<<<<<<<<<<<< | 3426 | * x_len = PyString_GET_SIZE(x) # <<<<<<<<<<<<<< |
2823 | @@ -3430,7 +3430,7 @@ | |||
2824 | 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;} |
2825 | 3431 | __pyx_v_x_len = __pyx_t_1; | 3431 | __pyx_v_x_len = __pyx_t_1; |
2826 | 3432 | 3432 | ||
2828 | 3433 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":332 | 3433 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":332 |
2829 | 3434 | * cdef Py_ssize_t x_len | 3434 | * cdef Py_ssize_t x_len |
2830 | 3435 | * x_len = PyString_GET_SIZE(x) | 3435 | * x_len = PyString_GET_SIZE(x) |
2831 | 3436 | * self._ensure_buffer(x_len + INT_BUF_SIZE) # <<<<<<<<<<<<<< | 3436 | * self._ensure_buffer(x_len + INT_BUF_SIZE) # <<<<<<<<<<<<<< |
2832 | @@ -3439,7 +3439,7 @@ | |||
2833 | 3439 | */ | 3439 | */ |
2834 | 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;} |
2835 | 3441 | 3441 | ||
2837 | 3442 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":333 | 3442 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":333 |
2838 | 3443 | * x_len = PyString_GET_SIZE(x) | 3443 | * x_len = PyString_GET_SIZE(x) |
2839 | 3444 | * self._ensure_buffer(x_len + INT_BUF_SIZE) | 3444 | * self._ensure_buffer(x_len + INT_BUF_SIZE) |
2840 | 3445 | * n = snprintf(self.tail, INT_BUF_SIZE, '%d:', x_len) # <<<<<<<<<<<<<< | 3445 | * n = snprintf(self.tail, INT_BUF_SIZE, '%d:', x_len) # <<<<<<<<<<<<<< |
2841 | @@ -3448,7 +3448,7 @@ | |||
2842 | 3448 | */ | 3448 | */ |
2843 | 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); |
2844 | 3450 | 3450 | ||
2846 | 3451 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":334 | 3451 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":334 |
2847 | 3452 | * self._ensure_buffer(x_len + INT_BUF_SIZE) | 3452 | * self._ensure_buffer(x_len + INT_BUF_SIZE) |
2848 | 3453 | * n = snprintf(self.tail, INT_BUF_SIZE, '%d:', x_len) | 3453 | * n = snprintf(self.tail, INT_BUF_SIZE, '%d:', x_len) |
2849 | 3454 | * if n < 0: # <<<<<<<<<<<<<< | 3454 | * if n < 0: # <<<<<<<<<<<<<< |
2850 | @@ -3458,7 +3458,7 @@ | |||
2851 | 3458 | __pyx_t_3 = (__pyx_v_n < 0); | 3458 | __pyx_t_3 = (__pyx_v_n < 0); |
2852 | 3459 | if (__pyx_t_3) { | 3459 | if (__pyx_t_3) { |
2853 | 3460 | 3460 | ||
2855 | 3461 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":335 | 3461 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":335 |
2856 | 3462 | * n = snprintf(self.tail, INT_BUF_SIZE, '%d:', x_len) | 3462 | * n = snprintf(self.tail, INT_BUF_SIZE, '%d:', x_len) |
2857 | 3463 | * if n < 0: | 3463 | * if n < 0: |
2858 | 3464 | * raise MemoryError('string %s too big to encode' % x) # <<<<<<<<<<<<<< | 3464 | * raise MemoryError('string %s too big to encode' % x) # <<<<<<<<<<<<<< |
2859 | @@ -3482,7 +3482,7 @@ | |||
2860 | 3482 | } | 3482 | } |
2861 | 3483 | __pyx_L3:; | 3483 | __pyx_L3:; |
2862 | 3484 | 3484 | ||
2864 | 3485 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":336 | 3485 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":336 |
2865 | 3486 | * if n < 0: | 3486 | * if n < 0: |
2866 | 3487 | * raise MemoryError('string %s too big to encode' % x) | 3487 | * raise MemoryError('string %s too big to encode' % x) |
2867 | 3488 | * memcpy(<void *>(self.tail+n), PyString_AS_STRING(x), x_len) # <<<<<<<<<<<<<< | 3488 | * memcpy(<void *>(self.tail+n), PyString_AS_STRING(x), x_len) # <<<<<<<<<<<<<< |
2868 | @@ -3492,7 +3492,7 @@ | |||
2869 | 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;} |
2870 | 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); |
2871 | 3494 | 3494 | ||
2873 | 3495 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":337 | 3495 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":337 |
2874 | 3496 | * raise MemoryError('string %s too big to encode' % x) | 3496 | * raise MemoryError('string %s too big to encode' % x) |
2875 | 3497 | * memcpy(<void *>(self.tail+n), PyString_AS_STRING(x), x_len) | 3497 | * memcpy(<void *>(self.tail+n), PyString_AS_STRING(x), x_len) |
2876 | 3498 | * E_UPDATE_TAIL(self, n + x_len) # <<<<<<<<<<<<<< | 3498 | * E_UPDATE_TAIL(self, n + x_len) # <<<<<<<<<<<<<< |
2877 | @@ -3501,7 +3501,7 @@ | |||
2878 | 3501 | */ | 3501 | */ |
2879 | 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)); |
2880 | 3503 | 3503 | ||
2882 | 3504 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":338 | 3504 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":338 |
2883 | 3505 | * memcpy(<void *>(self.tail+n), PyString_AS_STRING(x), x_len) | 3505 | * memcpy(<void *>(self.tail+n), PyString_AS_STRING(x), x_len) |
2884 | 3506 | * E_UPDATE_TAIL(self, n + x_len) | 3506 | * E_UPDATE_TAIL(self, n + x_len) |
2885 | 3507 | * return 1 # <<<<<<<<<<<<<< | 3507 | * return 1 # <<<<<<<<<<<<<< |
2886 | @@ -3523,7 +3523,7 @@ | |||
2887 | 3523 | return __pyx_r; | 3523 | return __pyx_r; |
2888 | 3524 | } | 3524 | } |
2889 | 3525 | 3525 | ||
2891 | 3526 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":340 | 3526 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":340 |
2892 | 3527 | * return 1 | 3527 | * return 1 |
2893 | 3528 | * | 3528 | * |
2894 | 3529 | * cdef int _encode_list(self, x) except 0: # <<<<<<<<<<<<<< | 3529 | * cdef int _encode_list(self, x) except 0: # <<<<<<<<<<<<<< |
2895 | @@ -3543,7 +3543,7 @@ | |||
2896 | 3543 | __Pyx_RefNannySetupContext("_encode_list"); | 3543 | __Pyx_RefNannySetupContext("_encode_list"); |
2897 | 3544 | __pyx_v_i = Py_None; __Pyx_INCREF(Py_None); | 3544 | __pyx_v_i = Py_None; __Pyx_INCREF(Py_None); |
2898 | 3545 | 3545 | ||
2900 | 3546 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":341 | 3546 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":341 |
2901 | 3547 | * | 3547 | * |
2902 | 3548 | * cdef int _encode_list(self, x) except 0: | 3548 | * cdef int _encode_list(self, x) except 0: |
2903 | 3549 | * self._ensure_buffer(1) # <<<<<<<<<<<<<< | 3549 | * self._ensure_buffer(1) # <<<<<<<<<<<<<< |
2904 | @@ -3552,7 +3552,7 @@ | |||
2905 | 3552 | */ | 3552 | */ |
2906 | 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;} |
2907 | 3554 | 3554 | ||
2909 | 3555 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":342 | 3555 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":342 |
2910 | 3556 | * cdef int _encode_list(self, x) except 0: | 3556 | * cdef int _encode_list(self, x) except 0: |
2911 | 3557 | * self._ensure_buffer(1) | 3557 | * self._ensure_buffer(1) |
2912 | 3558 | * self.tail[0] = c'l' # <<<<<<<<<<<<<< | 3558 | * self.tail[0] = c'l' # <<<<<<<<<<<<<< |
2913 | @@ -3561,7 +3561,7 @@ | |||
2914 | 3561 | */ | 3561 | */ |
2915 | 3562 | (__pyx_v_self->tail[0]) = 'l'; | 3562 | (__pyx_v_self->tail[0]) = 'l'; |
2916 | 3563 | 3563 | ||
2918 | 3564 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":343 | 3564 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":343 |
2919 | 3565 | * self._ensure_buffer(1) | 3565 | * self._ensure_buffer(1) |
2920 | 3566 | * self.tail[0] = c'l' | 3566 | * self.tail[0] = c'l' |
2921 | 3567 | * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< | 3567 | * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< |
2922 | @@ -3570,7 +3570,7 @@ | |||
2923 | 3570 | */ | 3570 | */ |
2924 | 3571 | E_UPDATE_TAIL(__pyx_v_self, 1); | 3571 | E_UPDATE_TAIL(__pyx_v_self, 1); |
2925 | 3572 | 3572 | ||
2927 | 3573 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":345 | 3573 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":345 |
2928 | 3574 | * E_UPDATE_TAIL(self, 1) | 3574 | * E_UPDATE_TAIL(self, 1) |
2929 | 3575 | * | 3575 | * |
2930 | 3576 | * for i in x: # <<<<<<<<<<<<<< | 3576 | * for i in x: # <<<<<<<<<<<<<< |
2931 | @@ -3602,7 +3602,7 @@ | |||
2932 | 3602 | __pyx_v_i = __pyx_t_4; | 3602 | __pyx_v_i = __pyx_t_4; |
2933 | 3603 | __pyx_t_4 = 0; | 3603 | __pyx_t_4 = 0; |
2934 | 3604 | 3604 | ||
2936 | 3605 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":346 | 3605 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":346 |
2937 | 3606 | * | 3606 | * |
2938 | 3607 | * for i in x: | 3607 | * for i in x: |
2939 | 3608 | * self.process(i) # <<<<<<<<<<<<<< | 3608 | * self.process(i) # <<<<<<<<<<<<<< |
2940 | @@ -3624,7 +3624,7 @@ | |||
2941 | 3624 | } | 3624 | } |
2942 | 3625 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; | 3625 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; |
2943 | 3626 | 3626 | ||
2945 | 3627 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":348 | 3627 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":348 |
2946 | 3628 | * self.process(i) | 3628 | * self.process(i) |
2947 | 3629 | * | 3629 | * |
2948 | 3630 | * self._ensure_buffer(1) # <<<<<<<<<<<<<< | 3630 | * self._ensure_buffer(1) # <<<<<<<<<<<<<< |
2949 | @@ -3633,7 +3633,7 @@ | |||
2950 | 3633 | */ | 3633 | */ |
2951 | 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;} |
2952 | 3635 | 3635 | ||
2954 | 3636 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":349 | 3636 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":349 |
2955 | 3637 | * | 3637 | * |
2956 | 3638 | * self._ensure_buffer(1) | 3638 | * self._ensure_buffer(1) |
2957 | 3639 | * self.tail[0] = c'e' # <<<<<<<<<<<<<< | 3639 | * self.tail[0] = c'e' # <<<<<<<<<<<<<< |
2958 | @@ -3642,7 +3642,7 @@ | |||
2959 | 3642 | */ | 3642 | */ |
2960 | 3643 | (__pyx_v_self->tail[0]) = 'e'; | 3643 | (__pyx_v_self->tail[0]) = 'e'; |
2961 | 3644 | 3644 | ||
2963 | 3645 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":350 | 3645 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":350 |
2964 | 3646 | * self._ensure_buffer(1) | 3646 | * self._ensure_buffer(1) |
2965 | 3647 | * self.tail[0] = c'e' | 3647 | * self.tail[0] = c'e' |
2966 | 3648 | * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< | 3648 | * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< |
2967 | @@ -3651,7 +3651,7 @@ | |||
2968 | 3651 | */ | 3651 | */ |
2969 | 3652 | E_UPDATE_TAIL(__pyx_v_self, 1); | 3652 | E_UPDATE_TAIL(__pyx_v_self, 1); |
2970 | 3653 | 3653 | ||
2972 | 3654 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":351 | 3654 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":351 |
2973 | 3655 | * self.tail[0] = c'e' | 3655 | * self.tail[0] = c'e' |
2974 | 3656 | * E_UPDATE_TAIL(self, 1) | 3656 | * E_UPDATE_TAIL(self, 1) |
2975 | 3657 | * return 1 # <<<<<<<<<<<<<< | 3657 | * return 1 # <<<<<<<<<<<<<< |
2976 | @@ -3676,7 +3676,7 @@ | |||
2977 | 3676 | return __pyx_r; | 3676 | return __pyx_r; |
2978 | 3677 | } | 3677 | } |
2979 | 3678 | 3678 | ||
2981 | 3679 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":353 | 3679 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":353 |
2982 | 3680 | * return 1 | 3680 | * return 1 |
2983 | 3681 | * | 3681 | * |
2984 | 3682 | * cdef int _encode_dict(self, x) except 0: # <<<<<<<<<<<<<< | 3682 | * cdef int _encode_dict(self, x) except 0: # <<<<<<<<<<<<<< |
2985 | @@ -3699,7 +3699,7 @@ | |||
2986 | 3699 | __pyx_v_keys = Py_None; __Pyx_INCREF(Py_None); | 3699 | __pyx_v_keys = Py_None; __Pyx_INCREF(Py_None); |
2987 | 3700 | __pyx_v_k = Py_None; __Pyx_INCREF(Py_None); | 3700 | __pyx_v_k = Py_None; __Pyx_INCREF(Py_None); |
2988 | 3701 | 3701 | ||
2990 | 3702 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":354 | 3702 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":354 |
2991 | 3703 | * | 3703 | * |
2992 | 3704 | * cdef int _encode_dict(self, x) except 0: | 3704 | * cdef int _encode_dict(self, x) except 0: |
2993 | 3705 | * self._ensure_buffer(1) # <<<<<<<<<<<<<< | 3705 | * self._ensure_buffer(1) # <<<<<<<<<<<<<< |
2994 | @@ -3708,7 +3708,7 @@ | |||
2995 | 3708 | */ | 3708 | */ |
2996 | 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;} |
2997 | 3710 | 3710 | ||
2999 | 3711 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":355 | 3711 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":355 |
3000 | 3712 | * cdef int _encode_dict(self, x) except 0: | 3712 | * cdef int _encode_dict(self, x) except 0: |
3001 | 3713 | * self._ensure_buffer(1) | 3713 | * self._ensure_buffer(1) |
3002 | 3714 | * self.tail[0] = c'd' # <<<<<<<<<<<<<< | 3714 | * self.tail[0] = c'd' # <<<<<<<<<<<<<< |
3003 | @@ -3717,7 +3717,7 @@ | |||
3004 | 3717 | */ | 3717 | */ |
3005 | 3718 | (__pyx_v_self->tail[0]) = 'd'; | 3718 | (__pyx_v_self->tail[0]) = 'd'; |
3006 | 3719 | 3719 | ||
3008 | 3720 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":356 | 3720 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":356 |
3009 | 3721 | * self._ensure_buffer(1) | 3721 | * self._ensure_buffer(1) |
3010 | 3722 | * self.tail[0] = c'd' | 3722 | * self.tail[0] = c'd' |
3011 | 3723 | * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< | 3723 | * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< |
3012 | @@ -3726,7 +3726,7 @@ | |||
3013 | 3726 | */ | 3726 | */ |
3014 | 3727 | E_UPDATE_TAIL(__pyx_v_self, 1); | 3727 | E_UPDATE_TAIL(__pyx_v_self, 1); |
3015 | 3728 | 3728 | ||
3017 | 3729 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":358 | 3729 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":358 |
3018 | 3730 | * E_UPDATE_TAIL(self, 1) | 3730 | * E_UPDATE_TAIL(self, 1) |
3019 | 3731 | * | 3731 | * |
3020 | 3732 | * keys = x.keys() # <<<<<<<<<<<<<< | 3732 | * keys = x.keys() # <<<<<<<<<<<<<< |
3021 | @@ -3742,7 +3742,7 @@ | |||
3022 | 3742 | __pyx_v_keys = __pyx_t_3; | 3742 | __pyx_v_keys = __pyx_t_3; |
3023 | 3743 | __pyx_t_3 = 0; | 3743 | __pyx_t_3 = 0; |
3024 | 3744 | 3744 | ||
3026 | 3745 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":359 | 3745 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":359 |
3027 | 3746 | * | 3746 | * |
3028 | 3747 | * keys = x.keys() | 3747 | * keys = x.keys() |
3029 | 3748 | * keys.sort() # <<<<<<<<<<<<<< | 3748 | * keys.sort() # <<<<<<<<<<<<<< |
3030 | @@ -3756,7 +3756,7 @@ | |||
3031 | 3756 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; | 3756 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; |
3032 | 3757 | __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; | 3757 | __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; |
3033 | 3758 | 3758 | ||
3035 | 3759 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":360 | 3759 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":360 |
3036 | 3760 | * keys = x.keys() | 3760 | * keys = x.keys() |
3037 | 3761 | * keys.sort() | 3761 | * keys.sort() |
3038 | 3762 | * for k in keys: # <<<<<<<<<<<<<< | 3762 | * for k in keys: # <<<<<<<<<<<<<< |
3039 | @@ -3788,7 +3788,7 @@ | |||
3040 | 3788 | __pyx_v_k = __pyx_t_3; | 3788 | __pyx_v_k = __pyx_t_3; |
3041 | 3789 | __pyx_t_3 = 0; | 3789 | __pyx_t_3 = 0; |
3042 | 3790 | 3790 | ||
3044 | 3791 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":361 | 3791 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":361 |
3045 | 3792 | * keys.sort() | 3792 | * keys.sort() |
3046 | 3793 | * for k in keys: | 3793 | * for k in keys: |
3047 | 3794 | * if not PyString_CheckExact(k): # <<<<<<<<<<<<<< | 3794 | * if not PyString_CheckExact(k): # <<<<<<<<<<<<<< |
3048 | @@ -3798,7 +3798,7 @@ | |||
3049 | 3798 | __pyx_t_5 = (!PyString_CheckExact(__pyx_v_k)); | 3798 | __pyx_t_5 = (!PyString_CheckExact(__pyx_v_k)); |
3050 | 3799 | if (__pyx_t_5) { | 3799 | if (__pyx_t_5) { |
3051 | 3800 | 3800 | ||
3053 | 3801 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":362 | 3801 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":362 |
3054 | 3802 | * for k in keys: | 3802 | * for k in keys: |
3055 | 3803 | * if not PyString_CheckExact(k): | 3803 | * if not PyString_CheckExact(k): |
3056 | 3804 | * raise TypeError('key in dict should be string') # <<<<<<<<<<<<<< | 3804 | * raise TypeError('key in dict should be string') # <<<<<<<<<<<<<< |
3057 | @@ -3820,7 +3820,7 @@ | |||
3058 | 3820 | } | 3820 | } |
3059 | 3821 | __pyx_L5:; | 3821 | __pyx_L5:; |
3060 | 3822 | 3822 | ||
3062 | 3823 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":363 | 3823 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":363 |
3063 | 3824 | * if not PyString_CheckExact(k): | 3824 | * if not PyString_CheckExact(k): |
3064 | 3825 | * raise TypeError('key in dict should be string') | 3825 | * raise TypeError('key in dict should be string') |
3065 | 3826 | * self._encode_string(k) # <<<<<<<<<<<<<< | 3826 | * self._encode_string(k) # <<<<<<<<<<<<<< |
3066 | @@ -3829,7 +3829,7 @@ | |||
3067 | 3829 | */ | 3829 | */ |
3068 | 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;} |
3069 | 3831 | 3831 | ||
3071 | 3832 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":364 | 3832 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":364 |
3072 | 3833 | * raise TypeError('key in dict should be string') | 3833 | * raise TypeError('key in dict should be string') |
3073 | 3834 | * self._encode_string(k) | 3834 | * self._encode_string(k) |
3074 | 3835 | * self.process(x[k]) # <<<<<<<<<<<<<< | 3835 | * self.process(x[k]) # <<<<<<<<<<<<<< |
3075 | @@ -3853,7 +3853,7 @@ | |||
3076 | 3853 | } | 3853 | } |
3077 | 3854 | __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; | 3854 | __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; |
3078 | 3855 | 3855 | ||
3080 | 3856 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":366 | 3856 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":366 |
3081 | 3857 | * self.process(x[k]) | 3857 | * self.process(x[k]) |
3082 | 3858 | * | 3858 | * |
3083 | 3859 | * self._ensure_buffer(1) # <<<<<<<<<<<<<< | 3859 | * self._ensure_buffer(1) # <<<<<<<<<<<<<< |
3084 | @@ -3862,7 +3862,7 @@ | |||
3085 | 3862 | */ | 3862 | */ |
3086 | 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;} |
3087 | 3864 | 3864 | ||
3089 | 3865 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":367 | 3865 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":367 |
3090 | 3866 | * | 3866 | * |
3091 | 3867 | * self._ensure_buffer(1) | 3867 | * self._ensure_buffer(1) |
3092 | 3868 | * self.tail[0] = c'e' # <<<<<<<<<<<<<< | 3868 | * self.tail[0] = c'e' # <<<<<<<<<<<<<< |
3093 | @@ -3871,7 +3871,7 @@ | |||
3094 | 3871 | */ | 3871 | */ |
3095 | 3872 | (__pyx_v_self->tail[0]) = 'e'; | 3872 | (__pyx_v_self->tail[0]) = 'e'; |
3096 | 3873 | 3873 | ||
3098 | 3874 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":368 | 3874 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":368 |
3099 | 3875 | * self._ensure_buffer(1) | 3875 | * self._ensure_buffer(1) |
3100 | 3876 | * self.tail[0] = c'e' | 3876 | * self.tail[0] = c'e' |
3101 | 3877 | * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< | 3877 | * E_UPDATE_TAIL(self, 1) # <<<<<<<<<<<<<< |
3102 | @@ -3880,7 +3880,7 @@ | |||
3103 | 3880 | */ | 3880 | */ |
3104 | 3881 | E_UPDATE_TAIL(__pyx_v_self, 1); | 3881 | E_UPDATE_TAIL(__pyx_v_self, 1); |
3105 | 3882 | 3882 | ||
3107 | 3883 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":369 | 3883 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":369 |
3108 | 3884 | * self.tail[0] = c'e' | 3884 | * self.tail[0] = c'e' |
3109 | 3885 | * E_UPDATE_TAIL(self, 1) | 3885 | * E_UPDATE_TAIL(self, 1) |
3110 | 3886 | * return 1 # <<<<<<<<<<<<<< | 3886 | * return 1 # <<<<<<<<<<<<<< |
3111 | @@ -3906,7 +3906,7 @@ | |||
3112 | 3906 | return __pyx_r; | 3906 | return __pyx_r; |
3113 | 3907 | } | 3907 | } |
3114 | 3908 | 3908 | ||
3116 | 3909 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":371 | 3909 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":371 |
3117 | 3910 | * return 1 | 3910 | * return 1 |
3118 | 3911 | * | 3911 | * |
3119 | 3912 | * def process(self, object x): # <<<<<<<<<<<<<< | 3912 | * def process(self, object x): # <<<<<<<<<<<<<< |
3120 | @@ -3926,7 +3926,7 @@ | |||
3121 | 3926 | int __pyx_t_7; | 3926 | int __pyx_t_7; |
3122 | 3927 | __Pyx_RefNannySetupContext("process"); | 3927 | __Pyx_RefNannySetupContext("process"); |
3123 | 3928 | 3928 | ||
3125 | 3929 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":372 | 3929 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":372 |
3126 | 3930 | * | 3930 | * |
3127 | 3931 | * def process(self, object x): | 3931 | * def process(self, object x): |
3128 | 3932 | * if Py_EnterRecursiveCall("encode"): # <<<<<<<<<<<<<< | 3932 | * if Py_EnterRecursiveCall("encode"): # <<<<<<<<<<<<<< |
3129 | @@ -3936,7 +3936,7 @@ | |||
3130 | 3936 | __pyx_t_1 = Py_EnterRecursiveCall(__pyx_k__encode); | 3936 | __pyx_t_1 = Py_EnterRecursiveCall(__pyx_k__encode); |
3131 | 3937 | if (__pyx_t_1) { | 3937 | if (__pyx_t_1) { |
3132 | 3938 | 3938 | ||
3134 | 3939 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":373 | 3939 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":373 |
3135 | 3940 | * def process(self, object x): | 3940 | * def process(self, object x): |
3136 | 3941 | * if Py_EnterRecursiveCall("encode"): | 3941 | * if Py_EnterRecursiveCall("encode"): |
3137 | 3942 | * raise RuntimeError("too deeply nested") # <<<<<<<<<<<<<< | 3942 | * raise RuntimeError("too deeply nested") # <<<<<<<<<<<<<< |
3138 | @@ -3958,7 +3958,7 @@ | |||
3139 | 3958 | } | 3958 | } |
3140 | 3959 | __pyx_L5:; | 3959 | __pyx_L5:; |
3141 | 3960 | 3960 | ||
3143 | 3961 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":374 | 3961 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":374 |
3144 | 3962 | * if Py_EnterRecursiveCall("encode"): | 3962 | * if Py_EnterRecursiveCall("encode"): |
3145 | 3963 | * raise RuntimeError("too deeply nested") | 3963 | * raise RuntimeError("too deeply nested") |
3146 | 3964 | * try: # <<<<<<<<<<<<<< | 3964 | * try: # <<<<<<<<<<<<<< |
3147 | @@ -3967,7 +3967,7 @@ | |||
3148 | 3967 | */ | 3967 | */ |
3149 | 3968 | /*try:*/ { | 3968 | /*try:*/ { |
3150 | 3969 | 3969 | ||
3152 | 3970 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":375 | 3970 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":375 |
3153 | 3971 | * raise RuntimeError("too deeply nested") | 3971 | * raise RuntimeError("too deeply nested") |
3154 | 3972 | * try: | 3972 | * try: |
3155 | 3973 | * if PyString_CheckExact(x): # <<<<<<<<<<<<<< | 3973 | * if PyString_CheckExact(x): # <<<<<<<<<<<<<< |
3156 | @@ -3977,7 +3977,7 @@ | |||
3157 | 3977 | __pyx_t_1 = PyString_CheckExact(__pyx_v_x); | 3977 | __pyx_t_1 = PyString_CheckExact(__pyx_v_x); |
3158 | 3978 | if (__pyx_t_1) { | 3978 | if (__pyx_t_1) { |
3159 | 3979 | 3979 | ||
3161 | 3980 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":376 | 3980 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":376 |
3162 | 3981 | * try: | 3981 | * try: |
3163 | 3982 | * if PyString_CheckExact(x): | 3982 | * if PyString_CheckExact(x): |
3164 | 3983 | * self._encode_string(x) # <<<<<<<<<<<<<< | 3983 | * self._encode_string(x) # <<<<<<<<<<<<<< |
3165 | @@ -3988,7 +3988,7 @@ | |||
3166 | 3988 | goto __pyx_L9; | 3988 | goto __pyx_L9; |
3167 | 3989 | } | 3989 | } |
3168 | 3990 | 3990 | ||
3170 | 3991 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":377 | 3991 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":377 |
3171 | 3992 | * if PyString_CheckExact(x): | 3992 | * if PyString_CheckExact(x): |
3172 | 3993 | * self._encode_string(x) | 3993 | * self._encode_string(x) |
3173 | 3994 | * elif PyInt_CheckExact(x): # <<<<<<<<<<<<<< | 3994 | * elif PyInt_CheckExact(x): # <<<<<<<<<<<<<< |
3174 | @@ -3998,7 +3998,7 @@ | |||
3175 | 3998 | __pyx_t_1 = PyInt_CheckExact(__pyx_v_x); | 3998 | __pyx_t_1 = PyInt_CheckExact(__pyx_v_x); |
3176 | 3999 | if (__pyx_t_1) { | 3999 | if (__pyx_t_1) { |
3177 | 4000 | 4000 | ||
3179 | 4001 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":378 | 4001 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":378 |
3180 | 4002 | * self._encode_string(x) | 4002 | * self._encode_string(x) |
3181 | 4003 | * elif PyInt_CheckExact(x): | 4003 | * elif PyInt_CheckExact(x): |
3182 | 4004 | * self._encode_int(x) # <<<<<<<<<<<<<< | 4004 | * self._encode_int(x) # <<<<<<<<<<<<<< |
3183 | @@ -4010,7 +4010,7 @@ | |||
3184 | 4010 | goto __pyx_L9; | 4010 | goto __pyx_L9; |
3185 | 4011 | } | 4011 | } |
3186 | 4012 | 4012 | ||
3188 | 4013 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":379 | 4013 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":379 |
3189 | 4014 | * elif PyInt_CheckExact(x): | 4014 | * elif PyInt_CheckExact(x): |
3190 | 4015 | * self._encode_int(x) | 4015 | * self._encode_int(x) |
3191 | 4016 | * elif PyLong_CheckExact(x): # <<<<<<<<<<<<<< | 4016 | * elif PyLong_CheckExact(x): # <<<<<<<<<<<<<< |
3192 | @@ -4020,7 +4020,7 @@ | |||
3193 | 4020 | __pyx_t_4 = PyLong_CheckExact(__pyx_v_x); | 4020 | __pyx_t_4 = PyLong_CheckExact(__pyx_v_x); |
3194 | 4021 | if (__pyx_t_4) { | 4021 | if (__pyx_t_4) { |
3195 | 4022 | 4022 | ||
3197 | 4023 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":380 | 4023 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":380 |
3198 | 4024 | * self._encode_int(x) | 4024 | * self._encode_int(x) |
3199 | 4025 | * elif PyLong_CheckExact(x): | 4025 | * elif PyLong_CheckExact(x): |
3200 | 4026 | * self._encode_long(x) # <<<<<<<<<<<<<< | 4026 | * self._encode_long(x) # <<<<<<<<<<<<<< |
3201 | @@ -4031,7 +4031,7 @@ | |||
3202 | 4031 | goto __pyx_L9; | 4031 | goto __pyx_L9; |
3203 | 4032 | } | 4032 | } |
3204 | 4033 | 4033 | ||
3206 | 4034 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":381 | 4034 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":381 |
3207 | 4035 | * elif PyLong_CheckExact(x): | 4035 | * elif PyLong_CheckExact(x): |
3208 | 4036 | * self._encode_long(x) | 4036 | * self._encode_long(x) |
3209 | 4037 | * elif (PyList_CheckExact(x) or PyTuple_CheckExact(x) # <<<<<<<<<<<<<< | 4037 | * elif (PyList_CheckExact(x) or PyTuple_CheckExact(x) # <<<<<<<<<<<<<< |
3210 | @@ -4041,7 +4041,7 @@ | |||
3211 | 4041 | __pyx_t_4 = PyList_CheckExact(__pyx_v_x); | 4041 | __pyx_t_4 = PyList_CheckExact(__pyx_v_x); |
3212 | 4042 | if (!__pyx_t_4) { | 4042 | if (!__pyx_t_4) { |
3213 | 4043 | 4043 | ||
3215 | 4044 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":382 | 4044 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":382 |
3216 | 4045 | * self._encode_long(x) | 4045 | * self._encode_long(x) |
3217 | 4046 | * elif (PyList_CheckExact(x) or PyTuple_CheckExact(x) | 4046 | * elif (PyList_CheckExact(x) or PyTuple_CheckExact(x) |
3218 | 4047 | * or StaticTuple_CheckExact(x)): # <<<<<<<<<<<<<< | 4047 | * or StaticTuple_CheckExact(x)): # <<<<<<<<<<<<<< |
3219 | @@ -4061,7 +4061,7 @@ | |||
3220 | 4061 | } | 4061 | } |
3221 | 4062 | if (__pyx_t_7) { | 4062 | if (__pyx_t_7) { |
3222 | 4063 | 4063 | ||
3224 | 4064 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":383 | 4064 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":383 |
3225 | 4065 | * elif (PyList_CheckExact(x) or PyTuple_CheckExact(x) | 4065 | * elif (PyList_CheckExact(x) or PyTuple_CheckExact(x) |
3226 | 4066 | * or StaticTuple_CheckExact(x)): | 4066 | * or StaticTuple_CheckExact(x)): |
3227 | 4067 | * self._encode_list(x) # <<<<<<<<<<<<<< | 4067 | * self._encode_list(x) # <<<<<<<<<<<<<< |
3228 | @@ -4072,7 +4072,7 @@ | |||
3229 | 4072 | goto __pyx_L9; | 4072 | goto __pyx_L9; |
3230 | 4073 | } | 4073 | } |
3231 | 4074 | 4074 | ||
3233 | 4075 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":384 | 4075 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":384 |
3234 | 4076 | * or StaticTuple_CheckExact(x)): | 4076 | * or StaticTuple_CheckExact(x)): |
3235 | 4077 | * self._encode_list(x) | 4077 | * self._encode_list(x) |
3236 | 4078 | * elif PyDict_CheckExact(x): # <<<<<<<<<<<<<< | 4078 | * elif PyDict_CheckExact(x): # <<<<<<<<<<<<<< |
3237 | @@ -4082,7 +4082,7 @@ | |||
3238 | 4082 | __pyx_t_4 = PyDict_CheckExact(__pyx_v_x); | 4082 | __pyx_t_4 = PyDict_CheckExact(__pyx_v_x); |
3239 | 4083 | if (__pyx_t_4) { | 4083 | if (__pyx_t_4) { |
3240 | 4084 | 4084 | ||
3242 | 4085 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":385 | 4085 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":385 |
3243 | 4086 | * self._encode_list(x) | 4086 | * self._encode_list(x) |
3244 | 4087 | * elif PyDict_CheckExact(x): | 4087 | * elif PyDict_CheckExact(x): |
3245 | 4088 | * self._encode_dict(x) # <<<<<<<<<<<<<< | 4088 | * self._encode_dict(x) # <<<<<<<<<<<<<< |
3246 | @@ -4093,7 +4093,7 @@ | |||
3247 | 4093 | goto __pyx_L9; | 4093 | goto __pyx_L9; |
3248 | 4094 | } | 4094 | } |
3249 | 4095 | 4095 | ||
3251 | 4096 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":386 | 4096 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":386 |
3252 | 4097 | * elif PyDict_CheckExact(x): | 4097 | * elif PyDict_CheckExact(x): |
3253 | 4098 | * self._encode_dict(x) | 4098 | * self._encode_dict(x) |
3254 | 4099 | * elif PyBool_Check(x): # <<<<<<<<<<<<<< | 4099 | * elif PyBool_Check(x): # <<<<<<<<<<<<<< |
3255 | @@ -4103,7 +4103,7 @@ | |||
3256 | 4103 | __pyx_t_4 = PyBool_Check(__pyx_v_x); | 4103 | __pyx_t_4 = PyBool_Check(__pyx_v_x); |
3257 | 4104 | if (__pyx_t_4) { | 4104 | if (__pyx_t_4) { |
3258 | 4105 | 4105 | ||
3260 | 4106 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":387 | 4106 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":387 |
3261 | 4107 | * self._encode_dict(x) | 4107 | * self._encode_dict(x) |
3262 | 4108 | * elif PyBool_Check(x): | 4108 | * elif PyBool_Check(x): |
3263 | 4109 | * self._encode_int(int(x)) # <<<<<<<<<<<<<< | 4109 | * self._encode_int(int(x)) # <<<<<<<<<<<<<< |
3264 | @@ -4124,7 +4124,7 @@ | |||
3265 | 4124 | goto __pyx_L9; | 4124 | goto __pyx_L9; |
3266 | 4125 | } | 4125 | } |
3267 | 4126 | 4126 | ||
3269 | 4127 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":388 | 4127 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":388 |
3270 | 4128 | * elif PyBool_Check(x): | 4128 | * elif PyBool_Check(x): |
3271 | 4129 | * self._encode_int(int(x)) | 4129 | * self._encode_int(int(x)) |
3272 | 4130 | * elif isinstance(x, Bencached): # <<<<<<<<<<<<<< | 4130 | * elif isinstance(x, Bencached): # <<<<<<<<<<<<<< |
3273 | @@ -4137,7 +4137,7 @@ | |||
3274 | 4137 | __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; | 4137 | __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; |
3275 | 4138 | if (__pyx_t_7) { | 4138 | if (__pyx_t_7) { |
3276 | 4139 | 4139 | ||
3278 | 4140 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":389 | 4140 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":389 |
3279 | 4141 | * self._encode_int(int(x)) | 4141 | * self._encode_int(int(x)) |
3280 | 4142 | * elif isinstance(x, Bencached): | 4142 | * elif isinstance(x, Bencached): |
3281 | 4143 | * self._append_string(x.bencoded) # <<<<<<<<<<<<<< | 4143 | * self._append_string(x.bencoded) # <<<<<<<<<<<<<< |
3282 | @@ -4152,7 +4152,7 @@ | |||
3283 | 4152 | } | 4152 | } |
3284 | 4153 | /*else*/ { | 4153 | /*else*/ { |
3285 | 4154 | 4154 | ||
3287 | 4155 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":391 | 4155 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":391 |
3288 | 4156 | * self._append_string(x.bencoded) | 4156 | * self._append_string(x.bencoded) |
3289 | 4157 | * else: | 4157 | * else: |
3290 | 4158 | * raise TypeError('unsupported type %r' % x) # <<<<<<<<<<<<<< | 4158 | * raise TypeError('unsupported type %r' % x) # <<<<<<<<<<<<<< |
3291 | @@ -4176,7 +4176,7 @@ | |||
3292 | 4176 | __pyx_L9:; | 4176 | __pyx_L9:; |
3293 | 4177 | } | 4177 | } |
3294 | 4178 | 4178 | ||
3296 | 4179 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":393 | 4179 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":393 |
3297 | 4180 | * raise TypeError('unsupported type %r' % x) | 4180 | * raise TypeError('unsupported type %r' % x) |
3298 | 4181 | * finally: | 4181 | * finally: |
3299 | 4182 | * Py_LeaveRecursiveCall() # <<<<<<<<<<<<<< | 4182 | * Py_LeaveRecursiveCall() # <<<<<<<<<<<<<< |
3300 | @@ -4224,7 +4224,7 @@ | |||
3301 | 4224 | return __pyx_r; | 4224 | return __pyx_r; |
3302 | 4225 | } | 4225 | } |
3303 | 4226 | 4226 | ||
3305 | 4227 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":396 | 4227 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":396 |
3306 | 4228 | * | 4228 | * |
3307 | 4229 | * | 4229 | * |
3308 | 4230 | * def bencode(x): # <<<<<<<<<<<<<< | 4230 | * def bencode(x): # <<<<<<<<<<<<<< |
3309 | @@ -4244,7 +4244,7 @@ | |||
3310 | 4244 | __pyx_self = __pyx_self; | 4244 | __pyx_self = __pyx_self; |
3311 | 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); |
3312 | 4246 | 4246 | ||
3314 | 4247 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":398 | 4247 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":398 |
3315 | 4248 | * def bencode(x): | 4248 | * def bencode(x): |
3316 | 4249 | * """Encode Python object x to string""" | 4249 | * """Encode Python object x to string""" |
3317 | 4250 | * encoder = Encoder() # <<<<<<<<<<<<<< | 4250 | * encoder = Encoder() # <<<<<<<<<<<<<< |
3318 | @@ -4257,7 +4257,7 @@ | |||
3319 | 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); |
3320 | 4258 | __pyx_t_1 = 0; | 4258 | __pyx_t_1 = 0; |
3321 | 4259 | 4259 | ||
3323 | 4260 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":399 | 4260 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":399 |
3324 | 4261 | * """Encode Python object x to string""" | 4261 | * """Encode Python object x to string""" |
3325 | 4262 | * encoder = Encoder() | 4262 | * encoder = Encoder() |
3326 | 4263 | * encoder.process(x) # <<<<<<<<<<<<<< | 4263 | * encoder.process(x) # <<<<<<<<<<<<<< |
3327 | @@ -4276,7 +4276,7 @@ | |||
3328 | 4276 | __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; | 4276 | __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; |
3329 | 4277 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; | 4277 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; |
3330 | 4278 | 4278 | ||
3332 | 4279 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":400 | 4279 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":400 |
3333 | 4280 | * encoder = Encoder() | 4280 | * encoder = Encoder() |
3334 | 4281 | * encoder.process(x) | 4281 | * encoder.process(x) |
3335 | 4282 | * return str(encoder) # <<<<<<<<<<<<<< | 4282 | * return str(encoder) # <<<<<<<<<<<<<< |
3336 | @@ -4964,7 +4964,7 @@ | |||
3337 | 4964 | /*--- Function import code ---*/ | 4964 | /*--- Function import code ---*/ |
3338 | 4965 | /*--- Execution code ---*/ | 4965 | /*--- Execution code ---*/ |
3339 | 4966 | 4966 | ||
3341 | 4967 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":66 | 4967 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":66 |
3342 | 4968 | * import_static_tuple_c | 4968 | * import_static_tuple_c |
3343 | 4969 | * | 4969 | * |
3344 | 4970 | * import_static_tuple_c() # <<<<<<<<<<<<<< | 4970 | * import_static_tuple_c() # <<<<<<<<<<<<<< |
3345 | @@ -4973,7 +4973,7 @@ | |||
3346 | 4973 | */ | 4973 | */ |
3347 | 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;} |
3348 | 4975 | 4975 | ||
3350 | 4976 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":233 | 4976 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":233 |
3351 | 4977 | * | 4977 | * |
3352 | 4978 | * | 4978 | * |
3353 | 4979 | * class Bencached(object): # <<<<<<<<<<<<<< | 4979 | * class Bencached(object): # <<<<<<<<<<<<<< |
3354 | @@ -4991,7 +4991,7 @@ | |||
3355 | 4991 | __Pyx_GOTREF(__pyx_t_4); | 4991 | __Pyx_GOTREF(__pyx_t_4); |
3356 | 4992 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; | 4992 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; |
3357 | 4993 | 4993 | ||
3359 | 4994 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":234 | 4994 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":234 |
3360 | 4995 | * | 4995 | * |
3361 | 4996 | * class Bencached(object): | 4996 | * class Bencached(object): |
3362 | 4997 | * __slots__ = ['bencoded'] # <<<<<<<<<<<<<< | 4997 | * __slots__ = ['bencoded'] # <<<<<<<<<<<<<< |
3363 | @@ -5006,7 +5006,7 @@ | |||
3364 | 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;} |
3365 | 5007 | __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; | 5007 | __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; |
3366 | 5008 | 5008 | ||
3368 | 5009 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":236 | 5009 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":236 |
3369 | 5010 | * __slots__ = ['bencoded'] | 5010 | * __slots__ = ['bencoded'] |
3370 | 5011 | * | 5011 | * |
3371 | 5012 | * def __init__(self, s): # <<<<<<<<<<<<<< | 5012 | * def __init__(self, s): # <<<<<<<<<<<<<< |
3372 | @@ -5024,7 +5024,7 @@ | |||
3373 | 5024 | __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; | 5024 | __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; |
3374 | 5025 | __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; | 5025 | __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; |
3375 | 5026 | 5026 | ||
3377 | 5027 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":253 | 5027 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":253 |
3378 | 5028 | * cdef readonly int maxsize | 5028 | * cdef readonly int maxsize |
3379 | 5029 | * | 5029 | * |
3380 | 5030 | * def __init__(self, int maxsize=INITSIZE): # <<<<<<<<<<<<<< | 5030 | * def __init__(self, int maxsize=INITSIZE): # <<<<<<<<<<<<<< |
3381 | @@ -5033,7 +5033,7 @@ | |||
3382 | 5033 | */ | 5033 | */ |
3383 | 5034 | __pyx_k_15 = __pyx_e_6bzrlib_12_bencode_pyx_INITSIZE; | 5034 | __pyx_k_15 = __pyx_e_6bzrlib_12_bencode_pyx_INITSIZE; |
3384 | 5035 | 5035 | ||
3386 | 5036 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_bencode_pyx.pyx":1 | 5036 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_bencode_pyx.pyx":1 |
3387 | 5037 | * # Copyright (C) 2007, 2009, 2010 Canonical Ltd # <<<<<<<<<<<<<< | 5037 | * # Copyright (C) 2007, 2009, 2010 Canonical Ltd # <<<<<<<<<<<<<< |
3388 | 5038 | * # | 5038 | * # |
3389 | 5039 | * # This program is free software; you can redistribute it and/or modify | 5039 | * # This program is free software; you can redistribute it and/or modify |
3390 | 5040 | 5040 | ||
3391 | === modified file 'bzrlib/_btree_serializer_pyx.c' | |||
3392 | --- bzrlib/_btree_serializer_pyx.c 2011-08-31 15:04:43 +0000 | |||
3393 | +++ bzrlib/_btree_serializer_pyx.c 2011-11-03 14:37:19 +0000 | |||
3394 | @@ -1,4 +1,4 @@ | |||
3396 | 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 */ |
3397 | 2 | 2 | ||
3398 | 3 | #define PY_SSIZE_T_CLEAN | 3 | #define PY_SSIZE_T_CLEAN |
3399 | 4 | #include "Python.h" | 4 | #include "Python.h" |
3400 | @@ -279,7 +279,7 @@ | |||
3401 | 279 | 279 | ||
3402 | 280 | /* Type declarations */ | 280 | /* Type declarations */ |
3403 | 281 | 281 | ||
3405 | 282 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":337 | 282 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":337 |
3406 | 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. |
3407 | 284 | * # However, that leads to thread-safety issues, etc. | 284 | * # However, that leads to thread-safety issues, etc. |
3408 | 285 | * ctypedef struct gc_chk_sha1_record: # <<<<<<<<<<<<<< | 285 | * ctypedef struct gc_chk_sha1_record: # <<<<<<<<<<<<<< |
3409 | @@ -295,7 +295,7 @@ | |||
3410 | 295 | char sha1[20]; | 295 | char sha1[20]; |
3411 | 296 | } __pyx_t_6bzrlib_21_btree_serializer_pyx_gc_chk_sha1_record; | 296 | } __pyx_t_6bzrlib_21_btree_serializer_pyx_gc_chk_sha1_record; |
3412 | 297 | 297 | ||
3414 | 298 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":123 | 298 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":123 |
3415 | 299 | * | 299 | * |
3416 | 300 | * | 300 | * |
3417 | 301 | * cdef class BTreeLeafParser: # <<<<<<<<<<<<<< | 301 | * cdef class BTreeLeafParser: # <<<<<<<<<<<<<< |
3418 | @@ -316,7 +316,7 @@ | |||
3419 | 316 | int _header_found; | 316 | int _header_found; |
3420 | 317 | }; | 317 | }; |
3421 | 318 | 318 | ||
3423 | 319 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":518 | 319 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":518 |
3424 | 320 | * | 320 | * |
3425 | 321 | * | 321 | * |
3426 | 322 | * cdef class GCCHKSHA1LeafNode: # <<<<<<<<<<<<<< | 322 | * cdef class GCCHKSHA1LeafNode: # <<<<<<<<<<<<<< |
3427 | @@ -349,7 +349,7 @@ | |||
3428 | 349 | static struct __pyx_vtabstruct_6bzrlib_21_btree_serializer_pyx_GCCHKSHA1LeafNode *__pyx_vtabptr_6bzrlib_21_btree_serializer_pyx_GCCHKSHA1LeafNode; | 349 | static struct __pyx_vtabstruct_6bzrlib_21_btree_serializer_pyx_GCCHKSHA1LeafNode *__pyx_vtabptr_6bzrlib_21_btree_serializer_pyx_GCCHKSHA1LeafNode; |
3429 | 350 | 350 | ||
3430 | 351 | 351 | ||
3432 | 352 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":123 | 352 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":123 |
3433 | 353 | * | 353 | * |
3434 | 354 | * | 354 | * |
3435 | 355 | * cdef class BTreeLeafParser: # <<<<<<<<<<<<<< | 355 | * cdef class BTreeLeafParser: # <<<<<<<<<<<<<< |
3436 | @@ -749,7 +749,7 @@ | |||
3437 | 749 | static PyObject *__pyx_int_0; | 749 | static PyObject *__pyx_int_0; |
3438 | 750 | static PyObject *__pyx_int_1; | 750 | static PyObject *__pyx_int_1; |
3439 | 751 | 751 | ||
3441 | 752 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":81 | 752 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":81 |
3442 | 753 | * | 753 | * |
3443 | 754 | * # TODO: Find some way to import this from _dirstate_helpers | 754 | * # TODO: Find some way to import this from _dirstate_helpers |
3444 | 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 # <<<<<<<<<<<<<< |
3445 | @@ -764,7 +764,7 @@ | |||
3446 | 764 | int __pyx_t_1; | 764 | int __pyx_t_1; |
3447 | 765 | __Pyx_RefNannySetupContext("_my_memrchr"); | 765 | __Pyx_RefNannySetupContext("_my_memrchr"); |
3448 | 766 | 766 | ||
3450 | 767 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":87 | 767 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":87 |
3451 | 768 | * cdef char *start | 768 | * cdef char *start |
3452 | 769 | * | 769 | * |
3453 | 770 | * start = <char*>s # <<<<<<<<<<<<<< | 770 | * start = <char*>s # <<<<<<<<<<<<<< |
3454 | @@ -773,7 +773,7 @@ | |||
3455 | 773 | */ | 773 | */ |
3456 | 774 | __pyx_v_start = ((char *)__pyx_v_s); | 774 | __pyx_v_start = ((char *)__pyx_v_s); |
3457 | 775 | 775 | ||
3459 | 776 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":88 | 776 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":88 |
3460 | 777 | * | 777 | * |
3461 | 778 | * start = <char*>s | 778 | * start = <char*>s |
3462 | 779 | * pos = start + n - 1 # <<<<<<<<<<<<<< | 779 | * pos = start + n - 1 # <<<<<<<<<<<<<< |
3463 | @@ -782,7 +782,7 @@ | |||
3464 | 782 | */ | 782 | */ |
3465 | 783 | __pyx_v_pos = ((__pyx_v_start + __pyx_v_n) - 1); | 783 | __pyx_v_pos = ((__pyx_v_start + __pyx_v_n) - 1); |
3466 | 784 | 784 | ||
3468 | 785 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":89 | 785 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":89 |
3469 | 786 | * start = <char*>s | 786 | * start = <char*>s |
3470 | 787 | * pos = start + n - 1 | 787 | * pos = start + n - 1 |
3471 | 788 | * while pos >= start: # <<<<<<<<<<<<<< | 788 | * while pos >= start: # <<<<<<<<<<<<<< |
3472 | @@ -793,7 +793,7 @@ | |||
3473 | 793 | __pyx_t_1 = (__pyx_v_pos >= __pyx_v_start); | 793 | __pyx_t_1 = (__pyx_v_pos >= __pyx_v_start); |
3474 | 794 | if (!__pyx_t_1) break; | 794 | if (!__pyx_t_1) break; |
3475 | 795 | 795 | ||
3477 | 796 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":90 | 796 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":90 |
3478 | 797 | * pos = start + n - 1 | 797 | * pos = start + n - 1 |
3479 | 798 | * while pos >= start: | 798 | * while pos >= start: |
3480 | 799 | * if pos[0] == c: # <<<<<<<<<<<<<< | 799 | * if pos[0] == c: # <<<<<<<<<<<<<< |
3481 | @@ -803,7 +803,7 @@ | |||
3482 | 803 | __pyx_t_1 = ((__pyx_v_pos[0]) == __pyx_v_c); | 803 | __pyx_t_1 = ((__pyx_v_pos[0]) == __pyx_v_c); |
3483 | 804 | if (__pyx_t_1) { | 804 | if (__pyx_t_1) { |
3484 | 805 | 805 | ||
3486 | 806 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":91 | 806 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":91 |
3487 | 807 | * while pos >= start: | 807 | * while pos >= start: |
3488 | 808 | * if pos[0] == c: | 808 | * if pos[0] == c: |
3489 | 809 | * return <void*>pos # <<<<<<<<<<<<<< | 809 | * return <void*>pos # <<<<<<<<<<<<<< |
3490 | @@ -816,7 +816,7 @@ | |||
3491 | 816 | } | 816 | } |
3492 | 817 | __pyx_L5:; | 817 | __pyx_L5:; |
3493 | 818 | 818 | ||
3495 | 819 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":92 | 819 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":92 |
3496 | 820 | * if pos[0] == c: | 820 | * if pos[0] == c: |
3497 | 821 | * return <void*>pos | 821 | * return <void*>pos |
3498 | 822 | * pos = pos - 1 # <<<<<<<<<<<<<< | 822 | * pos = pos - 1 # <<<<<<<<<<<<<< |
3499 | @@ -826,7 +826,7 @@ | |||
3500 | 826 | __pyx_v_pos = (__pyx_v_pos - 1); | 826 | __pyx_v_pos = (__pyx_v_pos - 1); |
3501 | 827 | } | 827 | } |
3502 | 828 | 828 | ||
3504 | 829 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":93 | 829 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":93 |
3505 | 830 | * return <void*>pos | 830 | * return <void*>pos |
3506 | 831 | * pos = pos - 1 | 831 | * pos = pos - 1 |
3507 | 832 | * return NULL # <<<<<<<<<<<<<< | 832 | * return NULL # <<<<<<<<<<<<<< |
3508 | @@ -842,7 +842,7 @@ | |||
3509 | 842 | return __pyx_r; | 842 | return __pyx_r; |
3510 | 843 | } | 843 | } |
3511 | 844 | 844 | ||
3513 | 845 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":97 | 845 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":97 |
3514 | 846 | * | 846 | * |
3515 | 847 | * # TODO: Import this from _dirstate_helpers when it is merged | 847 | * # TODO: Import this from _dirstate_helpers when it is merged |
3516 | 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): # <<<<<<<<<<<<<< |
3517 | @@ -858,7 +858,7 @@ | |||
3518 | 858 | PyObject *__pyx_t_4 = NULL; | 858 | PyObject *__pyx_t_4 = NULL; |
3519 | 859 | __Pyx_RefNannySetupContext("safe_string_from_size"); | 859 | __Pyx_RefNannySetupContext("safe_string_from_size"); |
3520 | 860 | 860 | ||
3522 | 861 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":98 | 861 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":98 |
3523 | 862 | * # TODO: Import this from _dirstate_helpers when it is merged | 862 | * # TODO: Import this from _dirstate_helpers when it is merged |
3524 | 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): |
3525 | 864 | * if size < 0: # <<<<<<<<<<<<<< | 864 | * if size < 0: # <<<<<<<<<<<<<< |
3526 | @@ -868,7 +868,7 @@ | |||
3527 | 868 | __pyx_t_1 = (__pyx_v_size < 0); | 868 | __pyx_t_1 = (__pyx_v_size < 0); |
3528 | 869 | if (__pyx_t_1) { | 869 | if (__pyx_t_1) { |
3529 | 870 | 870 | ||
3531 | 871 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":101 | 871 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":101 |
3532 | 872 | * raise AssertionError( | 872 | * raise AssertionError( |
3533 | 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' |
3534 | 874 | * % (size, <int>s)) # <<<<<<<<<<<<<< | 874 | * % (size, <int>s)) # <<<<<<<<<<<<<< |
3535 | @@ -905,7 +905,7 @@ | |||
3536 | 905 | } | 905 | } |
3537 | 906 | __pyx_L3:; | 906 | __pyx_L3:; |
3538 | 907 | 907 | ||
3540 | 908 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":102 | 908 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":102 |
3541 | 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' |
3542 | 910 | * % (size, <int>s)) | 910 | * % (size, <int>s)) |
3543 | 911 | * return PyString_FromStringAndSize(s, size) # <<<<<<<<<<<<<< | 911 | * return PyString_FromStringAndSize(s, size) # <<<<<<<<<<<<<< |
3544 | @@ -933,7 +933,7 @@ | |||
3545 | 933 | return __pyx_r; | 933 | return __pyx_r; |
3546 | 934 | } | 934 | } |
3547 | 935 | 935 | ||
3549 | 936 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":105 | 936 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":105 |
3550 | 937 | * | 937 | * |
3551 | 938 | * | 938 | * |
3552 | 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): # <<<<<<<<<<<<<< |
3553 | @@ -952,7 +952,7 @@ | |||
3554 | 952 | __Pyx_RefNannySetupContext("safe_interned_string_from_size"); | 952 | __Pyx_RefNannySetupContext("safe_interned_string_from_size"); |
3555 | 953 | __pyx_v_result = Py_None; __Pyx_INCREF(Py_None); | 953 | __pyx_v_result = Py_None; __Pyx_INCREF(Py_None); |
3556 | 954 | 954 | ||
3558 | 955 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":107 | 955 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":107 |
3559 | 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): |
3560 | 957 | * cdef PyObject *py_str | 957 | * cdef PyObject *py_str |
3561 | 958 | * if size < 0: # <<<<<<<<<<<<<< | 958 | * if size < 0: # <<<<<<<<<<<<<< |
3562 | @@ -962,7 +962,7 @@ | |||
3563 | 962 | __pyx_t_1 = (__pyx_v_size < 0); | 962 | __pyx_t_1 = (__pyx_v_size < 0); |
3564 | 963 | if (__pyx_t_1) { | 963 | if (__pyx_t_1) { |
3565 | 964 | 964 | ||
3567 | 965 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":110 | 965 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":110 |
3568 | 966 | * raise AssertionError( | 966 | * raise AssertionError( |
3569 | 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' |
3570 | 968 | * % (size, <int>s)) # <<<<<<<<<<<<<< | 968 | * % (size, <int>s)) # <<<<<<<<<<<<<< |
3571 | @@ -999,7 +999,7 @@ | |||
3572 | 999 | } | 999 | } |
3573 | 1000 | __pyx_L3:; | 1000 | __pyx_L3:; |
3574 | 1001 | 1001 | ||
3576 | 1002 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":111 | 1002 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":111 |
3577 | 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' |
3578 | 1004 | * % (size, <int>s)) | 1004 | * % (size, <int>s)) |
3579 | 1005 | * py_str = PyString_FromStringAndSize_ptr(s, size) # <<<<<<<<<<<<<< | 1005 | * py_str = PyString_FromStringAndSize_ptr(s, size) # <<<<<<<<<<<<<< |
3580 | @@ -1008,7 +1008,7 @@ | |||
3581 | 1008 | */ | 1008 | */ |
3582 | 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); |
3583 | 1010 | 1010 | ||
3585 | 1011 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":112 | 1011 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":112 |
3586 | 1012 | * % (size, <int>s)) | 1012 | * % (size, <int>s)) |
3587 | 1013 | * py_str = PyString_FromStringAndSize_ptr(s, size) | 1013 | * py_str = PyString_FromStringAndSize_ptr(s, size) |
3588 | 1014 | * PyString_InternInPlace(&py_str) # <<<<<<<<<<<<<< | 1014 | * PyString_InternInPlace(&py_str) # <<<<<<<<<<<<<< |
3589 | @@ -1017,7 +1017,7 @@ | |||
3590 | 1017 | */ | 1017 | */ |
3591 | 1018 | PyString_InternInPlace((&__pyx_v_py_str)); | 1018 | PyString_InternInPlace((&__pyx_v_py_str)); |
3592 | 1019 | 1019 | ||
3594 | 1020 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":113 | 1020 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":113 |
3595 | 1021 | * py_str = PyString_FromStringAndSize_ptr(s, size) | 1021 | * py_str = PyString_FromStringAndSize_ptr(s, size) |
3596 | 1022 | * PyString_InternInPlace(&py_str) | 1022 | * PyString_InternInPlace(&py_str) |
3597 | 1023 | * result = <object>py_str # <<<<<<<<<<<<<< | 1023 | * result = <object>py_str # <<<<<<<<<<<<<< |
3598 | @@ -1028,7 +1028,7 @@ | |||
3599 | 1028 | __Pyx_DECREF(__pyx_v_result); | 1028 | __Pyx_DECREF(__pyx_v_result); |
3600 | 1029 | __pyx_v_result = ((PyObject *)__pyx_v_py_str); | 1029 | __pyx_v_result = ((PyObject *)__pyx_v_py_str); |
3601 | 1030 | 1030 | ||
3603 | 1031 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":116 | 1031 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":116 |
3604 | 1032 | * # Casting a PyObject* to an <object> triggers an INCREF from Pyrex, so we | 1032 | * # Casting a PyObject* to an <object> triggers an INCREF from Pyrex, so we |
3605 | 1033 | * # DECREF it to avoid geting immortal strings | 1033 | * # DECREF it to avoid geting immortal strings |
3606 | 1034 | * Py_DECREF_ptr(py_str) # <<<<<<<<<<<<<< | 1034 | * Py_DECREF_ptr(py_str) # <<<<<<<<<<<<<< |
3607 | @@ -1037,7 +1037,7 @@ | |||
3608 | 1037 | */ | 1037 | */ |
3609 | 1038 | Py_DECREF(__pyx_v_py_str); | 1038 | Py_DECREF(__pyx_v_py_str); |
3610 | 1039 | 1039 | ||
3612 | 1040 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":117 | 1040 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":117 |
3613 | 1041 | * # DECREF it to avoid geting immortal strings | 1041 | * # DECREF it to avoid geting immortal strings |
3614 | 1042 | * Py_DECREF_ptr(py_str) | 1042 | * Py_DECREF_ptr(py_str) |
3615 | 1043 | * return result # <<<<<<<<<<<<<< | 1043 | * return result # <<<<<<<<<<<<<< |
3616 | @@ -1064,7 +1064,7 @@ | |||
3617 | 1064 | return __pyx_r; | 1064 | return __pyx_r; |
3618 | 1065 | } | 1065 | } |
3619 | 1066 | 1066 | ||
3621 | 1067 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":153 | 1067 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":153 |
3622 | 1068 | * cdef int _header_found | 1068 | * cdef int _header_found |
3623 | 1069 | * | 1069 | * |
3624 | 1070 | * def __init__(self, bytes, key_length, ref_list_length): # <<<<<<<<<<<<<< | 1070 | * def __init__(self, bytes, key_length, ref_list_length): # <<<<<<<<<<<<<< |
3625 | @@ -1132,7 +1132,7 @@ | |||
3626 | 1132 | return -1; | 1132 | return -1; |
3627 | 1133 | __pyx_L4_argument_unpacking_done:; | 1133 | __pyx_L4_argument_unpacking_done:; |
3628 | 1134 | 1134 | ||
3630 | 1135 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":154 | 1135 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":154 |
3631 | 1136 | * | 1136 | * |
3632 | 1137 | * def __init__(self, bytes, key_length, ref_list_length): | 1137 | * def __init__(self, bytes, key_length, ref_list_length): |
3633 | 1138 | * self.bytes = bytes # <<<<<<<<<<<<<< | 1138 | * self.bytes = bytes # <<<<<<<<<<<<<< |
3634 | @@ -1145,7 +1145,7 @@ | |||
3635 | 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); |
3636 | 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; |
3637 | 1147 | 1147 | ||
3639 | 1148 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":155 | 1148 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":155 |
3640 | 1149 | * def __init__(self, bytes, key_length, ref_list_length): | 1149 | * def __init__(self, bytes, key_length, ref_list_length): |
3641 | 1150 | * self.bytes = bytes | 1150 | * self.bytes = bytes |
3642 | 1151 | * self.key_length = key_length # <<<<<<<<<<<<<< | 1151 | * self.key_length = key_length # <<<<<<<<<<<<<< |
3643 | @@ -1155,7 +1155,7 @@ | |||
3644 | 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;} |
3645 | 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; |
3646 | 1157 | 1157 | ||
3648 | 1158 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":156 | 1158 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":156 |
3649 | 1159 | * self.bytes = bytes | 1159 | * self.bytes = bytes |
3650 | 1160 | * self.key_length = key_length | 1160 | * self.key_length = key_length |
3651 | 1161 | * self.ref_list_length = ref_list_length # <<<<<<<<<<<<<< | 1161 | * self.ref_list_length = ref_list_length # <<<<<<<<<<<<<< |
3652 | @@ -1165,7 +1165,7 @@ | |||
3653 | 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;} |
3654 | 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; |
3655 | 1167 | 1167 | ||
3657 | 1168 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":157 | 1168 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":157 |
3658 | 1169 | * self.key_length = key_length | 1169 | * self.key_length = key_length |
3659 | 1170 | * self.ref_list_length = ref_list_length | 1170 | * self.ref_list_length = ref_list_length |
3660 | 1171 | * self.keys = [] # <<<<<<<<<<<<<< | 1171 | * self.keys = [] # <<<<<<<<<<<<<< |
3661 | @@ -1180,7 +1180,7 @@ | |||
3662 | 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); |
3663 | 1181 | __pyx_t_2 = 0; | 1181 | __pyx_t_2 = 0; |
3664 | 1182 | 1182 | ||
3666 | 1183 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":158 | 1183 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":158 |
3667 | 1184 | * self.ref_list_length = ref_list_length | 1184 | * self.ref_list_length = ref_list_length |
3668 | 1185 | * self.keys = [] | 1185 | * self.keys = [] |
3669 | 1186 | * self._cur_str = NULL # <<<<<<<<<<<<<< | 1186 | * self._cur_str = NULL # <<<<<<<<<<<<<< |
3670 | @@ -1189,7 +1189,7 @@ | |||
3671 | 1189 | */ | 1189 | */ |
3672 | 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; |
3673 | 1191 | 1191 | ||
3675 | 1192 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":159 | 1192 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":159 |
3676 | 1193 | * self.keys = [] | 1193 | * self.keys = [] |
3677 | 1194 | * self._cur_str = NULL | 1194 | * self._cur_str = NULL |
3678 | 1195 | * self._end_str = NULL # <<<<<<<<<<<<<< | 1195 | * self._end_str = NULL # <<<<<<<<<<<<<< |
3679 | @@ -1198,7 +1198,7 @@ | |||
3680 | 1198 | */ | 1198 | */ |
3681 | 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; |
3682 | 1200 | 1200 | ||
3684 | 1201 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":160 | 1201 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":160 |
3685 | 1202 | * self._cur_str = NULL | 1202 | * self._cur_str = NULL |
3686 | 1203 | * self._end_str = NULL | 1203 | * self._end_str = NULL |
3687 | 1204 | * self._header_found = 0 # <<<<<<<<<<<<<< | 1204 | * self._header_found = 0 # <<<<<<<<<<<<<< |
3688 | @@ -1218,7 +1218,7 @@ | |||
3689 | 1218 | return __pyx_r; | 1218 | return __pyx_r; |
3690 | 1219 | } | 1219 | } |
3691 | 1220 | 1220 | ||
3693 | 1221 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":163 | 1221 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":163 |
3694 | 1222 | * # keys are tuples | 1222 | * # keys are tuples |
3695 | 1223 | * | 1223 | * |
3696 | 1224 | * cdef extract_key(self, char * last): # <<<<<<<<<<<<<< | 1224 | * cdef extract_key(self, char * last): # <<<<<<<<<<<<<< |
3697 | @@ -1245,7 +1245,7 @@ | |||
3698 | 1245 | __pyx_v_failure_string = Py_None; __Pyx_INCREF(Py_None); | 1245 | __pyx_v_failure_string = Py_None; __Pyx_INCREF(Py_None); |
3699 | 1246 | __pyx_v_key_element = Py_None; __Pyx_INCREF(Py_None); | 1246 | __pyx_v_key_element = Py_None; __Pyx_INCREF(Py_None); |
3700 | 1247 | 1247 | ||
3702 | 1248 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":173 | 1248 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":173 |
3703 | 1249 | * cdef StaticTuple key | 1249 | * cdef StaticTuple key |
3704 | 1250 | * | 1250 | * |
3705 | 1251 | * key = StaticTuple_New(self.key_length) # <<<<<<<<<<<<<< | 1251 | * key = StaticTuple_New(self.key_length) # <<<<<<<<<<<<<< |
3706 | @@ -1258,7 +1258,7 @@ | |||
3707 | 1258 | __pyx_v_key = ((StaticTuple *)__pyx_t_1); | 1258 | __pyx_v_key = ((StaticTuple *)__pyx_t_1); |
3708 | 1259 | __pyx_t_1 = 0; | 1259 | __pyx_t_1 = 0; |
3709 | 1260 | 1260 | ||
3711 | 1261 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":174 | 1261 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":174 |
3712 | 1262 | * | 1262 | * |
3713 | 1263 | * key = StaticTuple_New(self.key_length) | 1263 | * key = StaticTuple_New(self.key_length) |
3714 | 1264 | * for loop_counter from 0 <= loop_counter < self.key_length: # <<<<<<<<<<<<<< | 1264 | * for loop_counter from 0 <= loop_counter < self.key_length: # <<<<<<<<<<<<<< |
3715 | @@ -1268,7 +1268,7 @@ | |||
3716 | 1268 | __pyx_t_2 = __pyx_v_self->key_length; | 1268 | __pyx_t_2 = __pyx_v_self->key_length; |
3717 | 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++) { |
3718 | 1270 | 1270 | ||
3720 | 1271 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":176 | 1271 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":176 |
3721 | 1272 | * for loop_counter from 0 <= loop_counter < self.key_length: | 1272 | * for loop_counter from 0 <= loop_counter < self.key_length: |
3722 | 1273 | * # grab a key segment | 1273 | * # grab a key segment |
3723 | 1274 | * temp_ptr = <char*>memchr(self._start, c'\0', last - self._start) # <<<<<<<<<<<<<< | 1274 | * temp_ptr = <char*>memchr(self._start, c'\0', last - self._start) # <<<<<<<<<<<<<< |
3724 | @@ -1277,7 +1277,7 @@ | |||
3725 | 1277 | */ | 1277 | */ |
3726 | 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))); |
3727 | 1279 | 1279 | ||
3729 | 1280 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":177 | 1280 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":177 |
3730 | 1281 | * # grab a key segment | 1281 | * # grab a key segment |
3731 | 1282 | * temp_ptr = <char*>memchr(self._start, c'\0', last - self._start) | 1282 | * temp_ptr = <char*>memchr(self._start, c'\0', last - self._start) |
3732 | 1283 | * if temp_ptr == NULL: # <<<<<<<<<<<<<< | 1283 | * if temp_ptr == NULL: # <<<<<<<<<<<<<< |
3733 | @@ -1287,7 +1287,7 @@ | |||
3734 | 1287 | __pyx_t_3 = (__pyx_v_temp_ptr == NULL); | 1287 | __pyx_t_3 = (__pyx_v_temp_ptr == NULL); |
3735 | 1288 | if (__pyx_t_3) { | 1288 | if (__pyx_t_3) { |
3736 | 1289 | 1289 | ||
3738 | 1290 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":178 | 1290 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":178 |
3739 | 1291 | * temp_ptr = <char*>memchr(self._start, c'\0', last - self._start) | 1291 | * temp_ptr = <char*>memchr(self._start, c'\0', last - self._start) |
3740 | 1292 | * if temp_ptr == NULL: | 1292 | * if temp_ptr == NULL: |
3741 | 1293 | * if loop_counter + 1 == self.key_length: # <<<<<<<<<<<<<< | 1293 | * if loop_counter + 1 == self.key_length: # <<<<<<<<<<<<<< |
3742 | @@ -1297,7 +1297,7 @@ | |||
3743 | 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); |
3744 | 1298 | if (__pyx_t_3) { | 1298 | if (__pyx_t_3) { |
3745 | 1299 | 1299 | ||
3747 | 1300 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":180 | 1300 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":180 |
3748 | 1301 | * if loop_counter + 1 == self.key_length: | 1301 | * if loop_counter + 1 == self.key_length: |
3749 | 1302 | * # capture to last | 1302 | * # capture to last |
3750 | 1303 | * temp_ptr = last # <<<<<<<<<<<<<< | 1303 | * temp_ptr = last # <<<<<<<<<<<<<< |
3751 | @@ -1309,7 +1309,7 @@ | |||
3752 | 1309 | } | 1309 | } |
3753 | 1310 | /*else*/ { | 1310 | /*else*/ { |
3754 | 1311 | 1311 | ||
3756 | 1312 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":185 | 1312 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":185 |
3757 | 1313 | * failure_string = ("invalid key, wanted segment from " + | 1313 | * failure_string = ("invalid key, wanted segment from " + |
3758 | 1314 | * repr(safe_string_from_size(self._start, | 1314 | * repr(safe_string_from_size(self._start, |
3759 | 1315 | * last - self._start))) # <<<<<<<<<<<<<< | 1315 | * last - self._start))) # <<<<<<<<<<<<<< |
3760 | @@ -1328,7 +1328,7 @@ | |||
3761 | 1328 | __pyx_v_failure_string = __pyx_t_1; | 1328 | __pyx_v_failure_string = __pyx_t_1; |
3762 | 1329 | __pyx_t_1 = 0; | 1329 | __pyx_t_1 = 0; |
3763 | 1330 | 1330 | ||
3765 | 1331 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":186 | 1331 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":186 |
3766 | 1332 | * repr(safe_string_from_size(self._start, | 1332 | * repr(safe_string_from_size(self._start, |
3767 | 1333 | * last - self._start))) | 1333 | * last - self._start))) |
3768 | 1334 | * raise AssertionError(failure_string) # <<<<<<<<<<<<<< | 1334 | * raise AssertionError(failure_string) # <<<<<<<<<<<<<< |
3769 | @@ -1352,7 +1352,7 @@ | |||
3770 | 1352 | } | 1352 | } |
3771 | 1353 | __pyx_L5:; | 1353 | __pyx_L5:; |
3772 | 1354 | 1354 | ||
3774 | 1355 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":188 | 1355 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":188 |
3775 | 1356 | * raise AssertionError(failure_string) | 1356 | * raise AssertionError(failure_string) |
3776 | 1357 | * # capture the key string | 1357 | * # capture the key string |
3777 | 1358 | * if (self.key_length == 1 # <<<<<<<<<<<<<< | 1358 | * if (self.key_length == 1 # <<<<<<<<<<<<<< |
3778 | @@ -1362,7 +1362,7 @@ | |||
3779 | 1362 | __pyx_t_3 = (__pyx_v_self->key_length == 1); | 1362 | __pyx_t_3 = (__pyx_v_self->key_length == 1); |
3780 | 1363 | if (__pyx_t_3) { | 1363 | if (__pyx_t_3) { |
3781 | 1364 | 1364 | ||
3783 | 1365 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":189 | 1365 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":189 |
3784 | 1366 | * # capture the key string | 1366 | * # capture the key string |
3785 | 1367 | * if (self.key_length == 1 | 1367 | * if (self.key_length == 1 |
3786 | 1368 | * and (temp_ptr - self._start) == 45 # <<<<<<<<<<<<<< | 1368 | * and (temp_ptr - self._start) == 45 # <<<<<<<<<<<<<< |
3787 | @@ -1372,7 +1372,7 @@ | |||
3788 | 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); |
3789 | 1373 | if (__pyx_t_5) { | 1373 | if (__pyx_t_5) { |
3790 | 1374 | 1374 | ||
3792 | 1375 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":190 | 1375 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":190 |
3793 | 1376 | * if (self.key_length == 1 | 1376 | * if (self.key_length == 1 |
3794 | 1377 | * and (temp_ptr - self._start) == 45 | 1377 | * and (temp_ptr - self._start) == 45 |
3795 | 1378 | * and strncmp(self._start, 'sha1:', 5) == 0): # <<<<<<<<<<<<<< | 1378 | * and strncmp(self._start, 'sha1:', 5) == 0): # <<<<<<<<<<<<<< |
3796 | @@ -1390,7 +1390,7 @@ | |||
3797 | 1390 | } | 1390 | } |
3798 | 1391 | if (__pyx_t_5) { | 1391 | if (__pyx_t_5) { |
3799 | 1392 | 1392 | ||
3801 | 1393 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":192 | 1393 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":192 |
3802 | 1394 | * and strncmp(self._start, 'sha1:', 5) == 0): | 1394 | * and strncmp(self._start, 'sha1:', 5) == 0): |
3803 | 1395 | * key_element = safe_string_from_size(self._start, | 1395 | * key_element = safe_string_from_size(self._start, |
3804 | 1396 | * temp_ptr - self._start) # <<<<<<<<<<<<<< | 1396 | * temp_ptr - self._start) # <<<<<<<<<<<<<< |
3805 | @@ -1406,7 +1406,7 @@ | |||
3806 | 1406 | } | 1406 | } |
3807 | 1407 | /*else*/ { | 1407 | /*else*/ { |
3808 | 1408 | 1408 | ||
3810 | 1409 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":195 | 1409 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":195 |
3811 | 1410 | * else: | 1410 | * else: |
3812 | 1411 | * key_element = safe_interned_string_from_size(self._start, | 1411 | * key_element = safe_interned_string_from_size(self._start, |
3813 | 1412 | * temp_ptr - self._start) # <<<<<<<<<<<<<< | 1412 | * temp_ptr - self._start) # <<<<<<<<<<<<<< |
3814 | @@ -1421,7 +1421,7 @@ | |||
3815 | 1421 | } | 1421 | } |
3816 | 1422 | __pyx_L7:; | 1422 | __pyx_L7:; |
3817 | 1423 | 1423 | ||
3819 | 1424 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":197 | 1424 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":197 |
3820 | 1425 | * temp_ptr - self._start) | 1425 | * temp_ptr - self._start) |
3821 | 1426 | * # advance our pointer | 1426 | * # advance our pointer |
3822 | 1427 | * self._start = temp_ptr + 1 # <<<<<<<<<<<<<< | 1427 | * self._start = temp_ptr + 1 # <<<<<<<<<<<<<< |
3823 | @@ -1430,7 +1430,7 @@ | |||
3824 | 1430 | */ | 1430 | */ |
3825 | 1431 | __pyx_v_self->_start = (__pyx_v_temp_ptr + 1); | 1431 | __pyx_v_self->_start = (__pyx_v_temp_ptr + 1); |
3826 | 1432 | 1432 | ||
3828 | 1433 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":198 | 1433 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":198 |
3829 | 1434 | * # advance our pointer | 1434 | * # advance our pointer |
3830 | 1435 | * self._start = temp_ptr + 1 | 1435 | * self._start = temp_ptr + 1 |
3831 | 1436 | * Py_INCREF(key_element) # <<<<<<<<<<<<<< | 1436 | * Py_INCREF(key_element) # <<<<<<<<<<<<<< |
3832 | @@ -1439,7 +1439,7 @@ | |||
3833 | 1439 | */ | 1439 | */ |
3834 | 1440 | Py_INCREF(__pyx_v_key_element); | 1440 | Py_INCREF(__pyx_v_key_element); |
3835 | 1441 | 1441 | ||
3837 | 1442 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":199 | 1442 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":199 |
3838 | 1443 | * self._start = temp_ptr + 1 | 1443 | * self._start = temp_ptr + 1 |
3839 | 1444 | * Py_INCREF(key_element) | 1444 | * Py_INCREF(key_element) |
3840 | 1445 | * StaticTuple_SET_ITEM(key, loop_counter, key_element) # <<<<<<<<<<<<<< | 1445 | * StaticTuple_SET_ITEM(key, loop_counter, key_element) # <<<<<<<<<<<<<< |
3841 | @@ -1449,7 +1449,7 @@ | |||
3842 | 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); |
3843 | 1450 | } | 1450 | } |
3844 | 1451 | 1451 | ||
3846 | 1452 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":200 | 1452 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":200 |
3847 | 1453 | * Py_INCREF(key_element) | 1453 | * Py_INCREF(key_element) |
3848 | 1454 | * StaticTuple_SET_ITEM(key, loop_counter, key_element) | 1454 | * StaticTuple_SET_ITEM(key, loop_counter, key_element) |
3849 | 1455 | * key = StaticTuple_Intern(key) # <<<<<<<<<<<<<< | 1455 | * key = StaticTuple_Intern(key) # <<<<<<<<<<<<<< |
3850 | @@ -1462,7 +1462,7 @@ | |||
3851 | 1462 | __pyx_v_key = ((StaticTuple *)__pyx_t_4); | 1462 | __pyx_v_key = ((StaticTuple *)__pyx_t_4); |
3852 | 1463 | __pyx_t_4 = 0; | 1463 | __pyx_t_4 = 0; |
3853 | 1464 | 1464 | ||
3855 | 1465 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":201 | 1465 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":201 |
3856 | 1466 | * StaticTuple_SET_ITEM(key, loop_counter, key_element) | 1466 | * StaticTuple_SET_ITEM(key, loop_counter, key_element) |
3857 | 1467 | * key = StaticTuple_Intern(key) | 1467 | * key = StaticTuple_Intern(key) |
3858 | 1468 | * return key # <<<<<<<<<<<<<< | 1468 | * return key # <<<<<<<<<<<<<< |
3859 | @@ -1490,7 +1490,7 @@ | |||
3860 | 1490 | return __pyx_r; | 1490 | return __pyx_r; |
3861 | 1491 | } | 1491 | } |
3862 | 1492 | 1492 | ||
3864 | 1493 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":203 | 1493 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":203 |
3865 | 1494 | * return key | 1494 | * return key |
3866 | 1495 | * | 1495 | * |
3867 | 1496 | * cdef int process_line(self) except -1: # <<<<<<<<<<<<<< | 1496 | * cdef int process_line(self) except -1: # <<<<<<<<<<<<<< |
3868 | @@ -1524,7 +1524,7 @@ | |||
3869 | 1524 | __pyx_v_ref_list = Py_None; __Pyx_INCREF(Py_None); | 1524 | __pyx_v_ref_list = Py_None; __Pyx_INCREF(Py_None); |
3870 | 1525 | __pyx_v_node_value = ((StaticTuple *)Py_None); __Pyx_INCREF(Py_None); | 1525 | __pyx_v_node_value = ((StaticTuple *)Py_None); __Pyx_INCREF(Py_None); |
3871 | 1526 | 1526 | ||
3873 | 1527 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":212 | 1527 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":212 |
3874 | 1528 | * cdef Py_ssize_t str_len | 1528 | * cdef Py_ssize_t str_len |
3875 | 1529 | * | 1529 | * |
3876 | 1530 | * self._start = self._cur_str # <<<<<<<<<<<<<< | 1530 | * self._start = self._cur_str # <<<<<<<<<<<<<< |
3877 | @@ -1533,7 +1533,7 @@ | |||
3878 | 1533 | */ | 1533 | */ |
3879 | 1534 | __pyx_v_self->_start = __pyx_v_self->_cur_str; | 1534 | __pyx_v_self->_start = __pyx_v_self->_cur_str; |
3880 | 1535 | 1535 | ||
3882 | 1536 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":214 | 1536 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":214 |
3883 | 1537 | * self._start = self._cur_str | 1537 | * self._start = self._cur_str |
3884 | 1538 | * # Find the next newline | 1538 | * # Find the next newline |
3885 | 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) # <<<<<<<<<<<<<< |
3886 | @@ -1542,7 +1542,7 @@ | |||
3887 | 1542 | */ | 1542 | */ |
3888 | 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))); |
3889 | 1544 | 1544 | ||
3891 | 1545 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":215 | 1545 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":215 |
3892 | 1546 | * # Find the next newline | 1546 | * # Find the next newline |
3893 | 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) |
3894 | 1548 | * if last == NULL: # <<<<<<<<<<<<<< | 1548 | * if last == NULL: # <<<<<<<<<<<<<< |
3895 | @@ -1552,7 +1552,7 @@ | |||
3896 | 1552 | __pyx_t_1 = (__pyx_v_last == NULL); | 1552 | __pyx_t_1 = (__pyx_v_last == NULL); |
3897 | 1553 | if (__pyx_t_1) { | 1553 | if (__pyx_t_1) { |
3898 | 1554 | 1554 | ||
3900 | 1555 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":217 | 1555 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":217 |
3901 | 1556 | * if last == NULL: | 1556 | * if last == NULL: |
3902 | 1557 | * # Process until the end of the file | 1557 | * # Process until the end of the file |
3903 | 1558 | * last = self._end_str # <<<<<<<<<<<<<< | 1558 | * last = self._end_str # <<<<<<<<<<<<<< |
3904 | @@ -1561,7 +1561,7 @@ | |||
3905 | 1561 | */ | 1561 | */ |
3906 | 1562 | __pyx_v_last = __pyx_v_self->_end_str; | 1562 | __pyx_v_last = __pyx_v_self->_end_str; |
3907 | 1563 | 1563 | ||
3909 | 1564 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":218 | 1564 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":218 |
3910 | 1565 | * # Process until the end of the file | 1565 | * # Process until the end of the file |
3911 | 1566 | * last = self._end_str | 1566 | * last = self._end_str |
3912 | 1567 | * self._cur_str = self._end_str # <<<<<<<<<<<<<< | 1567 | * self._cur_str = self._end_str # <<<<<<<<<<<<<< |
3913 | @@ -1573,7 +1573,7 @@ | |||
3914 | 1573 | } | 1573 | } |
3915 | 1574 | /*else*/ { | 1574 | /*else*/ { |
3916 | 1575 | 1575 | ||
3918 | 1576 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":221 | 1576 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":221 |
3919 | 1577 | * else: | 1577 | * else: |
3920 | 1578 | * # And the next string is right after it | 1578 | * # And the next string is right after it |
3921 | 1579 | * self._cur_str = last + 1 # <<<<<<<<<<<<<< | 1579 | * self._cur_str = last + 1 # <<<<<<<<<<<<<< |
3922 | @@ -1584,7 +1584,7 @@ | |||
3923 | 1584 | } | 1584 | } |
3924 | 1585 | __pyx_L3:; | 1585 | __pyx_L3:; |
3925 | 1586 | 1586 | ||
3927 | 1587 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":224 | 1587 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":224 |
3928 | 1588 | * # The last character is right before the '\n' | 1588 | * # The last character is right before the '\n' |
3929 | 1589 | * | 1589 | * |
3930 | 1590 | * if last == self._start: # <<<<<<<<<<<<<< | 1590 | * if last == self._start: # <<<<<<<<<<<<<< |
3931 | @@ -1594,7 +1594,7 @@ | |||
3932 | 1594 | __pyx_t_1 = (__pyx_v_last == __pyx_v_self->_start); | 1594 | __pyx_t_1 = (__pyx_v_last == __pyx_v_self->_start); |
3933 | 1595 | if (__pyx_t_1) { | 1595 | if (__pyx_t_1) { |
3934 | 1596 | 1596 | ||
3936 | 1597 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":226 | 1597 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":226 |
3937 | 1598 | * if last == self._start: | 1598 | * if last == self._start: |
3938 | 1599 | * # parsed it all. | 1599 | * # parsed it all. |
3939 | 1600 | * return 0 # <<<<<<<<<<<<<< | 1600 | * return 0 # <<<<<<<<<<<<<< |
3940 | @@ -1607,7 +1607,7 @@ | |||
3941 | 1607 | } | 1607 | } |
3942 | 1608 | __pyx_L4:; | 1608 | __pyx_L4:; |
3943 | 1609 | 1609 | ||
3945 | 1610 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":227 | 1610 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":227 |
3946 | 1611 | * # parsed it all. | 1611 | * # parsed it all. |
3947 | 1612 | * return 0 | 1612 | * return 0 |
3948 | 1613 | * if last < self._start: # <<<<<<<<<<<<<< | 1613 | * if last < self._start: # <<<<<<<<<<<<<< |
3949 | @@ -1617,7 +1617,7 @@ | |||
3950 | 1617 | __pyx_t_1 = (__pyx_v_last < __pyx_v_self->_start); | 1617 | __pyx_t_1 = (__pyx_v_last < __pyx_v_self->_start); |
3951 | 1618 | if (__pyx_t_1) { | 1618 | if (__pyx_t_1) { |
3952 | 1619 | 1619 | ||
3954 | 1620 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":229 | 1620 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":229 |
3955 | 1621 | * if last < self._start: | 1621 | * if last < self._start: |
3956 | 1622 | * # Unexpected error condition - fail | 1622 | * # Unexpected error condition - fail |
3957 | 1623 | * raise AssertionError("last < self._start") # <<<<<<<<<<<<<< | 1623 | * raise AssertionError("last < self._start") # <<<<<<<<<<<<<< |
3958 | @@ -1639,7 +1639,7 @@ | |||
3959 | 1639 | } | 1639 | } |
3960 | 1640 | __pyx_L5:; | 1640 | __pyx_L5:; |
3961 | 1641 | 1641 | ||
3963 | 1642 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":230 | 1642 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":230 |
3964 | 1643 | * # Unexpected error condition - fail | 1643 | * # Unexpected error condition - fail |
3965 | 1644 | * raise AssertionError("last < self._start") | 1644 | * raise AssertionError("last < self._start") |
3966 | 1645 | * if 0 == self._header_found: # <<<<<<<<<<<<<< | 1645 | * if 0 == self._header_found: # <<<<<<<<<<<<<< |
3967 | @@ -1649,7 +1649,7 @@ | |||
3968 | 1649 | __pyx_t_1 = (0 == __pyx_v_self->_header_found); | 1649 | __pyx_t_1 = (0 == __pyx_v_self->_header_found); |
3969 | 1650 | if (__pyx_t_1) { | 1650 | if (__pyx_t_1) { |
3970 | 1651 | 1651 | ||
3972 | 1652 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":232 | 1652 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":232 |
3973 | 1653 | * if 0 == self._header_found: | 1653 | * if 0 == self._header_found: |
3974 | 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" |
3975 | 1655 | * if strncmp("type=leaf", self._start, last - self._start) == 0: # <<<<<<<<<<<<<< | 1655 | * if strncmp("type=leaf", self._start, last - self._start) == 0: # <<<<<<<<<<<<<< |
3976 | @@ -1659,7 +1659,7 @@ | |||
3977 | 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); |
3978 | 1660 | if (__pyx_t_1) { | 1660 | if (__pyx_t_1) { |
3979 | 1661 | 1661 | ||
3981 | 1662 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":233 | 1662 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":233 |
3982 | 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" |
3983 | 1664 | * if strncmp("type=leaf", self._start, last - self._start) == 0: | 1664 | * if strncmp("type=leaf", self._start, last - self._start) == 0: |
3984 | 1665 | * self._header_found = 1 # <<<<<<<<<<<<<< | 1665 | * self._header_found = 1 # <<<<<<<<<<<<<< |
3985 | @@ -1668,7 +1668,7 @@ | |||
3986 | 1668 | */ | 1668 | */ |
3987 | 1669 | __pyx_v_self->_header_found = 1; | 1669 | __pyx_v_self->_header_found = 1; |
3988 | 1670 | 1670 | ||
3990 | 1671 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":234 | 1671 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":234 |
3991 | 1672 | * if strncmp("type=leaf", self._start, last - self._start) == 0: | 1672 | * if strncmp("type=leaf", self._start, last - self._start) == 0: |
3992 | 1673 | * self._header_found = 1 | 1673 | * self._header_found = 1 |
3993 | 1674 | * return 0 # <<<<<<<<<<<<<< | 1674 | * return 0 # <<<<<<<<<<<<<< |
3994 | @@ -1681,7 +1681,7 @@ | |||
3995 | 1681 | } | 1681 | } |
3996 | 1682 | /*else*/ { | 1682 | /*else*/ { |
3997 | 1683 | 1683 | ||
3999 | 1684 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":237 | 1684 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":237 |
4000 | 1685 | * else: | 1685 | * else: |
4001 | 1686 | * raise AssertionError('Node did not start with "type=leaf": %r' | 1686 | * raise AssertionError('Node did not start with "type=leaf": %r' |
4002 | 1687 | * % (safe_string_from_size(self._start, last - self._start))) # <<<<<<<<<<<<<< | 1687 | * % (safe_string_from_size(self._start, last - self._start))) # <<<<<<<<<<<<<< |
4003 | @@ -1710,7 +1710,7 @@ | |||
4004 | 1710 | } | 1710 | } |
4005 | 1711 | __pyx_L6:; | 1711 | __pyx_L6:; |
4006 | 1712 | 1712 | ||
4008 | 1713 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":239 | 1713 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":239 |
4009 | 1714 | * % (safe_string_from_size(self._start, last - self._start))) | 1714 | * % (safe_string_from_size(self._start, last - self._start))) |
4010 | 1715 | * | 1715 | * |
4011 | 1716 | * key = self.extract_key(last) # <<<<<<<<<<<<<< | 1716 | * key = self.extract_key(last) # <<<<<<<<<<<<<< |
4012 | @@ -1723,7 +1723,7 @@ | |||
4013 | 1723 | __pyx_v_key = __pyx_t_2; | 1723 | __pyx_v_key = __pyx_t_2; |
4014 | 1724 | __pyx_t_2 = 0; | 1724 | __pyx_t_2 = 0; |
4015 | 1725 | 1725 | ||
4017 | 1726 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":241 | 1726 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":241 |
4018 | 1727 | * key = self.extract_key(last) | 1727 | * key = self.extract_key(last) |
4019 | 1728 | * # find the value area | 1728 | * # find the value area |
4020 | 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) # <<<<<<<<<<<<<< |
4021 | @@ -1732,7 +1732,7 @@ | |||
4022 | 1732 | */ | 1732 | */ |
4023 | 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))); |
4024 | 1734 | 1734 | ||
4026 | 1735 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":242 | 1735 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":242 |
4027 | 1736 | * # find the value area | 1736 | * # find the value area |
4028 | 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) |
4029 | 1738 | * if temp_ptr == NULL: # <<<<<<<<<<<<<< | 1738 | * if temp_ptr == NULL: # <<<<<<<<<<<<<< |
4030 | @@ -1742,7 +1742,7 @@ | |||
4031 | 1742 | __pyx_t_1 = (__pyx_v_temp_ptr == NULL); | 1742 | __pyx_t_1 = (__pyx_v_temp_ptr == NULL); |
4032 | 1743 | if (__pyx_t_1) { | 1743 | if (__pyx_t_1) { |
4033 | 1744 | 1744 | ||
4035 | 1745 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":244 | 1745 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":244 |
4036 | 1746 | * if temp_ptr == NULL: | 1746 | * if temp_ptr == NULL: |
4037 | 1747 | * # Invalid line | 1747 | * # Invalid line |
4038 | 1748 | * raise AssertionError("Failed to find the value area") # <<<<<<<<<<<<<< | 1748 | * raise AssertionError("Failed to find the value area") # <<<<<<<<<<<<<< |
4039 | @@ -1764,7 +1764,7 @@ | |||
4040 | 1764 | } | 1764 | } |
4041 | 1765 | /*else*/ { | 1765 | /*else*/ { |
4042 | 1766 | 1766 | ||
4044 | 1767 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":252 | 1767 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":252 |
4045 | 1768 | * # something like '12607215 328306 0 0', which ends up consuming 1MB | 1768 | * # something like '12607215 328306 0 0', which ends up consuming 1MB |
4046 | 1769 | * # of memory, just for those strings. | 1769 | * # of memory, just for those strings. |
4047 | 1770 | * str_len = last - temp_ptr - 1 # <<<<<<<<<<<<<< | 1770 | * str_len = last - temp_ptr - 1 # <<<<<<<<<<<<<< |
4048 | @@ -1773,7 +1773,7 @@ | |||
4049 | 1773 | */ | 1773 | */ |
4050 | 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); |
4051 | 1775 | 1775 | ||
4053 | 1776 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":253 | 1776 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":253 |
4054 | 1777 | * # of memory, just for those strings. | 1777 | * # of memory, just for those strings. |
4055 | 1778 | * str_len = last - temp_ptr - 1 | 1778 | * str_len = last - temp_ptr - 1 |
4056 | 1779 | * if (str_len > 4 # <<<<<<<<<<<<<< | 1779 | * if (str_len > 4 # <<<<<<<<<<<<<< |
4057 | @@ -1783,7 +1783,7 @@ | |||
4058 | 1783 | __pyx_t_1 = (__pyx_v_str_len > 4); | 1783 | __pyx_t_1 = (__pyx_v_str_len > 4); |
4059 | 1784 | if (__pyx_t_1) { | 1784 | if (__pyx_t_1) { |
4060 | 1785 | 1785 | ||
4062 | 1786 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":254 | 1786 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":254 |
4063 | 1787 | * str_len = last - temp_ptr - 1 | 1787 | * str_len = last - temp_ptr - 1 |
4064 | 1788 | * if (str_len > 4 | 1788 | * if (str_len > 4 |
4065 | 1789 | * and strncmp(" 0 0", last - 4, 4) == 0): # <<<<<<<<<<<<<< | 1789 | * and strncmp(" 0 0", last - 4, 4) == 0): # <<<<<<<<<<<<<< |
4066 | @@ -1797,7 +1797,7 @@ | |||
4067 | 1797 | } | 1797 | } |
4068 | 1798 | if (__pyx_t_5) { | 1798 | if (__pyx_t_5) { |
4069 | 1799 | 1799 | ||
4071 | 1800 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":257 | 1800 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":257 |
4072 | 1801 | * # This drops peak mem for bzr.dev from 87.4MB => 86.2MB | 1801 | * # This drops peak mem for bzr.dev from 87.4MB => 86.2MB |
4073 | 1802 | * # For Launchpad 236MB => 232MB | 1802 | * # For Launchpad 236MB => 232MB |
4074 | 1803 | * value = safe_interned_string_from_size(temp_ptr + 1, str_len) # <<<<<<<<<<<<<< | 1803 | * value = safe_interned_string_from_size(temp_ptr + 1, str_len) # <<<<<<<<<<<<<< |
4075 | @@ -1813,7 +1813,7 @@ | |||
4076 | 1813 | } | 1813 | } |
4077 | 1814 | /*else*/ { | 1814 | /*else*/ { |
4078 | 1815 | 1815 | ||
4080 | 1816 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":259 | 1816 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":259 |
4081 | 1817 | * value = safe_interned_string_from_size(temp_ptr + 1, str_len) | 1817 | * value = safe_interned_string_from_size(temp_ptr + 1, str_len) |
4082 | 1818 | * else: | 1818 | * else: |
4083 | 1819 | * value = safe_string_from_size(temp_ptr + 1, str_len) # <<<<<<<<<<<<<< | 1819 | * value = safe_string_from_size(temp_ptr + 1, str_len) # <<<<<<<<<<<<<< |
4084 | @@ -1828,7 +1828,7 @@ | |||
4085 | 1828 | } | 1828 | } |
4086 | 1829 | __pyx_L9:; | 1829 | __pyx_L9:; |
4087 | 1830 | 1830 | ||
4089 | 1831 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":261 | 1831 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":261 |
4090 | 1832 | * value = safe_string_from_size(temp_ptr + 1, str_len) | 1832 | * value = safe_string_from_size(temp_ptr + 1, str_len) |
4091 | 1833 | * # shrink the references end point | 1833 | * # shrink the references end point |
4092 | 1834 | * last = temp_ptr # <<<<<<<<<<<<<< | 1834 | * last = temp_ptr # <<<<<<<<<<<<<< |
4093 | @@ -1839,7 +1839,7 @@ | |||
4094 | 1839 | } | 1839 | } |
4095 | 1840 | __pyx_L8:; | 1840 | __pyx_L8:; |
4096 | 1841 | 1841 | ||
4098 | 1842 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":263 | 1842 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":263 |
4099 | 1843 | * last = temp_ptr | 1843 | * last = temp_ptr |
4100 | 1844 | * | 1844 | * |
4101 | 1845 | * if self.ref_list_length: # <<<<<<<<<<<<<< | 1845 | * if self.ref_list_length: # <<<<<<<<<<<<<< |
4102 | @@ -1848,7 +1848,7 @@ | |||
4103 | 1848 | */ | 1848 | */ |
4104 | 1849 | if (__pyx_v_self->ref_list_length) { | 1849 | if (__pyx_v_self->ref_list_length) { |
4105 | 1850 | 1850 | ||
4107 | 1851 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":264 | 1851 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":264 |
4108 | 1852 | * | 1852 | * |
4109 | 1853 | * if self.ref_list_length: | 1853 | * if self.ref_list_length: |
4110 | 1854 | * ref_lists = StaticTuple_New(self.ref_list_length) # <<<<<<<<<<<<<< | 1854 | * ref_lists = StaticTuple_New(self.ref_list_length) # <<<<<<<<<<<<<< |
4111 | @@ -1861,7 +1861,7 @@ | |||
4112 | 1861 | __pyx_v_ref_lists = ((StaticTuple *)__pyx_t_3); | 1861 | __pyx_v_ref_lists = ((StaticTuple *)__pyx_t_3); |
4113 | 1862 | __pyx_t_3 = 0; | 1862 | __pyx_t_3 = 0; |
4114 | 1863 | 1863 | ||
4116 | 1864 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":265 | 1864 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":265 |
4117 | 1865 | * if self.ref_list_length: | 1865 | * if self.ref_list_length: |
4118 | 1866 | * ref_lists = StaticTuple_New(self.ref_list_length) | 1866 | * ref_lists = StaticTuple_New(self.ref_list_length) |
4119 | 1867 | * loop_counter = 0 # <<<<<<<<<<<<<< | 1867 | * loop_counter = 0 # <<<<<<<<<<<<<< |
4120 | @@ -1870,7 +1870,7 @@ | |||
4121 | 1870 | */ | 1870 | */ |
4122 | 1871 | __pyx_v_loop_counter = 0; | 1871 | __pyx_v_loop_counter = 0; |
4123 | 1872 | 1872 | ||
4125 | 1873 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":266 | 1873 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":266 |
4126 | 1874 | * ref_lists = StaticTuple_New(self.ref_list_length) | 1874 | * ref_lists = StaticTuple_New(self.ref_list_length) |
4127 | 1875 | * loop_counter = 0 | 1875 | * loop_counter = 0 |
4128 | 1876 | * while loop_counter < self.ref_list_length: # <<<<<<<<<<<<<< | 1876 | * while loop_counter < self.ref_list_length: # <<<<<<<<<<<<<< |
4129 | @@ -1881,7 +1881,7 @@ | |||
4130 | 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); |
4131 | 1882 | if (!__pyx_t_5) break; | 1882 | if (!__pyx_t_5) break; |
4132 | 1883 | 1883 | ||
4134 | 1884 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":267 | 1884 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":267 |
4135 | 1885 | * loop_counter = 0 | 1885 | * loop_counter = 0 |
4136 | 1886 | * while loop_counter < self.ref_list_length: | 1886 | * while loop_counter < self.ref_list_length: |
4137 | 1887 | * ref_list = [] # <<<<<<<<<<<<<< | 1887 | * ref_list = [] # <<<<<<<<<<<<<< |
4138 | @@ -1894,7 +1894,7 @@ | |||
4139 | 1894 | __pyx_v_ref_list = ((PyObject *)__pyx_t_3); | 1894 | __pyx_v_ref_list = ((PyObject *)__pyx_t_3); |
4140 | 1895 | __pyx_t_3 = 0; | 1895 | __pyx_t_3 = 0; |
4141 | 1896 | 1896 | ||
4143 | 1897 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":269 | 1897 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":269 |
4144 | 1898 | * ref_list = [] | 1898 | * ref_list = [] |
4145 | 1899 | * # extract a reference list | 1899 | * # extract a reference list |
4146 | 1900 | * loop_counter = loop_counter + 1 # <<<<<<<<<<<<<< | 1900 | * loop_counter = loop_counter + 1 # <<<<<<<<<<<<<< |
4147 | @@ -1903,7 +1903,7 @@ | |||
4148 | 1903 | */ | 1903 | */ |
4149 | 1904 | __pyx_v_loop_counter = (__pyx_v_loop_counter + 1); | 1904 | __pyx_v_loop_counter = (__pyx_v_loop_counter + 1); |
4150 | 1905 | 1905 | ||
4152 | 1906 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":270 | 1906 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":270 |
4153 | 1907 | * # extract a reference list | 1907 | * # extract a reference list |
4154 | 1908 | * loop_counter = loop_counter + 1 | 1908 | * loop_counter = loop_counter + 1 |
4155 | 1909 | * if last < self._start: # <<<<<<<<<<<<<< | 1909 | * if last < self._start: # <<<<<<<<<<<<<< |
4156 | @@ -1913,7 +1913,7 @@ | |||
4157 | 1913 | __pyx_t_5 = (__pyx_v_last < __pyx_v_self->_start); | 1913 | __pyx_t_5 = (__pyx_v_last < __pyx_v_self->_start); |
4158 | 1914 | if (__pyx_t_5) { | 1914 | if (__pyx_t_5) { |
4159 | 1915 | 1915 | ||
4161 | 1916 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":271 | 1916 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":271 |
4162 | 1917 | * loop_counter = loop_counter + 1 | 1917 | * loop_counter = loop_counter + 1 |
4163 | 1918 | * if last < self._start: | 1918 | * if last < self._start: |
4164 | 1919 | * raise AssertionError("last < self._start") # <<<<<<<<<<<<<< | 1919 | * raise AssertionError("last < self._start") # <<<<<<<<<<<<<< |
4165 | @@ -1935,7 +1935,7 @@ | |||
4166 | 1935 | } | 1935 | } |
4167 | 1936 | __pyx_L13:; | 1936 | __pyx_L13:; |
4168 | 1937 | 1937 | ||
4170 | 1938 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":273 | 1938 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":273 |
4171 | 1939 | * raise AssertionError("last < self._start") | 1939 | * raise AssertionError("last < self._start") |
4172 | 1940 | * # find the next reference list end point: | 1940 | * # find the next reference list end point: |
4173 | 1941 | * temp_ptr = <char*>memchr(self._start, c'\t', last - self._start) # <<<<<<<<<<<<<< | 1941 | * temp_ptr = <char*>memchr(self._start, c'\t', last - self._start) # <<<<<<<<<<<<<< |
4174 | @@ -1944,7 +1944,7 @@ | |||
4175 | 1944 | */ | 1944 | */ |
4176 | 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))); |
4177 | 1946 | 1946 | ||
4179 | 1947 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":274 | 1947 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":274 |
4180 | 1948 | * # find the next reference list end point: | 1948 | * # find the next reference list end point: |
4181 | 1949 | * temp_ptr = <char*>memchr(self._start, c'\t', last - self._start) | 1949 | * temp_ptr = <char*>memchr(self._start, c'\t', last - self._start) |
4182 | 1950 | * if temp_ptr == NULL: # <<<<<<<<<<<<<< | 1950 | * if temp_ptr == NULL: # <<<<<<<<<<<<<< |
4183 | @@ -1954,7 +1954,7 @@ | |||
4184 | 1954 | __pyx_t_5 = (__pyx_v_temp_ptr == NULL); | 1954 | __pyx_t_5 = (__pyx_v_temp_ptr == NULL); |
4185 | 1955 | if (__pyx_t_5) { | 1955 | if (__pyx_t_5) { |
4186 | 1956 | 1956 | ||
4188 | 1957 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":276 | 1957 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":276 |
4189 | 1958 | * if temp_ptr == NULL: | 1958 | * if temp_ptr == NULL: |
4190 | 1959 | * # Only valid for the last list | 1959 | * # Only valid for the last list |
4191 | 1960 | * if loop_counter != self.ref_list_length: # <<<<<<<<<<<<<< | 1960 | * if loop_counter != self.ref_list_length: # <<<<<<<<<<<<<< |
4192 | @@ -1964,7 +1964,7 @@ | |||
4193 | 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); |
4194 | 1965 | if (__pyx_t_5) { | 1965 | if (__pyx_t_5) { |
4195 | 1966 | 1966 | ||
4197 | 1967 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":278 | 1967 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":278 |
4198 | 1968 | * if loop_counter != self.ref_list_length: | 1968 | * if loop_counter != self.ref_list_length: |
4199 | 1969 | * # Invalid line | 1969 | * # Invalid line |
4200 | 1970 | * raise AssertionError( # <<<<<<<<<<<<<< | 1970 | * raise AssertionError( # <<<<<<<<<<<<<< |
4201 | @@ -1986,7 +1986,7 @@ | |||
4202 | 1986 | } | 1986 | } |
4203 | 1987 | /*else*/ { | 1987 | /*else*/ { |
4204 | 1988 | 1988 | ||
4206 | 1989 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":282 | 1989 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":282 |
4207 | 1990 | * else: | 1990 | * else: |
4208 | 1991 | * # scan to the end of the ref list area | 1991 | * # scan to the end of the ref list area |
4209 | 1992 | * ref_ptr = last # <<<<<<<<<<<<<< | 1992 | * ref_ptr = last # <<<<<<<<<<<<<< |
4210 | @@ -1995,7 +1995,7 @@ | |||
4211 | 1995 | */ | 1995 | */ |
4212 | 1996 | __pyx_v_ref_ptr = __pyx_v_last; | 1996 | __pyx_v_ref_ptr = __pyx_v_last; |
4213 | 1997 | 1997 | ||
4215 | 1998 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":283 | 1998 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":283 |
4216 | 1999 | * # scan to the end of the ref list area | 1999 | * # scan to the end of the ref list area |
4217 | 2000 | * ref_ptr = last | 2000 | * ref_ptr = last |
4218 | 2001 | * next_start = last # <<<<<<<<<<<<<< | 2001 | * next_start = last # <<<<<<<<<<<<<< |
4219 | @@ -2009,7 +2009,7 @@ | |||
4220 | 2009 | } | 2009 | } |
4221 | 2010 | /*else*/ { | 2010 | /*else*/ { |
4222 | 2011 | 2011 | ||
4224 | 2012 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":286 | 2012 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":286 |
4225 | 2013 | * else: | 2013 | * else: |
4226 | 2014 | * # scan to the end of this ref list | 2014 | * # scan to the end of this ref list |
4227 | 2015 | * ref_ptr = temp_ptr # <<<<<<<<<<<<<< | 2015 | * ref_ptr = temp_ptr # <<<<<<<<<<<<<< |
4228 | @@ -2018,7 +2018,7 @@ | |||
4229 | 2018 | */ | 2018 | */ |
4230 | 2019 | __pyx_v_ref_ptr = __pyx_v_temp_ptr; | 2019 | __pyx_v_ref_ptr = __pyx_v_temp_ptr; |
4231 | 2020 | 2020 | ||
4233 | 2021 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":287 | 2021 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":287 |
4234 | 2022 | * # scan to the end of this ref list | 2022 | * # scan to the end of this ref list |
4235 | 2023 | * ref_ptr = temp_ptr | 2023 | * ref_ptr = temp_ptr |
4236 | 2024 | * next_start = temp_ptr + 1 # <<<<<<<<<<<<<< | 2024 | * next_start = temp_ptr + 1 # <<<<<<<<<<<<<< |
4237 | @@ -2029,7 +2029,7 @@ | |||
4238 | 2029 | } | 2029 | } |
4239 | 2030 | __pyx_L14:; | 2030 | __pyx_L14:; |
4240 | 2031 | 2031 | ||
4242 | 2032 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":289 | 2032 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":289 |
4243 | 2033 | * next_start = temp_ptr + 1 | 2033 | * next_start = temp_ptr + 1 |
4244 | 2034 | * # Now, there may be multiple keys in the ref list. | 2034 | * # Now, there may be multiple keys in the ref list. |
4245 | 2035 | * while self._start < ref_ptr: # <<<<<<<<<<<<<< | 2035 | * while self._start < ref_ptr: # <<<<<<<<<<<<<< |
4246 | @@ -2040,7 +2040,7 @@ | |||
4247 | 2040 | __pyx_t_5 = (__pyx_v_self->_start < __pyx_v_ref_ptr); | 2040 | __pyx_t_5 = (__pyx_v_self->_start < __pyx_v_ref_ptr); |
4248 | 2041 | if (!__pyx_t_5) break; | 2041 | if (!__pyx_t_5) break; |
4249 | 2042 | 2042 | ||
4251 | 2043 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":292 | 2043 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":292 |
4252 | 2044 | * # loop finding keys and extracting them | 2044 | * # loop finding keys and extracting them |
4253 | 2045 | * temp_ptr = <char*>memchr(self._start, c'\r', | 2045 | * temp_ptr = <char*>memchr(self._start, c'\r', |
4254 | 2046 | * ref_ptr - self._start) # <<<<<<<<<<<<<< | 2046 | * ref_ptr - self._start) # <<<<<<<<<<<<<< |
4255 | @@ -2049,7 +2049,7 @@ | |||
4256 | 2049 | */ | 2049 | */ |
4257 | 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))); |
4258 | 2051 | 2051 | ||
4260 | 2052 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":293 | 2052 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":293 |
4261 | 2053 | * temp_ptr = <char*>memchr(self._start, c'\r', | 2053 | * temp_ptr = <char*>memchr(self._start, c'\r', |
4262 | 2054 | * ref_ptr - self._start) | 2054 | * ref_ptr - self._start) |
4263 | 2055 | * if temp_ptr == NULL: # <<<<<<<<<<<<<< | 2055 | * if temp_ptr == NULL: # <<<<<<<<<<<<<< |
4264 | @@ -2059,7 +2059,7 @@ | |||
4265 | 2059 | __pyx_t_5 = (__pyx_v_temp_ptr == NULL); | 2059 | __pyx_t_5 = (__pyx_v_temp_ptr == NULL); |
4266 | 2060 | if (__pyx_t_5) { | 2060 | if (__pyx_t_5) { |
4267 | 2061 | 2061 | ||
4269 | 2062 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":295 | 2062 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":295 |
4270 | 2063 | * if temp_ptr == NULL: | 2063 | * if temp_ptr == NULL: |
4271 | 2064 | * # key runs to the end | 2064 | * # key runs to the end |
4272 | 2065 | * temp_ptr = ref_ptr # <<<<<<<<<<<<<< | 2065 | * temp_ptr = ref_ptr # <<<<<<<<<<<<<< |
4273 | @@ -2071,7 +2071,7 @@ | |||
4274 | 2071 | } | 2071 | } |
4275 | 2072 | __pyx_L18:; | 2072 | __pyx_L18:; |
4276 | 2073 | 2073 | ||
4278 | 2074 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":297 | 2074 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":297 |
4279 | 2075 | * temp_ptr = ref_ptr | 2075 | * temp_ptr = ref_ptr |
4280 | 2076 | * | 2076 | * |
4281 | 2077 | * PyList_Append(ref_list, self.extract_key(temp_ptr)) # <<<<<<<<<<<<<< | 2077 | * PyList_Append(ref_list, self.extract_key(temp_ptr)) # <<<<<<<<<<<<<< |
4282 | @@ -2084,7 +2084,7 @@ | |||
4283 | 2084 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; | 2084 | __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; |
4284 | 2085 | } | 2085 | } |
4285 | 2086 | 2086 | ||
4287 | 2087 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":298 | 2087 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":298 |
4288 | 2088 | * | 2088 | * |
4289 | 2089 | * PyList_Append(ref_list, self.extract_key(temp_ptr)) | 2089 | * PyList_Append(ref_list, self.extract_key(temp_ptr)) |
4290 | 2090 | * ref_list = StaticTuple_Intern(StaticTuple(*ref_list)) # <<<<<<<<<<<<<< | 2090 | * ref_list = StaticTuple_Intern(StaticTuple(*ref_list)) # <<<<<<<<<<<<<< |
4291 | @@ -2103,7 +2103,7 @@ | |||
4292 | 2103 | __pyx_v_ref_list = __pyx_t_3; | 2103 | __pyx_v_ref_list = __pyx_t_3; |
4293 | 2104 | __pyx_t_3 = 0; | 2104 | __pyx_t_3 = 0; |
4294 | 2105 | 2105 | ||
4296 | 2106 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":299 | 2106 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":299 |
4297 | 2107 | * PyList_Append(ref_list, self.extract_key(temp_ptr)) | 2107 | * PyList_Append(ref_list, self.extract_key(temp_ptr)) |
4298 | 2108 | * ref_list = StaticTuple_Intern(StaticTuple(*ref_list)) | 2108 | * ref_list = StaticTuple_Intern(StaticTuple(*ref_list)) |
4299 | 2109 | * Py_INCREF(ref_list) # <<<<<<<<<<<<<< | 2109 | * Py_INCREF(ref_list) # <<<<<<<<<<<<<< |
4300 | @@ -2112,7 +2112,7 @@ | |||
4301 | 2112 | */ | 2112 | */ |
4302 | 2113 | Py_INCREF(__pyx_v_ref_list); | 2113 | Py_INCREF(__pyx_v_ref_list); |
4303 | 2114 | 2114 | ||
4305 | 2115 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":300 | 2115 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":300 |
4306 | 2116 | * ref_list = StaticTuple_Intern(StaticTuple(*ref_list)) | 2116 | * ref_list = StaticTuple_Intern(StaticTuple(*ref_list)) |
4307 | 2117 | * Py_INCREF(ref_list) | 2117 | * Py_INCREF(ref_list) |
4308 | 2118 | * StaticTuple_SET_ITEM(ref_lists, loop_counter - 1, ref_list) # <<<<<<<<<<<<<< | 2118 | * StaticTuple_SET_ITEM(ref_lists, loop_counter - 1, ref_list) # <<<<<<<<<<<<<< |
4309 | @@ -2121,7 +2121,7 @@ | |||
4310 | 2121 | */ | 2121 | */ |
4311 | 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); |
4312 | 2123 | 2123 | ||
4314 | 2124 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":302 | 2124 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":302 |
4315 | 2125 | * StaticTuple_SET_ITEM(ref_lists, loop_counter - 1, ref_list) | 2125 | * StaticTuple_SET_ITEM(ref_lists, loop_counter - 1, ref_list) |
4316 | 2126 | * # prepare for the next reference list | 2126 | * # prepare for the next reference list |
4317 | 2127 | * self._start = next_start # <<<<<<<<<<<<<< | 2127 | * self._start = next_start # <<<<<<<<<<<<<< |
4318 | @@ -2131,7 +2131,7 @@ | |||
4319 | 2131 | __pyx_v_self->_start = __pyx_v_next_start; | 2131 | __pyx_v_self->_start = __pyx_v_next_start; |
4320 | 2132 | } | 2132 | } |
4321 | 2133 | 2133 | ||
4323 | 2134 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":303 | 2134 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":303 |
4324 | 2135 | * # prepare for the next reference list | 2135 | * # prepare for the next reference list |
4325 | 2136 | * self._start = next_start | 2136 | * self._start = next_start |
4326 | 2137 | * node_value = StaticTuple(value, ref_lists) # <<<<<<<<<<<<<< | 2137 | * node_value = StaticTuple(value, ref_lists) # <<<<<<<<<<<<<< |
4327 | @@ -2156,7 +2156,7 @@ | |||
4328 | 2156 | } | 2156 | } |
4329 | 2157 | /*else*/ { | 2157 | /*else*/ { |
4330 | 2158 | 2158 | ||
4332 | 2159 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":305 | 2159 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":305 |
4333 | 2160 | * node_value = StaticTuple(value, ref_lists) | 2160 | * node_value = StaticTuple(value, ref_lists) |
4334 | 2161 | * else: | 2161 | * else: |
4335 | 2162 | * if last != self._start: # <<<<<<<<<<<<<< | 2162 | * if last != self._start: # <<<<<<<<<<<<<< |
4336 | @@ -2166,7 +2166,7 @@ | |||
4337 | 2166 | __pyx_t_5 = (__pyx_v_last != __pyx_v_self->_start); | 2166 | __pyx_t_5 = (__pyx_v_last != __pyx_v_self->_start); |
4338 | 2167 | if (__pyx_t_5) { | 2167 | if (__pyx_t_5) { |
4339 | 2168 | 2168 | ||
4341 | 2169 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":307 | 2169 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":307 |
4342 | 2170 | * if last != self._start: | 2170 | * if last != self._start: |
4343 | 2171 | * # unexpected reference data present | 2171 | * # unexpected reference data present |
4344 | 2172 | * raise AssertionError("unexpected reference data present") # <<<<<<<<<<<<<< | 2172 | * raise AssertionError("unexpected reference data present") # <<<<<<<<<<<<<< |
4345 | @@ -2188,7 +2188,7 @@ | |||
4346 | 2188 | } | 2188 | } |
4347 | 2189 | __pyx_L19:; | 2189 | __pyx_L19:; |
4348 | 2190 | 2190 | ||
4350 | 2191 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":308 | 2191 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":308 |
4351 | 2192 | * # unexpected reference data present | 2192 | * # unexpected reference data present |
4352 | 2193 | * raise AssertionError("unexpected reference data present") | 2193 | * raise AssertionError("unexpected reference data present") |
4353 | 2194 | * node_value = StaticTuple(value, StaticTuple()) # <<<<<<<<<<<<<< | 2194 | * node_value = StaticTuple(value, StaticTuple()) # <<<<<<<<<<<<<< |
4354 | @@ -2214,7 +2214,7 @@ | |||
4355 | 2214 | } | 2214 | } |
4356 | 2215 | __pyx_L10:; | 2215 | __pyx_L10:; |
4357 | 2216 | 2216 | ||
4359 | 2217 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":309 | 2217 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":309 |
4360 | 2218 | * raise AssertionError("unexpected reference data present") | 2218 | * raise AssertionError("unexpected reference data present") |
4361 | 2219 | * node_value = StaticTuple(value, StaticTuple()) | 2219 | * node_value = StaticTuple(value, StaticTuple()) |
4362 | 2220 | * PyList_Append(self.keys, StaticTuple(key, node_value)) # <<<<<<<<<<<<<< | 2220 | * PyList_Append(self.keys, StaticTuple(key, node_value)) # <<<<<<<<<<<<<< |
4363 | @@ -2235,7 +2235,7 @@ | |||
4364 | 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;} |
4365 | 2236 | __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; | 2236 | __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; |
4366 | 2237 | 2237 | ||
4368 | 2238 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":310 | 2238 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":310 |
4369 | 2239 | * node_value = StaticTuple(value, StaticTuple()) | 2239 | * node_value = StaticTuple(value, StaticTuple()) |
4370 | 2240 | * PyList_Append(self.keys, StaticTuple(key, node_value)) | 2240 | * PyList_Append(self.keys, StaticTuple(key, node_value)) |
4371 | 2241 | * return 0 # <<<<<<<<<<<<<< | 2241 | * return 0 # <<<<<<<<<<<<<< |
4372 | @@ -2262,7 +2262,7 @@ | |||
4373 | 2262 | return __pyx_r; | 2262 | return __pyx_r; |
4374 | 2263 | } | 2263 | } |
4375 | 2264 | 2264 | ||
4377 | 2265 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":312 | 2265 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":312 |
4378 | 2266 | * return 0 | 2266 | * return 0 |
4379 | 2267 | * | 2267 | * |
4380 | 2268 | * def parse(self): # <<<<<<<<<<<<<< | 2268 | * def parse(self): # <<<<<<<<<<<<<< |
4381 | @@ -2281,7 +2281,7 @@ | |||
4382 | 2281 | int __pyx_t_5; | 2281 | int __pyx_t_5; |
4383 | 2282 | __Pyx_RefNannySetupContext("parse"); | 2282 | __Pyx_RefNannySetupContext("parse"); |
4384 | 2283 | 2283 | ||
4386 | 2284 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":314 | 2284 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":314 |
4387 | 2285 | * def parse(self): | 2285 | * def parse(self): |
4388 | 2286 | * cdef Py_ssize_t byte_count | 2286 | * cdef Py_ssize_t byte_count |
4389 | 2287 | * if not PyString_CheckExact(self.bytes): # <<<<<<<<<<<<<< | 2287 | * if not PyString_CheckExact(self.bytes): # <<<<<<<<<<<<<< |
4390 | @@ -2291,7 +2291,7 @@ | |||
4391 | 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)); |
4392 | 2292 | if (__pyx_t_1) { | 2292 | if (__pyx_t_1) { |
4393 | 2293 | 2293 | ||
4395 | 2294 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":315 | 2294 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":315 |
4396 | 2295 | * cdef Py_ssize_t byte_count | 2295 | * cdef Py_ssize_t byte_count |
4397 | 2296 | * if not PyString_CheckExact(self.bytes): | 2296 | * if not PyString_CheckExact(self.bytes): |
4398 | 2297 | * raise AssertionError('self.bytes is not a string.') # <<<<<<<<<<<<<< | 2297 | * raise AssertionError('self.bytes is not a string.') # <<<<<<<<<<<<<< |
4399 | @@ -2313,7 +2313,7 @@ | |||
4400 | 2313 | } | 2313 | } |
4401 | 2314 | __pyx_L5:; | 2314 | __pyx_L5:; |
4402 | 2315 | 2315 | ||
4404 | 2316 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":316 | 2316 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":316 |
4405 | 2317 | * if not PyString_CheckExact(self.bytes): | 2317 | * if not PyString_CheckExact(self.bytes): |
4406 | 2318 | * raise AssertionError('self.bytes is not a string.') | 2318 | * raise AssertionError('self.bytes is not a string.') |
4407 | 2319 | * byte_count = PyString_Size(self.bytes) # <<<<<<<<<<<<<< | 2319 | * byte_count = PyString_Size(self.bytes) # <<<<<<<<<<<<<< |
4408 | @@ -2322,7 +2322,7 @@ | |||
4409 | 2322 | */ | 2322 | */ |
4410 | 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); |
4411 | 2324 | 2324 | ||
4413 | 2325 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":317 | 2325 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":317 |
4414 | 2326 | * raise AssertionError('self.bytes is not a string.') | 2326 | * raise AssertionError('self.bytes is not a string.') |
4415 | 2327 | * byte_count = PyString_Size(self.bytes) | 2327 | * byte_count = PyString_Size(self.bytes) |
4416 | 2328 | * self._cur_str = PyString_AsString(self.bytes) # <<<<<<<<<<<<<< | 2328 | * self._cur_str = PyString_AsString(self.bytes) # <<<<<<<<<<<<<< |
4417 | @@ -2332,7 +2332,7 @@ | |||
4418 | 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;} |
4419 | 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; |
4420 | 2334 | 2334 | ||
4422 | 2335 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":319 | 2335 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":319 |
4423 | 2336 | * self._cur_str = PyString_AsString(self.bytes) | 2336 | * self._cur_str = PyString_AsString(self.bytes) |
4424 | 2337 | * # This points to the last character in the string | 2337 | * # This points to the last character in the string |
4425 | 2338 | * self._end_str = self._cur_str + byte_count # <<<<<<<<<<<<<< | 2338 | * self._end_str = self._cur_str + byte_count # <<<<<<<<<<<<<< |
4426 | @@ -2341,7 +2341,7 @@ | |||
4427 | 2341 | */ | 2341 | */ |
4428 | 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); |
4429 | 2343 | 2343 | ||
4431 | 2344 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":320 | 2344 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":320 |
4432 | 2345 | * # This points to the last character in the string | 2345 | * # This points to the last character in the string |
4433 | 2346 | * self._end_str = self._cur_str + byte_count | 2346 | * self._end_str = self._cur_str + byte_count |
4434 | 2347 | * while self._cur_str < self._end_str: # <<<<<<<<<<<<<< | 2347 | * while self._cur_str < self._end_str: # <<<<<<<<<<<<<< |
4435 | @@ -2352,7 +2352,7 @@ | |||
4436 | 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); |
4437 | 2353 | if (!__pyx_t_1) break; | 2353 | if (!__pyx_t_1) break; |
4438 | 2354 | 2354 | ||
4440 | 2355 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":321 | 2355 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":321 |
4441 | 2356 | * self._end_str = self._cur_str + byte_count | 2356 | * self._end_str = self._cur_str + byte_count |
4442 | 2357 | * while self._cur_str < self._end_str: | 2357 | * while self._cur_str < self._end_str: |
4443 | 2358 | * self.process_line() # <<<<<<<<<<<<<< | 2358 | * self.process_line() # <<<<<<<<<<<<<< |
4444 | @@ -2362,7 +2362,7 @@ | |||
4445 | 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;} |
4446 | 2363 | } | 2363 | } |
4447 | 2364 | 2364 | ||
4449 | 2365 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":322 | 2365 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":322 |
4450 | 2366 | * while self._cur_str < self._end_str: | 2366 | * while self._cur_str < self._end_str: |
4451 | 2367 | * self.process_line() | 2367 | * self.process_line() |
4452 | 2368 | * return self.keys # <<<<<<<<<<<<<< | 2368 | * return self.keys # <<<<<<<<<<<<<< |
4453 | @@ -2387,7 +2387,7 @@ | |||
4454 | 2387 | return __pyx_r; | 2387 | return __pyx_r; |
4455 | 2388 | } | 2388 | } |
4456 | 2389 | 2389 | ||
4458 | 2390 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":325 | 2390 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":325 |
4459 | 2391 | * | 2391 | * |
4460 | 2392 | * | 2392 | * |
4461 | 2393 | * def _parse_leaf_lines(bytes, key_length, ref_list_length): # <<<<<<<<<<<<<< | 2393 | * def _parse_leaf_lines(bytes, key_length, ref_list_length): # <<<<<<<<<<<<<< |
4462 | @@ -2458,7 +2458,7 @@ | |||
4463 | 2458 | __pyx_L4_argument_unpacking_done:; | 2458 | __pyx_L4_argument_unpacking_done:; |
4464 | 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); |
4465 | 2460 | 2460 | ||
4467 | 2461 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":326 | 2461 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":326 |
4468 | 2462 | * | 2462 | * |
4469 | 2463 | * def _parse_leaf_lines(bytes, key_length, ref_list_length): | 2463 | * def _parse_leaf_lines(bytes, key_length, ref_list_length): |
4470 | 2464 | * parser = BTreeLeafParser(bytes, key_length, ref_list_length) # <<<<<<<<<<<<<< | 2464 | * parser = BTreeLeafParser(bytes, key_length, ref_list_length) # <<<<<<<<<<<<<< |
4471 | @@ -2483,7 +2483,7 @@ | |||
4472 | 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); |
4473 | 2484 | __pyx_t_2 = 0; | 2484 | __pyx_t_2 = 0; |
4474 | 2485 | 2485 | ||
4476 | 2486 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":327 | 2486 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":327 |
4477 | 2487 | * def _parse_leaf_lines(bytes, key_length, ref_list_length): | 2487 | * def _parse_leaf_lines(bytes, key_length, ref_list_length): |
4478 | 2488 | * parser = BTreeLeafParser(bytes, key_length, ref_list_length) | 2488 | * parser = BTreeLeafParser(bytes, key_length, ref_list_length) |
4479 | 2489 | * return parser.parse() # <<<<<<<<<<<<<< | 2489 | * return parser.parse() # <<<<<<<<<<<<<< |
4480 | @@ -2514,7 +2514,7 @@ | |||
4481 | 2514 | return __pyx_r; | 2514 | return __pyx_r; |
4482 | 2515 | } | 2515 | } |
4483 | 2516 | 2516 | ||
4485 | 2517 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":349 | 2517 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":349 |
4486 | 2518 | * _hexbuf = '0123456789abcdef' | 2518 | * _hexbuf = '0123456789abcdef' |
4487 | 2519 | * | 2519 | * |
4488 | 2520 | * cdef _populate_unhexbuf(): # <<<<<<<<<<<<<< | 2520 | * cdef _populate_unhexbuf(): # <<<<<<<<<<<<<< |
4489 | @@ -2527,7 +2527,7 @@ | |||
4490 | 2527 | PyObject *__pyx_r = NULL; | 2527 | PyObject *__pyx_r = NULL; |
4491 | 2528 | __Pyx_RefNannySetupContext("_populate_unhexbuf"); | 2528 | __Pyx_RefNannySetupContext("_populate_unhexbuf"); |
4492 | 2529 | 2529 | ||
4494 | 2530 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":351 | 2530 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":351 |
4495 | 2531 | * cdef _populate_unhexbuf(): | 2531 | * cdef _populate_unhexbuf(): |
4496 | 2532 | * cdef int i | 2532 | * cdef int i |
4497 | 2533 | * for i from 0 <= i < 256: # <<<<<<<<<<<<<< | 2533 | * for i from 0 <= i < 256: # <<<<<<<<<<<<<< |
4498 | @@ -2536,7 +2536,7 @@ | |||
4499 | 2536 | */ | 2536 | */ |
4500 | 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++) { |
4501 | 2538 | 2538 | ||
4503 | 2539 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":352 | 2539 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":352 |
4504 | 2540 | * cdef int i | 2540 | * cdef int i |
4505 | 2541 | * for i from 0 <= i < 256: | 2541 | * for i from 0 <= i < 256: |
4506 | 2542 | * _unhexbuf[i] = -1 # <<<<<<<<<<<<<< | 2542 | * _unhexbuf[i] = -1 # <<<<<<<<<<<<<< |
4507 | @@ -2546,7 +2546,7 @@ | |||
4508 | 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; |
4509 | 2547 | } | 2547 | } |
4510 | 2548 | 2548 | ||
4512 | 2549 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":353 | 2549 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":353 |
4513 | 2550 | * for i from 0 <= i < 256: | 2550 | * for i from 0 <= i < 256: |
4514 | 2551 | * _unhexbuf[i] = -1 | 2551 | * _unhexbuf[i] = -1 |
4515 | 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 # <<<<<<<<<<<<<< |
4516 | @@ -2555,7 +2555,7 @@ | |||
4517 | 2555 | */ | 2555 | */ |
4518 | 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++) { |
4519 | 2557 | 2557 | ||
4521 | 2558 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":354 | 2558 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":354 |
4522 | 2559 | * _unhexbuf[i] = -1 | 2559 | * _unhexbuf[i] = -1 |
4523 | 2560 | * for i from 0 <= i < 10: # 0123456789 => map to the raw number | 2560 | * for i from 0 <= i < 10: # 0123456789 => map to the raw number |
4524 | 2561 | * _unhexbuf[(i + c'0')] = i # <<<<<<<<<<<<<< | 2561 | * _unhexbuf[(i + c'0')] = i # <<<<<<<<<<<<<< |
4525 | @@ -2565,7 +2565,7 @@ | |||
4526 | 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; |
4527 | 2566 | } | 2566 | } |
4528 | 2567 | 2567 | ||
4530 | 2568 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":355 | 2568 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":355 |
4531 | 2569 | * for i from 0 <= i < 10: # 0123456789 => map to the raw number | 2569 | * for i from 0 <= i < 10: # 0123456789 => map to the raw number |
4532 | 2570 | * _unhexbuf[(i + c'0')] = i | 2570 | * _unhexbuf[(i + c'0')] = i |
4533 | 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 # <<<<<<<<<<<<<< |
4534 | @@ -2574,7 +2574,7 @@ | |||
4535 | 2574 | */ | 2574 | */ |
4536 | 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++) { |
4537 | 2576 | 2576 | ||
4539 | 2577 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":356 | 2577 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":356 |
4540 | 2578 | * _unhexbuf[(i + c'0')] = i | 2578 | * _unhexbuf[(i + c'0')] = i |
4541 | 2579 | * for i from 10 <= i < 16: # abcdef => 10, 11, 12, 13, 14, 15, 16 | 2579 | * for i from 10 <= i < 16: # abcdef => 10, 11, 12, 13, 14, 15, 16 |
4542 | 2580 | * _unhexbuf[(i - 10 + c'a')] = i # <<<<<<<<<<<<<< | 2580 | * _unhexbuf[(i - 10 + c'a')] = i # <<<<<<<<<<<<<< |
4543 | @@ -2584,7 +2584,7 @@ | |||
4544 | 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; |
4545 | 2585 | } | 2585 | } |
4546 | 2586 | 2586 | ||
4548 | 2587 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":357 | 2587 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":357 |
4549 | 2588 | * for i from 10 <= i < 16: # abcdef => 10, 11, 12, 13, 14, 15, 16 | 2588 | * for i from 10 <= i < 16: # abcdef => 10, 11, 12, 13, 14, 15, 16 |
4550 | 2589 | * _unhexbuf[(i - 10 + c'a')] = i | 2589 | * _unhexbuf[(i - 10 + c'a')] = i |
4551 | 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 # <<<<<<<<<<<<<< |
4552 | @@ -2593,7 +2593,7 @@ | |||
4553 | 2593 | */ | 2593 | */ |
4554 | 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++) { |
4555 | 2595 | 2595 | ||
4557 | 2596 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":358 | 2596 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":358 |
4558 | 2597 | * _unhexbuf[(i - 10 + c'a')] = i | 2597 | * _unhexbuf[(i - 10 + c'a')] = i |
4559 | 2598 | * for i from 10 <= i < 16: # ABCDEF => 10, 11, 12, 13, 14, 15, 16 | 2598 | * for i from 10 <= i < 16: # ABCDEF => 10, 11, 12, 13, 14, 15, 16 |
4560 | 2599 | * _unhexbuf[(i - 10 + c'A')] = i # <<<<<<<<<<<<<< | 2599 | * _unhexbuf[(i - 10 + c'A')] = i # <<<<<<<<<<<<<< |
4561 | @@ -2609,7 +2609,7 @@ | |||
4562 | 2609 | return __pyx_r; | 2609 | return __pyx_r; |
4563 | 2610 | } | 2610 | } |
4564 | 2611 | 2611 | ||
4566 | 2612 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":362 | 2612 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":362 |
4567 | 2613 | * | 2613 | * |
4568 | 2614 | * | 2614 | * |
4569 | 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 # <<<<<<<<<<<<<< |
4570 | @@ -2628,7 +2628,7 @@ | |||
4571 | 2628 | int __pyx_t_3; | 2628 | int __pyx_t_3; |
4572 | 2629 | __Pyx_RefNannySetupContext("_unhexlify_sha1"); | 2629 | __Pyx_RefNannySetupContext("_unhexlify_sha1"); |
4573 | 2630 | 2630 | ||
4575 | 2631 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":374 | 2631 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":374 |
4576 | 2632 | * # binascii does this using isupper() and tolower() and ?: syntax. I'm | 2632 | * # binascii does this using isupper() and tolower() and ?: syntax. I'm |
4577 | 2633 | * # guessing a simple lookup array should be faster. | 2633 | * # guessing a simple lookup array should be faster. |
4578 | 2634 | * j = 0 # <<<<<<<<<<<<<< | 2634 | * j = 0 # <<<<<<<<<<<<<< |
4579 | @@ -2637,7 +2637,7 @@ | |||
4580 | 2637 | */ | 2637 | */ |
4581 | 2638 | __pyx_v_j = 0; | 2638 | __pyx_v_j = 0; |
4582 | 2639 | 2639 | ||
4584 | 2640 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":375 | 2640 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":375 |
4585 | 2641 | * # guessing a simple lookup array should be faster. | 2641 | * # guessing a simple lookup array should be faster. |
4586 | 2642 | * j = 0 | 2642 | * j = 0 |
4587 | 2643 | * for i from 0 <= i < 20: # <<<<<<<<<<<<<< | 2643 | * for i from 0 <= i < 20: # <<<<<<<<<<<<<< |
4588 | @@ -2646,7 +2646,7 @@ | |||
4589 | 2646 | */ | 2646 | */ |
4590 | 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++) { |
4591 | 2648 | 2648 | ||
4593 | 2649 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":376 | 2649 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":376 |
4594 | 2650 | * j = 0 | 2650 | * j = 0 |
4595 | 2651 | * for i from 0 <= i < 20: | 2651 | * for i from 0 <= i < 20: |
4596 | 2652 | * top = _unhexbuf[<unsigned char>(as_hex[j])] # <<<<<<<<<<<<<< | 2652 | * top = _unhexbuf[<unsigned char>(as_hex[j])] # <<<<<<<<<<<<<< |
4597 | @@ -2655,7 +2655,7 @@ | |||
4598 | 2655 | */ | 2655 | */ |
4599 | 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]))]); |
4600 | 2657 | 2657 | ||
4602 | 2658 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":377 | 2658 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":377 |
4603 | 2659 | * for i from 0 <= i < 20: | 2659 | * for i from 0 <= i < 20: |
4604 | 2660 | * top = _unhexbuf[<unsigned char>(as_hex[j])] | 2660 | * top = _unhexbuf[<unsigned char>(as_hex[j])] |
4605 | 2661 | * j = j + 1 # <<<<<<<<<<<<<< | 2661 | * j = j + 1 # <<<<<<<<<<<<<< |
4606 | @@ -2664,7 +2664,7 @@ | |||
4607 | 2664 | */ | 2664 | */ |
4608 | 2665 | __pyx_v_j = (__pyx_v_j + 1); | 2665 | __pyx_v_j = (__pyx_v_j + 1); |
4609 | 2666 | 2666 | ||
4611 | 2667 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":378 | 2667 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":378 |
4612 | 2668 | * top = _unhexbuf[<unsigned char>(as_hex[j])] | 2668 | * top = _unhexbuf[<unsigned char>(as_hex[j])] |
4613 | 2669 | * j = j + 1 | 2669 | * j = j + 1 |
4614 | 2670 | * bot = _unhexbuf[<unsigned char>(as_hex[j])] # <<<<<<<<<<<<<< | 2670 | * bot = _unhexbuf[<unsigned char>(as_hex[j])] # <<<<<<<<<<<<<< |
4615 | @@ -2673,7 +2673,7 @@ | |||
4616 | 2673 | */ | 2673 | */ |
4617 | 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]))]); |
4618 | 2675 | 2675 | ||
4620 | 2676 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":379 | 2676 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":379 |
4621 | 2677 | * j = j + 1 | 2677 | * j = j + 1 |
4622 | 2678 | * bot = _unhexbuf[<unsigned char>(as_hex[j])] | 2678 | * bot = _unhexbuf[<unsigned char>(as_hex[j])] |
4623 | 2679 | * j = j + 1 # <<<<<<<<<<<<<< | 2679 | * j = j + 1 # <<<<<<<<<<<<<< |
4624 | @@ -2682,7 +2682,7 @@ | |||
4625 | 2682 | */ | 2682 | */ |
4626 | 2683 | __pyx_v_j = (__pyx_v_j + 1); | 2683 | __pyx_v_j = (__pyx_v_j + 1); |
4627 | 2684 | 2684 | ||
4629 | 2685 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":380 | 2685 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":380 |
4630 | 2686 | * bot = _unhexbuf[<unsigned char>(as_hex[j])] | 2686 | * bot = _unhexbuf[<unsigned char>(as_hex[j])] |
4631 | 2687 | * j = j + 1 | 2687 | * j = j + 1 |
4632 | 2688 | * if top == -1 or bot == -1: # <<<<<<<<<<<<<< | 2688 | * if top == -1 or bot == -1: # <<<<<<<<<<<<<< |
4633 | @@ -2698,7 +2698,7 @@ | |||
4634 | 2698 | } | 2698 | } |
4635 | 2699 | if (__pyx_t_3) { | 2699 | if (__pyx_t_3) { |
4636 | 2700 | 2700 | ||
4638 | 2701 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":381 | 2701 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":381 |
4639 | 2702 | * j = j + 1 | 2702 | * j = j + 1 |
4640 | 2703 | * if top == -1 or bot == -1: | 2703 | * if top == -1 or bot == -1: |
4641 | 2704 | * return 0 # <<<<<<<<<<<<<< | 2704 | * return 0 # <<<<<<<<<<<<<< |
4642 | @@ -2711,7 +2711,7 @@ | |||
4643 | 2711 | } | 2711 | } |
4644 | 2712 | __pyx_L5:; | 2712 | __pyx_L5:; |
4645 | 2713 | 2713 | ||
4647 | 2714 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":382 | 2714 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":382 |
4648 | 2715 | * if top == -1 or bot == -1: | 2715 | * if top == -1 or bot == -1: |
4649 | 2716 | * return 0 | 2716 | * return 0 |
4650 | 2717 | * as_bin[i] = <unsigned char>((top << 4) + bot); # <<<<<<<<<<<<<< | 2717 | * as_bin[i] = <unsigned char>((top << 4) + bot); # <<<<<<<<<<<<<< |
4651 | @@ -2721,7 +2721,7 @@ | |||
4652 | 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)); |
4653 | 2722 | } | 2722 | } |
4654 | 2723 | 2723 | ||
4656 | 2724 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":383 | 2724 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":383 |
4657 | 2725 | * return 0 | 2725 | * return 0 |
4658 | 2726 | * as_bin[i] = <unsigned char>((top << 4) + bot); | 2726 | * as_bin[i] = <unsigned char>((top << 4) + bot); |
4659 | 2727 | * return 1 # <<<<<<<<<<<<<< | 2727 | * return 1 # <<<<<<<<<<<<<< |
4660 | @@ -2737,7 +2737,7 @@ | |||
4661 | 2737 | return __pyx_r; | 2737 | return __pyx_r; |
4662 | 2738 | } | 2738 | } |
4663 | 2739 | 2739 | ||
4665 | 2740 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":386 | 2740 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":386 |
4666 | 2741 | * | 2741 | * |
4667 | 2742 | * | 2742 | * |
4668 | 2743 | * def _py_unhexlify(as_hex): # <<<<<<<<<<<<<< | 2743 | * def _py_unhexlify(as_hex): # <<<<<<<<<<<<<< |
4669 | @@ -2761,7 +2761,7 @@ | |||
4670 | 2761 | __pyx_self = __pyx_self; | 2761 | __pyx_self = __pyx_self; |
4671 | 2762 | __pyx_v_as_bin = Py_None; __Pyx_INCREF(Py_None); | 2762 | __pyx_v_as_bin = Py_None; __Pyx_INCREF(Py_None); |
4672 | 2763 | 2763 | ||
4674 | 2764 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":388 | 2764 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":388 |
4675 | 2765 | * def _py_unhexlify(as_hex): | 2765 | * def _py_unhexlify(as_hex): |
4676 | 2766 | * """For the test infrastructure, just thunks to _unhexlify_sha1""" | 2766 | * """For the test infrastructure, just thunks to _unhexlify_sha1""" |
4677 | 2767 | * if len(as_hex) != 40 or not PyString_CheckExact(as_hex): # <<<<<<<<<<<<<< | 2767 | * if len(as_hex) != 40 or not PyString_CheckExact(as_hex): # <<<<<<<<<<<<<< |
4678 | @@ -2778,7 +2778,7 @@ | |||
4679 | 2778 | } | 2778 | } |
4680 | 2779 | if (__pyx_t_4) { | 2779 | if (__pyx_t_4) { |
4681 | 2780 | 2780 | ||
4683 | 2781 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":389 | 2781 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":389 |
4684 | 2782 | * """For the test infrastructure, just thunks to _unhexlify_sha1""" | 2782 | * """For the test infrastructure, just thunks to _unhexlify_sha1""" |
4685 | 2783 | * if len(as_hex) != 40 or not PyString_CheckExact(as_hex): | 2783 | * if len(as_hex) != 40 or not PyString_CheckExact(as_hex): |
4686 | 2784 | * raise ValueError('not a 40-byte hex digest') # <<<<<<<<<<<<<< | 2784 | * raise ValueError('not a 40-byte hex digest') # <<<<<<<<<<<<<< |
4687 | @@ -2800,7 +2800,7 @@ | |||
4688 | 2800 | } | 2800 | } |
4689 | 2801 | __pyx_L5:; | 2801 | __pyx_L5:; |
4690 | 2802 | 2802 | ||
4692 | 2803 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":390 | 2803 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":390 |
4693 | 2804 | * if len(as_hex) != 40 or not PyString_CheckExact(as_hex): | 2804 | * if len(as_hex) != 40 or not PyString_CheckExact(as_hex): |
4694 | 2805 | * raise ValueError('not a 40-byte hex digest') | 2805 | * raise ValueError('not a 40-byte hex digest') |
4695 | 2806 | * as_bin = PyString_FromStringAndSize(NULL, 20) # <<<<<<<<<<<<<< | 2806 | * as_bin = PyString_FromStringAndSize(NULL, 20) # <<<<<<<<<<<<<< |
4696 | @@ -2813,7 +2813,7 @@ | |||
4697 | 2813 | __pyx_v_as_bin = __pyx_t_6; | 2813 | __pyx_v_as_bin = __pyx_t_6; |
4698 | 2814 | __pyx_t_6 = 0; | 2814 | __pyx_t_6 = 0; |
4699 | 2815 | 2815 | ||
4701 | 2816 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":391 | 2816 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":391 |
4702 | 2817 | * raise ValueError('not a 40-byte hex digest') | 2817 | * raise ValueError('not a 40-byte hex digest') |
4703 | 2818 | * as_bin = PyString_FromStringAndSize(NULL, 20) | 2818 | * as_bin = PyString_FromStringAndSize(NULL, 20) |
4704 | 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)): # <<<<<<<<<<<<<< |
4705 | @@ -2823,7 +2823,7 @@ | |||
4706 | 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)); |
4707 | 2824 | if (__pyx_t_7) { | 2824 | if (__pyx_t_7) { |
4708 | 2825 | 2825 | ||
4710 | 2826 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":392 | 2826 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":392 |
4711 | 2827 | * as_bin = PyString_FromStringAndSize(NULL, 20) | 2827 | * as_bin = PyString_FromStringAndSize(NULL, 20) |
4712 | 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)): |
4713 | 2829 | * return as_bin # <<<<<<<<<<<<<< | 2829 | * return as_bin # <<<<<<<<<<<<<< |
4714 | @@ -2838,7 +2838,7 @@ | |||
4715 | 2838 | } | 2838 | } |
4716 | 2839 | __pyx_L6:; | 2839 | __pyx_L6:; |
4717 | 2840 | 2840 | ||
4719 | 2841 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":393 | 2841 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":393 |
4720 | 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)): |
4721 | 2843 | * return as_bin | 2843 | * return as_bin |
4722 | 2844 | * return None # <<<<<<<<<<<<<< | 2844 | * return None # <<<<<<<<<<<<<< |
4723 | @@ -2864,7 +2864,7 @@ | |||
4724 | 2864 | return __pyx_r; | 2864 | return __pyx_r; |
4725 | 2865 | } | 2865 | } |
4726 | 2866 | 2866 | ||
4728 | 2867 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":396 | 2867 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":396 |
4729 | 2868 | * | 2868 | * |
4730 | 2869 | * | 2869 | * |
4731 | 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 # <<<<<<<<<<<<<< |
4732 | @@ -2878,7 +2878,7 @@ | |||
4733 | 2878 | char __pyx_v_c; | 2878 | char __pyx_v_c; |
4734 | 2879 | __Pyx_RefNannySetupContext("_hexlify_sha1"); | 2879 | __Pyx_RefNannySetupContext("_hexlify_sha1"); |
4735 | 2880 | 2880 | ||
4737 | 2881 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":400 | 2881 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":400 |
4738 | 2882 | * cdef char c | 2882 | * cdef char c |
4739 | 2883 | * | 2883 | * |
4740 | 2884 | * j = 0 # <<<<<<<<<<<<<< | 2884 | * j = 0 # <<<<<<<<<<<<<< |
4741 | @@ -2887,7 +2887,7 @@ | |||
4742 | 2887 | */ | 2887 | */ |
4743 | 2888 | __pyx_v_j = 0; | 2888 | __pyx_v_j = 0; |
4744 | 2889 | 2889 | ||
4746 | 2890 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":401 | 2890 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":401 |
4747 | 2891 | * | 2891 | * |
4748 | 2892 | * j = 0 | 2892 | * j = 0 |
4749 | 2893 | * for i from 0 <= i < 20: # <<<<<<<<<<<<<< | 2893 | * for i from 0 <= i < 20: # <<<<<<<<<<<<<< |
4750 | @@ -2896,7 +2896,7 @@ | |||
4751 | 2896 | */ | 2896 | */ |
4752 | 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++) { |
4753 | 2898 | 2898 | ||
4755 | 2899 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":402 | 2899 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":402 |
4756 | 2900 | * j = 0 | 2900 | * j = 0 |
4757 | 2901 | * for i from 0 <= i < 20: | 2901 | * for i from 0 <= i < 20: |
4758 | 2902 | * c = as_bin[i] # <<<<<<<<<<<<<< | 2902 | * c = as_bin[i] # <<<<<<<<<<<<<< |
4759 | @@ -2905,7 +2905,7 @@ | |||
4760 | 2905 | */ | 2905 | */ |
4761 | 2906 | __pyx_v_c = (__pyx_v_as_bin[__pyx_v_i]); | 2906 | __pyx_v_c = (__pyx_v_as_bin[__pyx_v_i]); |
4762 | 2907 | 2907 | ||
4764 | 2908 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":403 | 2908 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":403 |
4765 | 2909 | * for i from 0 <= i < 20: | 2909 | * for i from 0 <= i < 20: |
4766 | 2910 | * c = as_bin[i] | 2910 | * c = as_bin[i] |
4767 | 2911 | * as_hex[j] = _hexbuf[(c>>4)&0xf] # <<<<<<<<<<<<<< | 2911 | * as_hex[j] = _hexbuf[(c>>4)&0xf] # <<<<<<<<<<<<<< |
4768 | @@ -2914,7 +2914,7 @@ | |||
4769 | 2914 | */ | 2914 | */ |
4770 | 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)]); |
4771 | 2916 | 2916 | ||
4773 | 2917 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":404 | 2917 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":404 |
4774 | 2918 | * c = as_bin[i] | 2918 | * c = as_bin[i] |
4775 | 2919 | * as_hex[j] = _hexbuf[(c>>4)&0xf] | 2919 | * as_hex[j] = _hexbuf[(c>>4)&0xf] |
4776 | 2920 | * j = j + 1 # <<<<<<<<<<<<<< | 2920 | * j = j + 1 # <<<<<<<<<<<<<< |
4777 | @@ -2923,7 +2923,7 @@ | |||
4778 | 2923 | */ | 2923 | */ |
4779 | 2924 | __pyx_v_j = (__pyx_v_j + 1); | 2924 | __pyx_v_j = (__pyx_v_j + 1); |
4780 | 2925 | 2925 | ||
4782 | 2926 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":405 | 2926 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":405 |
4783 | 2927 | * as_hex[j] = _hexbuf[(c>>4)&0xf] | 2927 | * as_hex[j] = _hexbuf[(c>>4)&0xf] |
4784 | 2928 | * j = j + 1 | 2928 | * j = j + 1 |
4785 | 2929 | * as_hex[j] = _hexbuf[(c)&0xf] # <<<<<<<<<<<<<< | 2929 | * as_hex[j] = _hexbuf[(c)&0xf] # <<<<<<<<<<<<<< |
4786 | @@ -2932,7 +2932,7 @@ | |||
4787 | 2932 | */ | 2932 | */ |
4788 | 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)]); |
4789 | 2934 | 2934 | ||
4791 | 2935 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":406 | 2935 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":406 |
4792 | 2936 | * j = j + 1 | 2936 | * j = j + 1 |
4793 | 2937 | * as_hex[j] = _hexbuf[(c)&0xf] | 2937 | * as_hex[j] = _hexbuf[(c)&0xf] |
4794 | 2938 | * j = j + 1 # <<<<<<<<<<<<<< | 2938 | * j = j + 1 # <<<<<<<<<<<<<< |
4795 | @@ -2945,7 +2945,7 @@ | |||
4796 | 2945 | __Pyx_RefNannyFinishContext(); | 2945 | __Pyx_RefNannyFinishContext(); |
4797 | 2946 | } | 2946 | } |
4798 | 2947 | 2947 | ||
4800 | 2948 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":409 | 2948 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":409 |
4801 | 2949 | * | 2949 | * |
4802 | 2950 | * | 2950 | * |
4803 | 2951 | * def _py_hexlify(as_bin): # <<<<<<<<<<<<<< | 2951 | * def _py_hexlify(as_bin): # <<<<<<<<<<<<<< |
4804 | @@ -2968,7 +2968,7 @@ | |||
4805 | 2968 | __pyx_self = __pyx_self; | 2968 | __pyx_self = __pyx_self; |
4806 | 2969 | __pyx_v_as_hex = Py_None; __Pyx_INCREF(Py_None); | 2969 | __pyx_v_as_hex = Py_None; __Pyx_INCREF(Py_None); |
4807 | 2970 | 2970 | ||
4809 | 2971 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":411 | 2971 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":411 |
4810 | 2972 | * def _py_hexlify(as_bin): | 2972 | * def _py_hexlify(as_bin): |
4811 | 2973 | * """For test infrastructure, thunk to _hexlify_sha1""" | 2973 | * """For test infrastructure, thunk to _hexlify_sha1""" |
4812 | 2974 | * if len(as_bin) != 20 or not PyString_CheckExact(as_bin): # <<<<<<<<<<<<<< | 2974 | * if len(as_bin) != 20 or not PyString_CheckExact(as_bin): # <<<<<<<<<<<<<< |
4813 | @@ -2985,7 +2985,7 @@ | |||
4814 | 2985 | } | 2985 | } |
4815 | 2986 | if (__pyx_t_4) { | 2986 | if (__pyx_t_4) { |
4816 | 2987 | 2987 | ||
4818 | 2988 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":412 | 2988 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":412 |
4819 | 2989 | * """For test infrastructure, thunk to _hexlify_sha1""" | 2989 | * """For test infrastructure, thunk to _hexlify_sha1""" |
4820 | 2990 | * if len(as_bin) != 20 or not PyString_CheckExact(as_bin): | 2990 | * if len(as_bin) != 20 or not PyString_CheckExact(as_bin): |
4821 | 2991 | * raise ValueError('not a 20-byte binary digest') # <<<<<<<<<<<<<< | 2991 | * raise ValueError('not a 20-byte binary digest') # <<<<<<<<<<<<<< |
4822 | @@ -3007,7 +3007,7 @@ | |||
4823 | 3007 | } | 3007 | } |
4824 | 3008 | __pyx_L5:; | 3008 | __pyx_L5:; |
4825 | 3009 | 3009 | ||
4827 | 3010 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":413 | 3010 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":413 |
4828 | 3011 | * if len(as_bin) != 20 or not PyString_CheckExact(as_bin): | 3011 | * if len(as_bin) != 20 or not PyString_CheckExact(as_bin): |
4829 | 3012 | * raise ValueError('not a 20-byte binary digest') | 3012 | * raise ValueError('not a 20-byte binary digest') |
4830 | 3013 | * as_hex = PyString_FromStringAndSize(NULL, 40) # <<<<<<<<<<<<<< | 3013 | * as_hex = PyString_FromStringAndSize(NULL, 40) # <<<<<<<<<<<<<< |
4831 | @@ -3020,7 +3020,7 @@ | |||
4832 | 3020 | __pyx_v_as_hex = __pyx_t_6; | 3020 | __pyx_v_as_hex = __pyx_t_6; |
4833 | 3021 | __pyx_t_6 = 0; | 3021 | __pyx_t_6 = 0; |
4834 | 3022 | 3022 | ||
4836 | 3023 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":414 | 3023 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":414 |
4837 | 3024 | * raise ValueError('not a 20-byte binary digest') | 3024 | * raise ValueError('not a 20-byte binary digest') |
4838 | 3025 | * as_hex = PyString_FromStringAndSize(NULL, 40) | 3025 | * as_hex = PyString_FromStringAndSize(NULL, 40) |
4839 | 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)) # <<<<<<<<<<<<<< |
4840 | @@ -3029,7 +3029,7 @@ | |||
4841 | 3029 | */ | 3029 | */ |
4842 | 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)); |
4843 | 3031 | 3031 | ||
4845 | 3032 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":415 | 3032 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":415 |
4846 | 3033 | * as_hex = PyString_FromStringAndSize(NULL, 40) | 3033 | * as_hex = PyString_FromStringAndSize(NULL, 40) |
4847 | 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)) |
4848 | 3035 | * return as_hex # <<<<<<<<<<<<<< | 3035 | * return as_hex # <<<<<<<<<<<<<< |
4849 | @@ -3055,7 +3055,7 @@ | |||
4850 | 3055 | return __pyx_r; | 3055 | return __pyx_r; |
4851 | 3056 | } | 3056 | } |
4852 | 3057 | 3057 | ||
4854 | 3058 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":418 | 3058 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":418 |
4855 | 3059 | * | 3059 | * |
4856 | 3060 | * | 3060 | * |
4857 | 3061 | * cdef int _key_to_sha1(key, char *sha1): # cannot_raise # <<<<<<<<<<<<<< | 3061 | * cdef int _key_to_sha1(key, char *sha1): # cannot_raise # <<<<<<<<<<<<<< |
4858 | @@ -3071,7 +3071,7 @@ | |||
4859 | 3071 | int __pyx_t_2; | 3071 | int __pyx_t_2; |
4860 | 3072 | __Pyx_RefNannySetupContext("_key_to_sha1"); | 3072 | __Pyx_RefNannySetupContext("_key_to_sha1"); |
4861 | 3073 | 3073 | ||
4863 | 3074 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":428 | 3074 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":428 |
4864 | 3075 | * cdef PyObject *p_val | 3075 | * cdef PyObject *p_val |
4865 | 3076 | * | 3076 | * |
4866 | 3077 | * if StaticTuple_CheckExact(key) and StaticTuple_GET_SIZE(key) == 1: # <<<<<<<<<<<<<< | 3077 | * if StaticTuple_CheckExact(key) and StaticTuple_GET_SIZE(key) == 1: # <<<<<<<<<<<<<< |
4867 | @@ -3087,7 +3087,7 @@ | |||
4868 | 3087 | } | 3087 | } |
4869 | 3088 | if (__pyx_t_2) { | 3088 | if (__pyx_t_2) { |
4870 | 3089 | 3089 | ||
4872 | 3090 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":429 | 3090 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":429 |
4873 | 3091 | * | 3091 | * |
4874 | 3092 | * if StaticTuple_CheckExact(key) and StaticTuple_GET_SIZE(key) == 1: | 3092 | * if StaticTuple_CheckExact(key) and StaticTuple_GET_SIZE(key) == 1: |
4875 | 3093 | * p_val = <PyObject *>StaticTuple_GET_ITEM(key, 0) # <<<<<<<<<<<<<< | 3093 | * p_val = <PyObject *>StaticTuple_GET_ITEM(key, 0) # <<<<<<<<<<<<<< |
4876 | @@ -3099,7 +3099,7 @@ | |||
4877 | 3099 | goto __pyx_L3; | 3099 | goto __pyx_L3; |
4878 | 3100 | } | 3100 | } |
4879 | 3101 | 3101 | ||
4881 | 3102 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":430 | 3102 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":430 |
4882 | 3103 | * if StaticTuple_CheckExact(key) and StaticTuple_GET_SIZE(key) == 1: | 3103 | * if StaticTuple_CheckExact(key) and StaticTuple_GET_SIZE(key) == 1: |
4883 | 3104 | * p_val = <PyObject *>StaticTuple_GET_ITEM(key, 0) | 3104 | * p_val = <PyObject *>StaticTuple_GET_ITEM(key, 0) |
4884 | 3105 | * elif (PyTuple_CheckExact(key) and PyTuple_GET_SIZE(key) == 1): # <<<<<<<<<<<<<< | 3105 | * elif (PyTuple_CheckExact(key) and PyTuple_GET_SIZE(key) == 1): # <<<<<<<<<<<<<< |
4885 | @@ -3114,7 +3114,7 @@ | |||
4886 | 3114 | } | 3114 | } |
4887 | 3115 | if (__pyx_t_1) { | 3115 | if (__pyx_t_1) { |
4888 | 3116 | 3116 | ||
4890 | 3117 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":431 | 3117 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":431 |
4891 | 3118 | * p_val = <PyObject *>StaticTuple_GET_ITEM(key, 0) | 3118 | * p_val = <PyObject *>StaticTuple_GET_ITEM(key, 0) |
4892 | 3119 | * elif (PyTuple_CheckExact(key) and PyTuple_GET_SIZE(key) == 1): | 3119 | * elif (PyTuple_CheckExact(key) and PyTuple_GET_SIZE(key) == 1): |
4893 | 3120 | * p_val = PyTuple_GET_ITEM_ptr_object(key, 0) # <<<<<<<<<<<<<< | 3120 | * p_val = PyTuple_GET_ITEM_ptr_object(key, 0) # <<<<<<<<<<<<<< |
4894 | @@ -3126,7 +3126,7 @@ | |||
4895 | 3126 | } | 3126 | } |
4896 | 3127 | /*else*/ { | 3127 | /*else*/ { |
4897 | 3128 | 3128 | ||
4899 | 3129 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":434 | 3129 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":434 |
4900 | 3130 | * else: | 3130 | * else: |
4901 | 3131 | * # Not a tuple or a StaticTuple | 3131 | * # Not a tuple or a StaticTuple |
4902 | 3132 | * return 0 # <<<<<<<<<<<<<< | 3132 | * return 0 # <<<<<<<<<<<<<< |
4903 | @@ -3138,7 +3138,7 @@ | |||
4904 | 3138 | } | 3138 | } |
4905 | 3139 | __pyx_L3:; | 3139 | __pyx_L3:; |
4906 | 3140 | 3140 | ||
4908 | 3141 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":435 | 3141 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":435 |
4909 | 3142 | * # Not a tuple or a StaticTuple | 3142 | * # Not a tuple or a StaticTuple |
4910 | 3143 | * return 0 | 3143 | * return 0 |
4911 | 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): # <<<<<<<<<<<<<< |
4912 | @@ -3153,7 +3153,7 @@ | |||
4913 | 3153 | } | 3153 | } |
4914 | 3154 | if (__pyx_t_2) { | 3154 | if (__pyx_t_2) { |
4915 | 3155 | 3155 | ||
4917 | 3156 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":436 | 3156 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":436 |
4918 | 3157 | * return 0 | 3157 | * return 0 |
4919 | 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): |
4920 | 3159 | * c_val = PyString_AS_STRING_ptr(p_val) # <<<<<<<<<<<<<< | 3159 | * c_val = PyString_AS_STRING_ptr(p_val) # <<<<<<<<<<<<<< |
4921 | @@ -3165,7 +3165,7 @@ | |||
4922 | 3165 | } | 3165 | } |
4923 | 3166 | /*else*/ { | 3166 | /*else*/ { |
4924 | 3167 | 3167 | ||
4926 | 3168 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":438 | 3168 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":438 |
4927 | 3169 | * c_val = PyString_AS_STRING_ptr(p_val) | 3169 | * c_val = PyString_AS_STRING_ptr(p_val) |
4928 | 3170 | * else: | 3170 | * else: |
4929 | 3171 | * return 0 # <<<<<<<<<<<<<< | 3171 | * return 0 # <<<<<<<<<<<<<< |
4930 | @@ -3177,7 +3177,7 @@ | |||
4931 | 3177 | } | 3177 | } |
4932 | 3178 | __pyx_L4:; | 3178 | __pyx_L4:; |
4933 | 3179 | 3179 | ||
4935 | 3180 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":439 | 3180 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":439 |
4936 | 3181 | * else: | 3181 | * else: |
4937 | 3182 | * return 0 | 3182 | * return 0 |
4938 | 3183 | * if strncmp(c_val, 'sha1:', 5) != 0: # <<<<<<<<<<<<<< | 3183 | * if strncmp(c_val, 'sha1:', 5) != 0: # <<<<<<<<<<<<<< |
4939 | @@ -3187,7 +3187,7 @@ | |||
4940 | 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); |
4941 | 3188 | if (__pyx_t_2) { | 3188 | if (__pyx_t_2) { |
4942 | 3189 | 3189 | ||
4944 | 3190 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":440 | 3190 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":440 |
4945 | 3191 | * return 0 | 3191 | * return 0 |
4946 | 3192 | * if strncmp(c_val, 'sha1:', 5) != 0: | 3192 | * if strncmp(c_val, 'sha1:', 5) != 0: |
4947 | 3193 | * return 0 # <<<<<<<<<<<<<< | 3193 | * return 0 # <<<<<<<<<<<<<< |
4948 | @@ -3200,7 +3200,7 @@ | |||
4949 | 3200 | } | 3200 | } |
4950 | 3201 | __pyx_L5:; | 3201 | __pyx_L5:; |
4951 | 3202 | 3202 | ||
4953 | 3203 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":441 | 3203 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":441 |
4954 | 3204 | * if strncmp(c_val, 'sha1:', 5) != 0: | 3204 | * if strncmp(c_val, 'sha1:', 5) != 0: |
4955 | 3205 | * return 0 | 3205 | * return 0 |
4956 | 3206 | * if not _unhexlify_sha1(c_val + 5, sha1): # <<<<<<<<<<<<<< | 3206 | * if not _unhexlify_sha1(c_val + 5, sha1): # <<<<<<<<<<<<<< |
4957 | @@ -3210,7 +3210,7 @@ | |||
4958 | 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)); |
4959 | 3211 | if (__pyx_t_2) { | 3211 | if (__pyx_t_2) { |
4960 | 3212 | 3212 | ||
4962 | 3213 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":442 | 3213 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":442 |
4963 | 3214 | * return 0 | 3214 | * return 0 |
4964 | 3215 | * if not _unhexlify_sha1(c_val + 5, sha1): | 3215 | * if not _unhexlify_sha1(c_val + 5, sha1): |
4965 | 3216 | * return 0 # <<<<<<<<<<<<<< | 3216 | * return 0 # <<<<<<<<<<<<<< |
4966 | @@ -3223,7 +3223,7 @@ | |||
4967 | 3223 | } | 3223 | } |
4968 | 3224 | __pyx_L6:; | 3224 | __pyx_L6:; |
4969 | 3225 | 3225 | ||
4971 | 3226 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":443 | 3226 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":443 |
4972 | 3227 | * if not _unhexlify_sha1(c_val + 5, sha1): | 3227 | * if not _unhexlify_sha1(c_val + 5, sha1): |
4973 | 3228 | * return 0 | 3228 | * return 0 |
4974 | 3229 | * return 1 # <<<<<<<<<<<<<< | 3229 | * return 1 # <<<<<<<<<<<<<< |
4975 | @@ -3243,7 +3243,7 @@ | |||
4976 | 3243 | return __pyx_r; | 3243 | return __pyx_r; |
4977 | 3244 | } | 3244 | } |
4978 | 3245 | 3245 | ||
4980 | 3246 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":446 | 3246 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":446 |
4981 | 3247 | * | 3247 | * |
4982 | 3248 | * | 3248 | * |
4983 | 3249 | * def _py_key_to_sha1(key): # <<<<<<<<<<<<<< | 3249 | * def _py_key_to_sha1(key): # <<<<<<<<<<<<<< |
4984 | @@ -3262,7 +3262,7 @@ | |||
4985 | 3262 | __pyx_self = __pyx_self; | 3262 | __pyx_self = __pyx_self; |
4986 | 3263 | __pyx_v_as_bin_sha = Py_None; __Pyx_INCREF(Py_None); | 3263 | __pyx_v_as_bin_sha = Py_None; __Pyx_INCREF(Py_None); |
4987 | 3264 | 3264 | ||
4989 | 3265 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":451 | 3265 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":451 |
4990 | 3266 | * This is a testing thunk to the C function. | 3266 | * This is a testing thunk to the C function. |
4991 | 3267 | * """ | 3267 | * """ |
4992 | 3268 | * as_bin_sha = PyString_FromStringAndSize(NULL, 20) # <<<<<<<<<<<<<< | 3268 | * as_bin_sha = PyString_FromStringAndSize(NULL, 20) # <<<<<<<<<<<<<< |
4993 | @@ -3275,7 +3275,7 @@ | |||
4994 | 3275 | __pyx_v_as_bin_sha = __pyx_t_1; | 3275 | __pyx_v_as_bin_sha = __pyx_t_1; |
4995 | 3276 | __pyx_t_1 = 0; | 3276 | __pyx_t_1 = 0; |
4996 | 3277 | 3277 | ||
4998 | 3278 | /* "/home/vila/src/bzr/integration/2.4.0-dev/bzrlib/_btree_serializer_pyx.pyx":452 | 3278 | /* "/home/vila/src/bzr/integration/2.4.2-dev/bzrlib/_btree_serializer_pyx.pyx":452 |
4999 | 3279 | * """ | 3279 | * """ |
5000 | 3280 | * as_bin_sha = PyString_FromStringAndSize(NULL, 20) | 3280 | * as_bin_sha = PyString_FromStringAndSize(NULL, 20) |
The diff has been truncated for viewing.
Actually merging it is blocked because https:/ /bugs.launchpad .net/udd/ +bug/848064 affects the target branch.