~ubuntu-branches/ubuntu/karmic/bzr/karmic-proposed

« back to all changes in this revision

Viewing changes to bzrlib/_dirstate_helpers_c.c

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2009-05-29 10:19:30 UTC
  • mfrom: (1.1.54 upstream)
  • Revision ID: james.westby@ubuntu.com-20090529101930-ct40yqwo5uts4djz
Tags: 1.15-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Generated by Pyrex 0.9.6.4 on Sat May 16 02:24:39 2009 */
2
 
 
3
 
#define PY_SSIZE_T_CLEAN
4
 
#include "Python.h"
5
 
#include "structmember.h"
6
 
#ifndef PY_LONG_LONG
7
 
  #define PY_LONG_LONG LONG_LONG
8
 
#endif
9
 
#if PY_VERSION_HEX < 0x02050000
10
 
  typedef int Py_ssize_t;
11
 
  #define PY_SSIZE_T_MAX INT_MAX
12
 
  #define PY_SSIZE_T_MIN INT_MIN
13
 
  #define PyInt_FromSsize_t(z) PyInt_FromLong(z)
14
 
  #define PyInt_AsSsize_t(o)    PyInt_AsLong(o)
15
 
#endif
16
 
#ifndef WIN32
17
 
  #ifndef __stdcall
18
 
    #define __stdcall
19
 
  #endif
20
 
  #ifndef __cdecl
21
 
    #define __cdecl
22
 
  #endif
23
 
#endif
24
 
#ifdef __cplusplus
25
 
#define __PYX_EXTERN_C extern "C"
26
 
#else
27
 
#define __PYX_EXTERN_C extern
28
 
#endif
29
 
#include <math.h>
30
 
#include "python-compat.h"
31
 
#include "_dirstate_helpers_c.h"
32
 
#include "stdlib.h"
33
 
#include "sys/stat.h"
34
 
#include "string.h"
35
 
 
36
 
 
37
 
typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/
38
 
typedef struct {PyObject **p; char *s; long n;} __Pyx_StringTabEntry; /*proto*/
39
 
 
40
 
static PyObject *__pyx_m;
41
 
static PyObject *__pyx_b;
42
 
static int __pyx_lineno;
43
 
static char *__pyx_filename;
44
 
static char **__pyx_f;
45
 
 
46
 
static char __pyx_mdoc[] = "Helper functions for DirState.\n\nThis is the python implementation for DirState functions.\n";
47
 
 
48
 
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/
49
 
 
50
 
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/
51
 
 
52
 
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
53
 
 
54
 
static PyObject *__Pyx_UnpackItem(PyObject *); /*proto*/
55
 
static int __Pyx_EndUnpack(PyObject *); /*proto*/
56
 
 
57
 
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
58
 
 
59
 
static void __Pyx_WriteUnraisable(char *name); /*proto*/
60
 
 
61
 
static int __Pyx_InternStrings(__Pyx_InternTabEntry *t); /*proto*/
62
 
 
63
 
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
64
 
 
65
 
static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/
66
 
 
67
 
static void __Pyx_AddTraceback(char *funcname); /*proto*/
68
 
 
69
 
/* Declarations from _dirstate_helpers_c */
70
 
 
71
 
struct __pyx_obj_19_dirstate_helpers_c_Reader {
72
 
  PyObject_HEAD
73
 
  struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader *__pyx_vtab;
74
 
  PyObject *state;
75
 
  PyObject *text;
76
 
  char *text_cstr;
77
 
  int text_size;
78
 
  char *end_cstr;
79
 
  char *cur_cstr;
80
 
  char *next;
81
 
};
82
 
 
83
 
struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC {
84
 
  PyObject_HEAD
85
 
  struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *__pyx_vtab;
86
 
  PyObject *old_dirname_to_file_id;
87
 
  PyObject *new_dirname_to_file_id;
88
 
  PyObject *uninteresting;
89
 
  PyObject *last_source_parent;
90
 
  PyObject *last_target_parent;
91
 
  PyObject *include_unchanged;
92
 
  PyObject *use_filesystem_for_exec;
93
 
  PyObject *utf8_decode;
94
 
  PyObject *searched_specific_files;
95
 
  PyObject *search_specific_files;
96
 
  PyObject *state;
97
 
  PyObject *current_root;
98
 
  PyObject *current_root_unicode;
99
 
  PyObject *root_entries;
100
 
  int root_entries_pos;
101
 
  int root_entries_len;
102
 
  PyObject *root_abspath;
103
 
  int source_index;
104
 
  int target_index;
105
 
  int want_unversioned;
106
 
  PyObject *tree;
107
 
  PyObject *dir_iterator;
108
 
  int block_index;
109
 
  PyObject *current_block;
110
 
  int current_block_pos;
111
 
  PyObject *current_block_list;
112
 
  PyObject *current_dir_info;
113
 
  PyObject *current_dir_list;
114
 
  int path_index;
115
 
  PyObject *root_dir_info;
116
 
  PyObject *bisect_left;
117
 
  PyObject *pathjoin;
118
 
  PyObject *fstat;
119
 
  PyObject *sha_file;
120
 
};
121
 
 
122
 
 
123
 
struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader {
124
 
  char *(*get_next)(struct __pyx_obj_19_dirstate_helpers_c_Reader *,int *);
125
 
  PyObject *(*get_next_str)(struct __pyx_obj_19_dirstate_helpers_c_Reader *);
126
 
  int (*_init)(struct __pyx_obj_19_dirstate_helpers_c_Reader *);
127
 
  PyObject *(*_get_entry)(struct __pyx_obj_19_dirstate_helpers_c_Reader *,int,void **,int *);
128
 
};
129
 
static struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader *__pyx_vtabptr_19_dirstate_helpers_c_Reader;
130
 
 
131
 
 
132
 
struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC {
133
 
  PyObject *(*_process_entry)(struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *,PyObject *,PyObject *);
134
 
  void (*_update_current_block)(struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *);
135
 
  PyObject *(*_iter_next)(struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *);
136
 
  PyObject *(*_maybe_tree_ref)(struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *,PyObject *);
137
 
  PyObject *(*_loop_one_block)(struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *);
138
 
};
139
 
static struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *__pyx_vtabptr_19_dirstate_helpers_c_ProcessEntryC;
140
 
 
141
 
static PyTypeObject *__pyx_ptype_19_dirstate_helpers_c_Reader = 0;
142
 
static PyTypeObject *__pyx_ptype_19_dirstate_helpers_c_ProcessEntryC = 0;
143
 
static int __pyx_v_19_dirstate_helpers_c_ERROR_PATH_NOT_FOUND;
144
 
static int __pyx_v_19_dirstate_helpers_c_ERROR_DIRECTORY;
145
 
static PyObject *__pyx_v_19_dirstate_helpers_c__kind_absent;
146
 
static PyObject *__pyx_v_19_dirstate_helpers_c__kind_file;
147
 
static PyObject *__pyx_v_19_dirstate_helpers_c__kind_directory;
148
 
static PyObject *__pyx_v_19_dirstate_helpers_c__kind_symlink;
149
 
static PyObject *__pyx_v_19_dirstate_helpers_c__kind_relocated;
150
 
static PyObject *__pyx_v_19_dirstate_helpers_c__kind_tree_reference;
151
 
static PyObject *__pyx_k16;
152
 
static PyObject *__pyx_k17;
153
 
static PyObject *__pyx_k18;
154
 
static void *__pyx_f_19_dirstate_helpers_c__my_memrchr(void *,int,size_t); /*proto*/
155
 
static PyObject *__pyx_f_19_dirstate_helpers_c_safe_string_from_size(char *,Py_ssize_t); /*proto*/
156
 
static int __pyx_f_19_dirstate_helpers_c__is_aligned(void *); /*proto*/
157
 
static int __pyx_f_19_dirstate_helpers_c__cmp_by_dirs(char *,int,char *,int); /*proto*/
158
 
static int __pyx_f_19_dirstate_helpers_c__cmp_path_by_dirblock(char *,int,char *,int); /*proto*/
159
 
static int __pyx_f_19_dirstate_helpers_c_minikind_from_mode(int); /*proto*/
160
 
static PyObject *__pyx_f_19_dirstate_helpers_c__pack_stat(PyObject *); /*proto*/
161
 
static PyObject *__pyx_f_19_dirstate_helpers_c__update_entry(PyObject *,PyObject *,PyObject *,PyObject *); /*proto*/
162
 
static char __pyx_f_19_dirstate_helpers_c__minikind_from_string(PyObject *); /*proto*/
163
 
static PyObject *__pyx_f_19_dirstate_helpers_c__minikind_to_kind(char); /*proto*/
164
 
static int __pyx_f_19_dirstate_helpers_c__versioned_minikind(char); /*proto*/
165
 
 
166
 
 
167
 
/* Implementation of _dirstate_helpers_c */
168
 
 
169
 
static char __pyx_k11[] = "bzrlib.dirstate";
170
 
static char __pyx_k13[] = "bzrlib.osutils";
171
 
static char __pyx_k26[] = "tree-reference";
172
 
 
173
 
static PyObject *__pyx_n_binascii;
174
 
static PyObject *__pyx_n_bisect;
175
 
static PyObject *__pyx_n_errno;
176
 
static PyObject *__pyx_n_os;
177
 
static PyObject *__pyx_n_stat;
178
 
static PyObject *__pyx_n_sys;
179
 
static PyObject *__pyx_n_bzrlib;
180
 
static PyObject *__pyx_n_cache_utf8;
181
 
static PyObject *__pyx_n_errors;
182
 
static PyObject *__pyx_n_osutils;
183
 
static PyObject *__pyx_n_DirState;
184
 
static PyObject *__pyx_n_pathjoin;
185
 
static PyObject *__pyx_n_splitpath;
186
 
static PyObject *__pyx_n_b2a_base64;
187
 
static PyObject *__pyx_n__encode;
188
 
static PyObject *__pyx_n_struct;
189
 
static PyObject *__pyx_n_pack;
190
 
static PyObject *__pyx_n_absent;
191
 
static PyObject *__pyx_n_file;
192
 
static PyObject *__pyx_n_directory;
193
 
static PyObject *__pyx_n_symlink;
194
 
static PyObject *__pyx_n_relocated;
195
 
 
196
 
static PyObject *__pyx_k11p;
197
 
static PyObject *__pyx_k13p;
198
 
static PyObject *__pyx_k26p;
199
 
 
200
 
static void *__pyx_f_19_dirstate_helpers_c__my_memrchr(void *__pyx_v_s,int __pyx_v_c,size_t __pyx_v_n) {
201
 
  char *__pyx_v_pos;
202
 
  char *__pyx_v_start;
203
 
  void *__pyx_r;
204
 
  int __pyx_1;
205
 
 
206
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":127 */
207
 
  __pyx_v_start = ((char *)__pyx_v_s);
208
 
 
209
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":128 */
210
 
  __pyx_v_pos = ((__pyx_v_start + __pyx_v_n) - 1);
211
 
 
212
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":129 */
213
 
  while (1) {
214
 
    __pyx_1 = (__pyx_v_pos >= __pyx_v_start);
215
 
    if (!__pyx_1) break;
216
 
 
217
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":130 */
218
 
    __pyx_1 = ((__pyx_v_pos[0]) == __pyx_v_c);
219
 
    if (__pyx_1) {
220
 
      __pyx_r = ((void *)__pyx_v_pos);
221
 
      goto __pyx_L0;
222
 
      goto __pyx_L4;
223
 
    }
224
 
    __pyx_L4:;
225
 
 
226
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":132 */
227
 
    __pyx_v_pos = (__pyx_v_pos - 1);
228
 
  }
229
 
 
230
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":133 */
231
 
  __pyx_r = NULL;
232
 
  goto __pyx_L0;
233
 
 
234
 
  __pyx_r = 0;
235
 
  __pyx_L0:;
236
 
  return __pyx_r;
237
 
}
238
 
 
239
 
static PyObject *__pyx_k27p;
240
 
 
241
 
static char __pyx_k27[] = "Must be a single character string, not %s";
242
 
 
243
 
static PyObject *__pyx_f_19_dirstate_helpers_c__py_memrchr(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
244
 
static char __pyx_doc_19_dirstate_helpers_c__py_memrchr[] = "Just to expose _my_memrchr for testing.\n\n    :param s: The Python string to search\n    :param c: The character to search for\n    :return: The offset to the last instance of \'c\' in s\n    ";
245
 
static PyObject *__pyx_f_19_dirstate_helpers_c__py_memrchr(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
246
 
  PyObject *__pyx_v_s = 0;
247
 
  PyObject *__pyx_v_c = 0;
248
 
  void *__pyx_v__s;
249
 
  void *__pyx_v_found;
250
 
  int __pyx_v_length;
251
 
  char *__pyx_v__c;
252
 
  PyObject *__pyx_r;
253
 
  PyObject *__pyx_1 = 0;
254
 
  PyObject *__pyx_2 = 0;
255
 
  int __pyx_3;
256
 
  static char *__pyx_argnames[] = {"s","c",0};
257
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_s, &__pyx_v_c)) return 0;
258
 
  Py_INCREF(__pyx_v_s);
259
 
  Py_INCREF(__pyx_v_c);
260
 
 
261
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":148 */
262
 
  __pyx_v__s = PyString_AsString(__pyx_v_s);
263
 
 
264
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":149 */
265
 
  __pyx_v_length = PyString_Size(__pyx_v_s);
266
 
 
267
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":151 */
268
 
  __pyx_v__c = PyString_AsString(__pyx_v_c);
269
 
 
270
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":152 */
271
 
  #ifndef PYREX_WITHOUT_ASSERTIONS
272
 
  __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; goto __pyx_L1;}
273
 
  Py_INCREF(__pyx_v_c);
274
 
  PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_c);
275
 
  __pyx_2 = PyNumber_Remainder(__pyx_k27p, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; goto __pyx_L1;}
276
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
277
 
  if (!(PyString_Size(__pyx_v_c) == 1)) {
278
 
    PyErr_SetObject(PyExc_AssertionError, __pyx_2);
279
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; goto __pyx_L1;}
280
 
  }
281
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
282
 
  #endif
283
 
 
284
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":154 */
285
 
  __pyx_v_found = __pyx_f_19_dirstate_helpers_c__my_memrchr(__pyx_v__s,(__pyx_v__c[0]),__pyx_v_length);
286
 
 
287
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":155 */
288
 
  __pyx_3 = (__pyx_v_found == NULL);
289
 
  if (__pyx_3) {
290
 
    Py_INCREF(Py_None);
291
 
    __pyx_r = Py_None;
292
 
    goto __pyx_L0;
293
 
    goto __pyx_L2;
294
 
  }
295
 
  __pyx_L2:;
296
 
 
297
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":157 */
298
 
  __pyx_1 = PyInt_FromLong((((char *)__pyx_v_found) - ((char *)__pyx_v__s))); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; goto __pyx_L1;}
299
 
  __pyx_r = __pyx_1;
300
 
  __pyx_1 = 0;
301
 
  goto __pyx_L0;
302
 
 
303
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
304
 
  goto __pyx_L0;
305
 
  __pyx_L1:;
306
 
  Py_XDECREF(__pyx_1);
307
 
  Py_XDECREF(__pyx_2);
308
 
  __Pyx_AddTraceback("_dirstate_helpers_c._py_memrchr");
309
 
  __pyx_r = 0;
310
 
  __pyx_L0:;
311
 
  Py_DECREF(__pyx_v_s);
312
 
  Py_DECREF(__pyx_v_c);
313
 
  return __pyx_r;
314
 
}
315
 
 
316
 
static PyObject *__pyx_n_AssertionError;
317
 
 
318
 
static PyObject *__pyx_k28p;
319
 
 
320
 
static char __pyx_k28[] = "tried to create a string with an invalid size: %d @0x%x";
321
 
 
322
 
static PyObject *__pyx_f_19_dirstate_helpers_c_safe_string_from_size(char *__pyx_v_s,Py_ssize_t __pyx_v_size) {
323
 
  PyObject *__pyx_r;
324
 
  int __pyx_1;
325
 
  PyObject *__pyx_2 = 0;
326
 
  PyObject *__pyx_3 = 0;
327
 
  PyObject *__pyx_4 = 0;
328
 
  PyObject *__pyx_5 = 0;
329
 
 
330
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":160 */
331
 
  __pyx_1 = (__pyx_v_size < 0);
332
 
  if (__pyx_1) {
333
 
    __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_AssertionError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; goto __pyx_L1;}
334
 
    __pyx_3 = PyInt_FromSsize_t(__pyx_v_size); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; goto __pyx_L1;}
335
 
    __pyx_4 = PyInt_FromLong(((int)__pyx_v_s)); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; goto __pyx_L1;}
336
 
    __pyx_5 = PyTuple_New(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; goto __pyx_L1;}
337
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_3);
338
 
    PyTuple_SET_ITEM(__pyx_5, 1, __pyx_4);
339
 
    __pyx_3 = 0;
340
 
    __pyx_4 = 0;
341
 
    __pyx_3 = PyNumber_Remainder(__pyx_k28p, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; goto __pyx_L1;}
342
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
343
 
    __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; goto __pyx_L1;}
344
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3);
345
 
    __pyx_3 = 0;
346
 
    __pyx_5 = PyObject_CallObject(__pyx_2, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; goto __pyx_L1;}
347
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
348
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
349
 
    __Pyx_Raise(__pyx_5, 0, 0);
350
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
351
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; goto __pyx_L1;}
352
 
    goto __pyx_L2;
353
 
  }
354
 
  __pyx_L2:;
355
 
 
356
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":165 */
357
 
  __pyx_3 = PyString_FromStringAndSize(__pyx_v_s,__pyx_v_size); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; goto __pyx_L1;}
358
 
  __pyx_r = __pyx_3;
359
 
  __pyx_3 = 0;
360
 
  goto __pyx_L0;
361
 
 
362
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
363
 
  goto __pyx_L0;
364
 
  __pyx_L1:;
365
 
  Py_XDECREF(__pyx_2);
366
 
  Py_XDECREF(__pyx_3);
367
 
  Py_XDECREF(__pyx_4);
368
 
  Py_XDECREF(__pyx_5);
369
 
  __Pyx_AddTraceback("_dirstate_helpers_c.safe_string_from_size");
370
 
  __pyx_r = 0;
371
 
  __pyx_L0:;
372
 
  return __pyx_r;
373
 
}
374
 
 
375
 
static int __pyx_f_19_dirstate_helpers_c__is_aligned(void *__pyx_v_ptr) {
376
 
  int __pyx_r;
377
 
  __pyx_r = ((((intptr_t)__pyx_v_ptr) & ((sizeof(int)) - 1)) == 0);
378
 
  goto __pyx_L0;
379
 
 
380
 
  __pyx_r = 0;
381
 
  __pyx_L0:;
382
 
  return __pyx_r;
383
 
}
384
 
 
385
 
static int __pyx_f_19_dirstate_helpers_c__cmp_by_dirs(char *__pyx_v_path1,int __pyx_v_size1,char *__pyx_v_path2,int __pyx_v_size2) {
386
 
  unsigned char *__pyx_v_cur1;
387
 
  unsigned char *__pyx_v_cur2;
388
 
  unsigned char *__pyx_v_end1;
389
 
  unsigned char *__pyx_v_end2;
390
 
  int *__pyx_v_cur_int1;
391
 
  int *__pyx_v_cur_int2;
392
 
  int *__pyx_v_end_int1;
393
 
  int *__pyx_v_end_int2;
394
 
  int __pyx_r;
395
 
  int __pyx_1;
396
 
 
397
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":186 */
398
 
  __pyx_1 = (__pyx_v_path1 == __pyx_v_path2);
399
 
  if (__pyx_1) {
400
 
    __pyx_1 = (__pyx_v_size1 == __pyx_v_size2);
401
 
  }
402
 
  if (__pyx_1) {
403
 
    __pyx_r = 0;
404
 
    goto __pyx_L0;
405
 
    goto __pyx_L2;
406
 
  }
407
 
  __pyx_L2:;
408
 
 
409
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":189 */
410
 
  __pyx_v_end1 = (((unsigned char *)__pyx_v_path1) + __pyx_v_size1);
411
 
 
412
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":190 */
413
 
  __pyx_v_end2 = (((unsigned char *)__pyx_v_path2) + __pyx_v_size2);
414
 
 
415
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":197 */
416
 
  __pyx_1 = __pyx_f_19_dirstate_helpers_c__is_aligned(__pyx_v_path1);
417
 
  if (__pyx_1) {
418
 
    __pyx_1 = __pyx_f_19_dirstate_helpers_c__is_aligned(__pyx_v_path2);
419
 
  }
420
 
  if (__pyx_1) {
421
 
 
422
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":198 */
423
 
    __pyx_v_cur_int1 = ((int *)__pyx_v_path1);
424
 
 
425
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":199 */
426
 
    __pyx_v_cur_int2 = ((int *)__pyx_v_path2);
427
 
 
428
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":200 */
429
 
    __pyx_v_end_int1 = ((int *)((__pyx_v_path1 + __pyx_v_size1) - (__pyx_v_size1 % (sizeof(int)))));
430
 
 
431
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":201 */
432
 
    __pyx_v_end_int2 = ((int *)((__pyx_v_path2 + __pyx_v_size2) - (__pyx_v_size2 % (sizeof(int)))));
433
 
 
434
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":203 */
435
 
    while (1) {
436
 
      __pyx_1 = (__pyx_v_cur_int1 < __pyx_v_end_int1);
437
 
      if (__pyx_1) {
438
 
        __pyx_1 = (__pyx_v_cur_int2 < __pyx_v_end_int2);
439
 
      }
440
 
      if (!__pyx_1) break;
441
 
 
442
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":204 */
443
 
      __pyx_1 = ((__pyx_v_cur_int1[0]) != (__pyx_v_cur_int2[0]));
444
 
      if (__pyx_1) {
445
 
        goto __pyx_L5;
446
 
        goto __pyx_L6;
447
 
      }
448
 
      __pyx_L6:;
449
 
 
450
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":206 */
451
 
      __pyx_v_cur_int1 = (__pyx_v_cur_int1 + 1);
452
 
 
453
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":207 */
454
 
      __pyx_v_cur_int2 = (__pyx_v_cur_int2 + 1);
455
 
    }
456
 
    __pyx_L5:;
457
 
 
458
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":209 */
459
 
    __pyx_v_cur1 = ((unsigned char *)__pyx_v_cur_int1);
460
 
 
461
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":210 */
462
 
    __pyx_v_cur2 = ((unsigned char *)__pyx_v_cur_int2);
463
 
    goto __pyx_L3;
464
 
  }
465
 
  /*else*/ {
466
 
 
467
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":212 */
468
 
    __pyx_v_cur1 = ((unsigned char *)__pyx_v_path1);
469
 
 
470
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":213 */
471
 
    __pyx_v_cur2 = ((unsigned char *)__pyx_v_path2);
472
 
  }
473
 
  __pyx_L3:;
474
 
 
475
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":215 */
476
 
  while (1) {
477
 
    __pyx_1 = (__pyx_v_cur1 < __pyx_v_end1);
478
 
    if (__pyx_1) {
479
 
      __pyx_1 = (__pyx_v_cur2 < __pyx_v_end2);
480
 
    }
481
 
    if (!__pyx_1) break;
482
 
 
483
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":216 */
484
 
    __pyx_1 = ((__pyx_v_cur1[0]) == (__pyx_v_cur2[0]));
485
 
    if (__pyx_1) {
486
 
 
487
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":218 */
488
 
      __pyx_v_cur1 = (__pyx_v_cur1 + 1);
489
 
 
490
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":219 */
491
 
      __pyx_v_cur2 = (__pyx_v_cur2 + 1);
492
 
 
493
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":220 */
494
 
      goto __pyx_L7;
495
 
      goto __pyx_L9;
496
 
    }
497
 
    __pyx_L9:;
498
 
 
499
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":222 */
500
 
    __pyx_1 = ((__pyx_v_cur1[0]) == '/');
501
 
    if (__pyx_1) {
502
 
      __pyx_r = (-1);
503
 
      goto __pyx_L0;
504
 
      goto __pyx_L10;
505
 
    }
506
 
    __pyx_1 = ((__pyx_v_cur2[0]) == '/');
507
 
    if (__pyx_1) {
508
 
      __pyx_r = 1;
509
 
      goto __pyx_L0;
510
 
      goto __pyx_L10;
511
 
    }
512
 
    __pyx_1 = ((__pyx_v_cur1[0]) < (__pyx_v_cur2[0]));
513
 
    if (__pyx_1) {
514
 
      __pyx_r = (-1);
515
 
      goto __pyx_L0;
516
 
      goto __pyx_L10;
517
 
    }
518
 
    /*else*/ {
519
 
      __pyx_r = 1;
520
 
      goto __pyx_L0;
521
 
    }
522
 
    __pyx_L10:;
523
 
    __pyx_L7:;
524
 
  }
525
 
 
526
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":232 */
527
 
  __pyx_1 = (__pyx_v_cur1 < __pyx_v_end1);
528
 
  if (__pyx_1) {
529
 
    __pyx_r = 1;
530
 
    goto __pyx_L0;
531
 
    goto __pyx_L11;
532
 
  }
533
 
  __pyx_L11:;
534
 
 
535
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":234 */
536
 
  __pyx_1 = (__pyx_v_cur2 < __pyx_v_end2);
537
 
  if (__pyx_1) {
538
 
    __pyx_r = (-1);
539
 
    goto __pyx_L0;
540
 
    goto __pyx_L12;
541
 
  }
542
 
  __pyx_L12:;
543
 
 
544
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":237 */
545
 
  __pyx_r = 0;
546
 
  goto __pyx_L0;
547
 
 
548
 
  __pyx_r = 0;
549
 
  __pyx_L0:;
550
 
  return __pyx_r;
551
 
}
552
 
 
553
 
static PyObject *__pyx_n_TypeError;
554
 
static PyObject *__pyx_n_type;
555
 
 
556
 
static PyObject *__pyx_k29p;
557
 
static PyObject *__pyx_k30p;
558
 
 
559
 
static char __pyx_k29[] = "'path1' must be a plain string, not %s: %r";
560
 
static char __pyx_k30[] = "'path2' must be a plain string, not %s: %r";
561
 
 
562
 
static PyObject *__pyx_f_19_dirstate_helpers_c_cmp_by_dirs_c(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
563
 
static char __pyx_doc_19_dirstate_helpers_c_cmp_by_dirs_c[] = "Compare two paths directory by directory.\n\n    This is equivalent to doing::\n\n       cmp(path1.split(\'/\'), path2.split(\'/\'))\n\n    The idea is that you should compare path components separately. This\n    differs from plain ``cmp(path1, path2)`` for paths like ``\'a-b\'`` and\n    ``a/b``. \"a-b\" comes after \"a\" but would come before \"a/b\" lexically.\n\n    :param path1: first path\n    :param path2: second path\n    :return: negative number if ``path1`` comes first,\n        0 if paths are equal,\n        and positive number if ``path2`` sorts first\n    ";
564
 
static PyObject *__pyx_f_19_dirstate_helpers_c_cmp_by_dirs_c(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
565
 
  PyObject *__pyx_v_path1 = 0;
566
 
  PyObject *__pyx_v_path2 = 0;
567
 
  PyObject *__pyx_r;
568
 
  int __pyx_1;
569
 
  PyObject *__pyx_2 = 0;
570
 
  PyObject *__pyx_3 = 0;
571
 
  PyObject *__pyx_4 = 0;
572
 
  PyObject *__pyx_5 = 0;
573
 
  static char *__pyx_argnames[] = {"path1","path2",0};
574
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_path1, &__pyx_v_path2)) return 0;
575
 
  Py_INCREF(__pyx_v_path1);
576
 
  Py_INCREF(__pyx_v_path2);
577
 
 
578
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":257 */
579
 
  __pyx_1 = (!PyString_CheckExact(__pyx_v_path1));
580
 
  if (__pyx_1) {
581
 
    __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; goto __pyx_L1;}
582
 
    __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_type); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; goto __pyx_L1;}
583
 
    __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; goto __pyx_L1;}
584
 
    Py_INCREF(__pyx_v_path1);
585
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_path1);
586
 
    __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; goto __pyx_L1;}
587
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
588
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
589
 
    __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; goto __pyx_L1;}
590
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_5);
591
 
    Py_INCREF(__pyx_v_path1);
592
 
    PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_path1);
593
 
    __pyx_5 = 0;
594
 
    __pyx_4 = PyNumber_Remainder(__pyx_k29p, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; goto __pyx_L1;}
595
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
596
 
    __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; goto __pyx_L1;}
597
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4);
598
 
    __pyx_4 = 0;
599
 
    __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; goto __pyx_L1;}
600
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
601
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
602
 
    __Pyx_Raise(__pyx_3, 0, 0);
603
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
604
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; goto __pyx_L1;}
605
 
    goto __pyx_L2;
606
 
  }
607
 
  __pyx_L2:;
608
 
 
609
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":260 */
610
 
  __pyx_1 = (!PyString_CheckExact(__pyx_v_path2));
611
 
  if (__pyx_1) {
612
 
    __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; goto __pyx_L1;}
613
 
    __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_type); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 262; goto __pyx_L1;}
614
 
    __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 262; goto __pyx_L1;}
615
 
    Py_INCREF(__pyx_v_path2);
616
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_path2);
617
 
    __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 262; goto __pyx_L1;}
618
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
619
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
620
 
    __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 262; goto __pyx_L1;}
621
 
    PyTuple_SET_ITEM(__pyx_2, 0, __pyx_3);
622
 
    Py_INCREF(__pyx_v_path2);
623
 
    PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_path2);
624
 
    __pyx_3 = 0;
625
 
    __pyx_5 = PyNumber_Remainder(__pyx_k30p, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 262; goto __pyx_L1;}
626
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
627
 
    __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; goto __pyx_L1;}
628
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_5);
629
 
    __pyx_5 = 0;
630
 
    __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; goto __pyx_L1;}
631
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
632
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
633
 
    __Pyx_Raise(__pyx_2, 0, 0);
634
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
635
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; goto __pyx_L1;}
636
 
    goto __pyx_L3;
637
 
  }
638
 
  __pyx_L3:;
639
 
 
640
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":263 */
641
 
  __pyx_5 = PyInt_FromLong(__pyx_f_19_dirstate_helpers_c__cmp_by_dirs(PyString_AsString(__pyx_v_path1),PyString_Size(__pyx_v_path1),PyString_AsString(__pyx_v_path2),PyString_Size(__pyx_v_path2))); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 263; goto __pyx_L1;}
642
 
  __pyx_r = __pyx_5;
643
 
  __pyx_5 = 0;
644
 
  goto __pyx_L0;
645
 
 
646
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
647
 
  goto __pyx_L0;
648
 
  __pyx_L1:;
649
 
  Py_XDECREF(__pyx_2);
650
 
  Py_XDECREF(__pyx_3);
651
 
  Py_XDECREF(__pyx_4);
652
 
  Py_XDECREF(__pyx_5);
653
 
  __Pyx_AddTraceback("_dirstate_helpers_c.cmp_by_dirs_c");
654
 
  __pyx_r = 0;
655
 
  __pyx_L0:;
656
 
  Py_DECREF(__pyx_v_path1);
657
 
  Py_DECREF(__pyx_v_path2);
658
 
  return __pyx_r;
659
 
}
660
 
 
661
 
static PyObject *__pyx_k31p;
662
 
static PyObject *__pyx_k32p;
663
 
 
664
 
static char __pyx_k31[] = "'path1' must be a plain string, not %s: %r";
665
 
static char __pyx_k32[] = "'path2' must be a plain string, not %s: %r";
666
 
 
667
 
static PyObject *__pyx_f_19_dirstate_helpers_c__cmp_path_by_dirblock_c(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
668
 
static char __pyx_doc_19_dirstate_helpers_c__cmp_path_by_dirblock_c[] = "Compare two paths based on what directory they are in.\n\n    This generates a sort order, such that all children of a directory are\n    sorted together, and grandchildren are in the same order as the\n    children appear. But all grandchildren come after all children.\n\n    In other words, all entries in a directory are sorted together, and\n    directorys are sorted in cmp_by_dirs order.\n\n    :param path1: first path\n    :param path2: the second path\n    :return: negative number if ``path1`` comes first,\n        0 if paths are equal\n        and a positive number if ``path2`` sorts first\n    ";
669
 
static PyObject *__pyx_f_19_dirstate_helpers_c__cmp_path_by_dirblock_c(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
670
 
  PyObject *__pyx_v_path1 = 0;
671
 
  PyObject *__pyx_v_path2 = 0;
672
 
  PyObject *__pyx_r;
673
 
  int __pyx_1;
674
 
  PyObject *__pyx_2 = 0;
675
 
  PyObject *__pyx_3 = 0;
676
 
  PyObject *__pyx_4 = 0;
677
 
  PyObject *__pyx_5 = 0;
678
 
  static char *__pyx_argnames[] = {"path1","path2",0};
679
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_path1, &__pyx_v_path2)) return 0;
680
 
  Py_INCREF(__pyx_v_path1);
681
 
  Py_INCREF(__pyx_v_path2);
682
 
 
683
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":285 */
684
 
  __pyx_1 = (!PyString_CheckExact(__pyx_v_path1));
685
 
  if (__pyx_1) {
686
 
    __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; goto __pyx_L1;}
687
 
    __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_type); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; goto __pyx_L1;}
688
 
    __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; goto __pyx_L1;}
689
 
    Py_INCREF(__pyx_v_path1);
690
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_path1);
691
 
    __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; goto __pyx_L1;}
692
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
693
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
694
 
    __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; goto __pyx_L1;}
695
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_5);
696
 
    Py_INCREF(__pyx_v_path1);
697
 
    PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_path1);
698
 
    __pyx_5 = 0;
699
 
    __pyx_4 = PyNumber_Remainder(__pyx_k31p, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; goto __pyx_L1;}
700
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
701
 
    __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; goto __pyx_L1;}
702
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4);
703
 
    __pyx_4 = 0;
704
 
    __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; goto __pyx_L1;}
705
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
706
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
707
 
    __Pyx_Raise(__pyx_3, 0, 0);
708
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
709
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; goto __pyx_L1;}
710
 
    goto __pyx_L2;
711
 
  }
712
 
  __pyx_L2:;
713
 
 
714
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":288 */
715
 
  __pyx_1 = (!PyString_CheckExact(__pyx_v_path2));
716
 
  if (__pyx_1) {
717
 
    __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; goto __pyx_L1;}
718
 
    __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_type); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; goto __pyx_L1;}
719
 
    __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; goto __pyx_L1;}
720
 
    Py_INCREF(__pyx_v_path2);
721
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_path2);
722
 
    __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; goto __pyx_L1;}
723
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
724
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
725
 
    __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; goto __pyx_L1;}
726
 
    PyTuple_SET_ITEM(__pyx_2, 0, __pyx_3);
727
 
    Py_INCREF(__pyx_v_path2);
728
 
    PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_path2);
729
 
    __pyx_3 = 0;
730
 
    __pyx_5 = PyNumber_Remainder(__pyx_k32p, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; goto __pyx_L1;}
731
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
732
 
    __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; goto __pyx_L1;}
733
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_5);
734
 
    __pyx_5 = 0;
735
 
    __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; goto __pyx_L1;}
736
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
737
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
738
 
    __Pyx_Raise(__pyx_2, 0, 0);
739
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
740
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; goto __pyx_L1;}
741
 
    goto __pyx_L3;
742
 
  }
743
 
  __pyx_L3:;
744
 
 
745
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":291 */
746
 
  __pyx_5 = PyInt_FromLong(__pyx_f_19_dirstate_helpers_c__cmp_path_by_dirblock(PyString_AsString(__pyx_v_path1),PyString_Size(__pyx_v_path1),PyString_AsString(__pyx_v_path2),PyString_Size(__pyx_v_path2))); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; goto __pyx_L1;}
747
 
  __pyx_r = __pyx_5;
748
 
  __pyx_5 = 0;
749
 
  goto __pyx_L0;
750
 
 
751
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
752
 
  goto __pyx_L0;
753
 
  __pyx_L1:;
754
 
  Py_XDECREF(__pyx_2);
755
 
  Py_XDECREF(__pyx_3);
756
 
  Py_XDECREF(__pyx_4);
757
 
  Py_XDECREF(__pyx_5);
758
 
  __Pyx_AddTraceback("_dirstate_helpers_c._cmp_path_by_dirblock_c");
759
 
  __pyx_r = 0;
760
 
  __pyx_L0:;
761
 
  Py_DECREF(__pyx_v_path1);
762
 
  Py_DECREF(__pyx_v_path2);
763
 
  return __pyx_r;
764
 
}
765
 
 
766
 
static char __pyx_k33[] = "";
767
 
static char __pyx_k34[] = "";
768
 
 
769
 
static int __pyx_f_19_dirstate_helpers_c__cmp_path_by_dirblock(char *__pyx_v_path1,int __pyx_v_path1_len,char *__pyx_v_path2,int __pyx_v_path2_len) {
770
 
  char *__pyx_v_dirname1;
771
 
  int __pyx_v_dirname1_len;
772
 
  char *__pyx_v_dirname2;
773
 
  int __pyx_v_dirname2_len;
774
 
  char *__pyx_v_basename1;
775
 
  int __pyx_v_basename1_len;
776
 
  char *__pyx_v_basename2;
777
 
  int __pyx_v_basename2_len;
778
 
  int __pyx_v_cur_len;
779
 
  int __pyx_v_cmp_val;
780
 
  int __pyx_r;
781
 
  int __pyx_1;
782
 
 
783
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":314 */
784
 
  __pyx_1 = (__pyx_v_path1_len == 0);
785
 
  if (__pyx_1) {
786
 
    __pyx_1 = (__pyx_v_path2_len == 0);
787
 
  }
788
 
  if (__pyx_1) {
789
 
    __pyx_r = 0;
790
 
    goto __pyx_L0;
791
 
    goto __pyx_L2;
792
 
  }
793
 
  __pyx_L2:;
794
 
 
795
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":317 */
796
 
  __pyx_1 = (__pyx_v_path1 == __pyx_v_path2);
797
 
  if (__pyx_1) {
798
 
    __pyx_1 = (__pyx_v_path1_len == __pyx_v_path2_len);
799
 
  }
800
 
  if (__pyx_1) {
801
 
    __pyx_r = 0;
802
 
    goto __pyx_L0;
803
 
    goto __pyx_L3;
804
 
  }
805
 
  __pyx_L3:;
806
 
 
807
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":320 */
808
 
  __pyx_1 = (__pyx_v_path1_len == 0);
809
 
  if (__pyx_1) {
810
 
    __pyx_r = (-1);
811
 
    goto __pyx_L0;
812
 
    goto __pyx_L4;
813
 
  }
814
 
  __pyx_L4:;
815
 
 
816
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":323 */
817
 
  __pyx_1 = (__pyx_v_path2_len == 0);
818
 
  if (__pyx_1) {
819
 
    __pyx_r = 1;
820
 
    goto __pyx_L0;
821
 
    goto __pyx_L5;
822
 
  }
823
 
  __pyx_L5:;
824
 
 
825
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":326 */
826
 
  __pyx_v_basename1 = ((char *)__pyx_f_19_dirstate_helpers_c__my_memrchr(__pyx_v_path1,'/',__pyx_v_path1_len));
827
 
 
828
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":328 */
829
 
  __pyx_1 = (__pyx_v_basename1 == NULL);
830
 
  if (__pyx_1) {
831
 
 
832
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":329 */
833
 
    __pyx_v_basename1 = __pyx_v_path1;
834
 
 
835
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":330 */
836
 
    __pyx_v_basename1_len = __pyx_v_path1_len;
837
 
 
838
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":331 */
839
 
    __pyx_v_dirname1 = __pyx_k33;
840
 
 
841
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":332 */
842
 
    __pyx_v_dirname1_len = 0;
843
 
    goto __pyx_L6;
844
 
  }
845
 
  /*else*/ {
846
 
 
847
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":334 */
848
 
    __pyx_v_dirname1 = __pyx_v_path1;
849
 
 
850
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":335 */
851
 
    __pyx_v_dirname1_len = (__pyx_v_basename1 - __pyx_v_path1);
852
 
 
853
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":336 */
854
 
    __pyx_v_basename1 = (__pyx_v_basename1 + 1);
855
 
 
856
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":337 */
857
 
    __pyx_v_basename1_len = ((__pyx_v_path1_len - __pyx_v_dirname1_len) - 1);
858
 
  }
859
 
  __pyx_L6:;
860
 
 
861
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":339 */
862
 
  __pyx_v_basename2 = ((char *)__pyx_f_19_dirstate_helpers_c__my_memrchr(__pyx_v_path2,'/',__pyx_v_path2_len));
863
 
 
864
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":341 */
865
 
  __pyx_1 = (__pyx_v_basename2 == NULL);
866
 
  if (__pyx_1) {
867
 
 
868
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":342 */
869
 
    __pyx_v_basename2 = __pyx_v_path2;
870
 
 
871
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":343 */
872
 
    __pyx_v_basename2_len = __pyx_v_path2_len;
873
 
 
874
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":344 */
875
 
    __pyx_v_dirname2 = __pyx_k34;
876
 
 
877
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":345 */
878
 
    __pyx_v_dirname2_len = 0;
879
 
    goto __pyx_L7;
880
 
  }
881
 
  /*else*/ {
882
 
 
883
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":347 */
884
 
    __pyx_v_dirname2 = __pyx_v_path2;
885
 
 
886
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":348 */
887
 
    __pyx_v_dirname2_len = (__pyx_v_basename2 - __pyx_v_path2);
888
 
 
889
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":349 */
890
 
    __pyx_v_basename2 = (__pyx_v_basename2 + 1);
891
 
 
892
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":350 */
893
 
    __pyx_v_basename2_len = ((__pyx_v_path2_len - __pyx_v_dirname2_len) - 1);
894
 
  }
895
 
  __pyx_L7:;
896
 
 
897
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":352 */
898
 
  __pyx_v_cmp_val = __pyx_f_19_dirstate_helpers_c__cmp_by_dirs(__pyx_v_dirname1,__pyx_v_dirname1_len,__pyx_v_dirname2,__pyx_v_dirname2_len);
899
 
 
900
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":354 */
901
 
  __pyx_1 = (__pyx_v_cmp_val != 0);
902
 
  if (__pyx_1) {
903
 
    __pyx_r = __pyx_v_cmp_val;
904
 
    goto __pyx_L0;
905
 
    goto __pyx_L8;
906
 
  }
907
 
  __pyx_L8:;
908
 
 
909
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":357 */
910
 
  __pyx_v_cur_len = __pyx_v_basename1_len;
911
 
 
912
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":358 */
913
 
  __pyx_1 = (__pyx_v_basename2_len < __pyx_v_basename1_len);
914
 
  if (__pyx_1) {
915
 
    __pyx_v_cur_len = __pyx_v_basename2_len;
916
 
    goto __pyx_L9;
917
 
  }
918
 
  __pyx_L9:;
919
 
 
920
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":361 */
921
 
  __pyx_v_cmp_val = memcmp(__pyx_v_basename1,__pyx_v_basename2,__pyx_v_cur_len);
922
 
 
923
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":362 */
924
 
  __pyx_1 = (__pyx_v_cmp_val != 0);
925
 
  if (__pyx_1) {
926
 
    __pyx_r = __pyx_v_cmp_val;
927
 
    goto __pyx_L0;
928
 
    goto __pyx_L10;
929
 
  }
930
 
  __pyx_L10:;
931
 
 
932
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":364 */
933
 
  __pyx_1 = (__pyx_v_basename1_len == __pyx_v_basename2_len);
934
 
  if (__pyx_1) {
935
 
    __pyx_r = 0;
936
 
    goto __pyx_L0;
937
 
    goto __pyx_L11;
938
 
  }
939
 
  __pyx_L11:;
940
 
 
941
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":366 */
942
 
  __pyx_1 = (__pyx_v_basename1_len < __pyx_v_basename2_len);
943
 
  if (__pyx_1) {
944
 
    __pyx_r = (-1);
945
 
    goto __pyx_L0;
946
 
    goto __pyx_L12;
947
 
  }
948
 
  __pyx_L12:;
949
 
 
950
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":368 */
951
 
  __pyx_r = 1;
952
 
  goto __pyx_L0;
953
 
 
954
 
  __pyx_r = 0;
955
 
  __pyx_L0:;
956
 
  return __pyx_r;
957
 
}
958
 
 
959
 
static PyObject *__pyx_k35p;
960
 
static PyObject *__pyx_k36p;
961
 
 
962
 
static char __pyx_k35[] = "you must pass a python list for 'paths' not: %s %r";
963
 
static char __pyx_k36[] = "you must pass a string for 'path' not: %s %r";
964
 
 
965
 
static PyObject *__pyx_f_19_dirstate_helpers_c__bisect_path_left_c(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
966
 
static char __pyx_doc_19_dirstate_helpers_c__bisect_path_left_c[] = "Return the index where to insert path into paths.\n\n    This uses a path-wise comparison so we get::\n        a\n        a-b\n        a=b\n        a/b\n    Rather than::\n        a\n        a-b\n        a/b\n        a=b\n    :param paths: A list of paths to search through\n    :param path: A single path to insert\n    :return: An offset where \'path\' can be inserted.\n    :seealso: bisect.bisect_left\n    ";
967
 
static PyObject *__pyx_f_19_dirstate_helpers_c__bisect_path_left_c(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
968
 
  PyObject *__pyx_v_paths = 0;
969
 
  PyObject *__pyx_v_path = 0;
970
 
  int __pyx_v__lo;
971
 
  int __pyx_v__hi;
972
 
  int __pyx_v__mid;
973
 
  char *__pyx_v_path_cstr;
974
 
  int __pyx_v_path_size;
975
 
  char *__pyx_v_cur_cstr;
976
 
  int __pyx_v_cur_size;
977
 
  void *__pyx_v_cur;
978
 
  PyObject *__pyx_r;
979
 
  int __pyx_1;
980
 
  PyObject *__pyx_2 = 0;
981
 
  PyObject *__pyx_3 = 0;
982
 
  PyObject *__pyx_4 = 0;
983
 
  PyObject *__pyx_5 = 0;
984
 
  Py_ssize_t __pyx_6;
985
 
  static char *__pyx_argnames[] = {"paths","path",0};
986
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_paths, &__pyx_v_path)) return 0;
987
 
  Py_INCREF(__pyx_v_paths);
988
 
  Py_INCREF(__pyx_v_path);
989
 
 
990
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":398 */
991
 
  __pyx_1 = (!PyList_CheckExact(__pyx_v_paths));
992
 
  if (__pyx_1) {
993
 
    __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; goto __pyx_L1;}
994
 
    __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_type); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; goto __pyx_L1;}
995
 
    __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; goto __pyx_L1;}
996
 
    Py_INCREF(__pyx_v_paths);
997
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_paths);
998
 
    __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; goto __pyx_L1;}
999
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1000
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
1001
 
    __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; goto __pyx_L1;}
1002
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_5);
1003
 
    Py_INCREF(__pyx_v_paths);
1004
 
    PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_paths);
1005
 
    __pyx_5 = 0;
1006
 
    __pyx_4 = PyNumber_Remainder(__pyx_k35p, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; goto __pyx_L1;}
1007
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1008
 
    __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; goto __pyx_L1;}
1009
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4);
1010
 
    __pyx_4 = 0;
1011
 
    __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; goto __pyx_L1;}
1012
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1013
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
1014
 
    __Pyx_Raise(__pyx_3, 0, 0);
1015
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1016
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; goto __pyx_L1;}
1017
 
    goto __pyx_L2;
1018
 
  }
1019
 
  __pyx_L2:;
1020
 
 
1021
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":401 */
1022
 
  __pyx_1 = (!PyString_CheckExact(__pyx_v_path));
1023
 
  if (__pyx_1) {
1024
 
    __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; goto __pyx_L1;}
1025
 
    __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_type); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; goto __pyx_L1;}
1026
 
    __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; goto __pyx_L1;}
1027
 
    Py_INCREF(__pyx_v_path);
1028
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_path);
1029
 
    __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; goto __pyx_L1;}
1030
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1031
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
1032
 
    __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; goto __pyx_L1;}
1033
 
    PyTuple_SET_ITEM(__pyx_2, 0, __pyx_3);
1034
 
    Py_INCREF(__pyx_v_path);
1035
 
    PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_path);
1036
 
    __pyx_3 = 0;
1037
 
    __pyx_5 = PyNumber_Remainder(__pyx_k36p, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; goto __pyx_L1;}
1038
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1039
 
    __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; goto __pyx_L1;}
1040
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_5);
1041
 
    __pyx_5 = 0;
1042
 
    __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; goto __pyx_L1;}
1043
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
1044
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1045
 
    __Pyx_Raise(__pyx_2, 0, 0);
1046
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1047
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; goto __pyx_L1;}
1048
 
    goto __pyx_L3;
1049
 
  }
1050
 
  __pyx_L3:;
1051
 
 
1052
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":405 */
1053
 
  __pyx_6 = PyObject_Length(__pyx_v_paths); if (__pyx_6 == -1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; goto __pyx_L1;}
1054
 
  __pyx_v__hi = __pyx_6;
1055
 
 
1056
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":406 */
1057
 
  __pyx_v__lo = 0;
1058
 
 
1059
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":408 */
1060
 
  __pyx_v_path_cstr = PyString_AsString(__pyx_v_path);
1061
 
 
1062
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":409 */
1063
 
  __pyx_v_path_size = PyString_Size(__pyx_v_path);
1064
 
 
1065
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":411 */
1066
 
  while (1) {
1067
 
    __pyx_1 = (__pyx_v__lo < __pyx_v__hi);
1068
 
    if (!__pyx_1) break;
1069
 
 
1070
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":412 */
1071
 
    __pyx_v__mid = ((__pyx_v__lo + __pyx_v__hi) / 2);
1072
 
 
1073
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":413 */
1074
 
    __pyx_v_cur = PyList_GET_ITEM(__pyx_v_paths,__pyx_v__mid);
1075
 
 
1076
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":414 */
1077
 
    __pyx_v_cur_cstr = PyString_AS_STRING(__pyx_v_cur);
1078
 
 
1079
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":415 */
1080
 
    __pyx_v_cur_size = PyString_GET_SIZE(__pyx_v_cur);
1081
 
 
1082
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":416 */
1083
 
    __pyx_1 = (__pyx_f_19_dirstate_helpers_c__cmp_path_by_dirblock(__pyx_v_cur_cstr,__pyx_v_cur_size,__pyx_v_path_cstr,__pyx_v_path_size) < 0);
1084
 
    if (__pyx_1) {
1085
 
      __pyx_v__lo = (__pyx_v__mid + 1);
1086
 
      goto __pyx_L6;
1087
 
    }
1088
 
    /*else*/ {
1089
 
      __pyx_v__hi = __pyx_v__mid;
1090
 
    }
1091
 
    __pyx_L6:;
1092
 
  }
1093
 
 
1094
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":420 */
1095
 
  __pyx_5 = PyInt_FromLong(__pyx_v__lo); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 420; goto __pyx_L1;}
1096
 
  __pyx_r = __pyx_5;
1097
 
  __pyx_5 = 0;
1098
 
  goto __pyx_L0;
1099
 
 
1100
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1101
 
  goto __pyx_L0;
1102
 
  __pyx_L1:;
1103
 
  Py_XDECREF(__pyx_2);
1104
 
  Py_XDECREF(__pyx_3);
1105
 
  Py_XDECREF(__pyx_4);
1106
 
  Py_XDECREF(__pyx_5);
1107
 
  __Pyx_AddTraceback("_dirstate_helpers_c._bisect_path_left_c");
1108
 
  __pyx_r = 0;
1109
 
  __pyx_L0:;
1110
 
  Py_DECREF(__pyx_v_paths);
1111
 
  Py_DECREF(__pyx_v_path);
1112
 
  return __pyx_r;
1113
 
}
1114
 
 
1115
 
static PyObject *__pyx_k37p;
1116
 
static PyObject *__pyx_k38p;
1117
 
 
1118
 
static char __pyx_k37[] = "you must pass a python list for 'paths' not: %s %r";
1119
 
static char __pyx_k38[] = "you must pass a string for 'path' not: %s %r";
1120
 
 
1121
 
static PyObject *__pyx_f_19_dirstate_helpers_c__bisect_path_right_c(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1122
 
static char __pyx_doc_19_dirstate_helpers_c__bisect_path_right_c[] = "Return the index where to insert path into paths.\n\n    This uses a path-wise comparison so we get::\n        a\n        a-b\n        a=b\n        a/b\n    Rather than::\n        a\n        a-b\n        a/b\n        a=b\n    :param paths: A list of paths to search through\n    :param path: A single path to insert\n    :return: An offset where \'path\' can be inserted.\n    :seealso: bisect.bisect_right\n    ";
1123
 
static PyObject *__pyx_f_19_dirstate_helpers_c__bisect_path_right_c(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1124
 
  PyObject *__pyx_v_paths = 0;
1125
 
  PyObject *__pyx_v_path = 0;
1126
 
  int __pyx_v__lo;
1127
 
  int __pyx_v__hi;
1128
 
  int __pyx_v__mid;
1129
 
  char *__pyx_v_path_cstr;
1130
 
  int __pyx_v_path_size;
1131
 
  char *__pyx_v_cur_cstr;
1132
 
  int __pyx_v_cur_size;
1133
 
  void *__pyx_v_cur;
1134
 
  PyObject *__pyx_r;
1135
 
  int __pyx_1;
1136
 
  PyObject *__pyx_2 = 0;
1137
 
  PyObject *__pyx_3 = 0;
1138
 
  PyObject *__pyx_4 = 0;
1139
 
  PyObject *__pyx_5 = 0;
1140
 
  Py_ssize_t __pyx_6;
1141
 
  static char *__pyx_argnames[] = {"paths","path",0};
1142
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_paths, &__pyx_v_path)) return 0;
1143
 
  Py_INCREF(__pyx_v_paths);
1144
 
  Py_INCREF(__pyx_v_path);
1145
 
 
1146
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":450 */
1147
 
  __pyx_1 = (!PyList_CheckExact(__pyx_v_paths));
1148
 
  if (__pyx_1) {
1149
 
    __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; goto __pyx_L1;}
1150
 
    __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_type); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; goto __pyx_L1;}
1151
 
    __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; goto __pyx_L1;}
1152
 
    Py_INCREF(__pyx_v_paths);
1153
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_paths);
1154
 
    __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; goto __pyx_L1;}
1155
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1156
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
1157
 
    __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; goto __pyx_L1;}
1158
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_5);
1159
 
    Py_INCREF(__pyx_v_paths);
1160
 
    PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_paths);
1161
 
    __pyx_5 = 0;
1162
 
    __pyx_4 = PyNumber_Remainder(__pyx_k37p, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; goto __pyx_L1;}
1163
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1164
 
    __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; goto __pyx_L1;}
1165
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4);
1166
 
    __pyx_4 = 0;
1167
 
    __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; goto __pyx_L1;}
1168
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1169
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
1170
 
    __Pyx_Raise(__pyx_3, 0, 0);
1171
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1172
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; goto __pyx_L1;}
1173
 
    goto __pyx_L2;
1174
 
  }
1175
 
  __pyx_L2:;
1176
 
 
1177
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":453 */
1178
 
  __pyx_1 = (!PyString_CheckExact(__pyx_v_path));
1179
 
  if (__pyx_1) {
1180
 
    __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 454; goto __pyx_L1;}
1181
 
    __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_type); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; goto __pyx_L1;}
1182
 
    __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; goto __pyx_L1;}
1183
 
    Py_INCREF(__pyx_v_path);
1184
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_path);
1185
 
    __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; goto __pyx_L1;}
1186
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1187
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
1188
 
    __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; goto __pyx_L1;}
1189
 
    PyTuple_SET_ITEM(__pyx_2, 0, __pyx_3);
1190
 
    Py_INCREF(__pyx_v_path);
1191
 
    PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_path);
1192
 
    __pyx_3 = 0;
1193
 
    __pyx_5 = PyNumber_Remainder(__pyx_k38p, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; goto __pyx_L1;}
1194
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1195
 
    __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 454; goto __pyx_L1;}
1196
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_5);
1197
 
    __pyx_5 = 0;
1198
 
    __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 454; goto __pyx_L1;}
1199
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
1200
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1201
 
    __Pyx_Raise(__pyx_2, 0, 0);
1202
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1203
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 454; goto __pyx_L1;}
1204
 
    goto __pyx_L3;
1205
 
  }
1206
 
  __pyx_L3:;
1207
 
 
1208
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":457 */
1209
 
  __pyx_6 = PyObject_Length(__pyx_v_paths); if (__pyx_6 == -1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; goto __pyx_L1;}
1210
 
  __pyx_v__hi = __pyx_6;
1211
 
 
1212
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":458 */
1213
 
  __pyx_v__lo = 0;
1214
 
 
1215
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":460 */
1216
 
  __pyx_v_path_cstr = PyString_AsString(__pyx_v_path);
1217
 
 
1218
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":461 */
1219
 
  __pyx_v_path_size = PyString_Size(__pyx_v_path);
1220
 
 
1221
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":463 */
1222
 
  while (1) {
1223
 
    __pyx_1 = (__pyx_v__lo < __pyx_v__hi);
1224
 
    if (!__pyx_1) break;
1225
 
 
1226
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":464 */
1227
 
    __pyx_v__mid = ((__pyx_v__lo + __pyx_v__hi) / 2);
1228
 
 
1229
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":465 */
1230
 
    __pyx_v_cur = PyList_GET_ITEM(__pyx_v_paths,__pyx_v__mid);
1231
 
 
1232
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":466 */
1233
 
    __pyx_v_cur_cstr = PyString_AS_STRING(__pyx_v_cur);
1234
 
 
1235
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":467 */
1236
 
    __pyx_v_cur_size = PyString_GET_SIZE(__pyx_v_cur);
1237
 
 
1238
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":468 */
1239
 
    __pyx_1 = (__pyx_f_19_dirstate_helpers_c__cmp_path_by_dirblock(__pyx_v_path_cstr,__pyx_v_path_size,__pyx_v_cur_cstr,__pyx_v_cur_size) < 0);
1240
 
    if (__pyx_1) {
1241
 
      __pyx_v__hi = __pyx_v__mid;
1242
 
      goto __pyx_L6;
1243
 
    }
1244
 
    /*else*/ {
1245
 
      __pyx_v__lo = (__pyx_v__mid + 1);
1246
 
    }
1247
 
    __pyx_L6:;
1248
 
  }
1249
 
 
1250
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":472 */
1251
 
  __pyx_5 = PyInt_FromLong(__pyx_v__lo); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; goto __pyx_L1;}
1252
 
  __pyx_r = __pyx_5;
1253
 
  __pyx_5 = 0;
1254
 
  goto __pyx_L0;
1255
 
 
1256
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1257
 
  goto __pyx_L0;
1258
 
  __pyx_L1:;
1259
 
  Py_XDECREF(__pyx_2);
1260
 
  Py_XDECREF(__pyx_3);
1261
 
  Py_XDECREF(__pyx_4);
1262
 
  Py_XDECREF(__pyx_5);
1263
 
  __Pyx_AddTraceback("_dirstate_helpers_c._bisect_path_right_c");
1264
 
  __pyx_r = 0;
1265
 
  __pyx_L0:;
1266
 
  Py_DECREF(__pyx_v_paths);
1267
 
  Py_DECREF(__pyx_v_path);
1268
 
  return __pyx_r;
1269
 
}
1270
 
 
1271
 
static PyObject *__pyx_k39p;
1272
 
static PyObject *__pyx_k40p;
1273
 
 
1274
 
static char __pyx_k39[] = "you must pass a python list for 'dirblocks' not: %s %r";
1275
 
static char __pyx_k40[] = "you must pass a string for dirname not: %s %r";
1276
 
 
1277
 
static PyObject *__pyx_f_19_dirstate_helpers_c_bisect_dirblock_c(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1278
 
static char __pyx_doc_19_dirstate_helpers_c_bisect_dirblock_c[] = "Return the index where to insert dirname into the dirblocks.\n\n    The return value idx is such that all directories blocks in dirblock[:idx]\n    have names < dirname, and all blocks in dirblock[idx:] have names >=\n    dirname.\n\n    Optional args lo (default 0) and hi (default len(dirblocks)) bound the\n    slice of a to be searched.\n    ";
1279
 
static PyObject *__pyx_f_19_dirstate_helpers_c_bisect_dirblock_c(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1280
 
  PyObject *__pyx_v_dirblocks = 0;
1281
 
  PyObject *__pyx_v_dirname = 0;
1282
 
  PyObject *__pyx_v_lo = 0;
1283
 
  PyObject *__pyx_v_hi = 0;
1284
 
  PyObject *__pyx_v_cache = 0;
1285
 
  int __pyx_v__lo;
1286
 
  int __pyx_v__hi;
1287
 
  int __pyx_v__mid;
1288
 
  char *__pyx_v_dirname_cstr;
1289
 
  int __pyx_v_dirname_size;
1290
 
  char *__pyx_v_cur_cstr;
1291
 
  int __pyx_v_cur_size;
1292
 
  void *__pyx_v_cur;
1293
 
  PyObject *__pyx_r;
1294
 
  int __pyx_1;
1295
 
  PyObject *__pyx_2 = 0;
1296
 
  PyObject *__pyx_3 = 0;
1297
 
  PyObject *__pyx_4 = 0;
1298
 
  PyObject *__pyx_5 = 0;
1299
 
  Py_ssize_t __pyx_6;
1300
 
  static char *__pyx_argnames[] = {"dirblocks","dirname","lo","hi","cache",0};
1301
 
  __pyx_v_lo = __pyx_k16;
1302
 
  __pyx_v_hi = __pyx_k17;
1303
 
  __pyx_v_cache = __pyx_k18;
1304
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO|OOO", __pyx_argnames, &__pyx_v_dirblocks, &__pyx_v_dirname, &__pyx_v_lo, &__pyx_v_hi, &__pyx_v_cache)) return 0;
1305
 
  Py_INCREF(__pyx_v_dirblocks);
1306
 
  Py_INCREF(__pyx_v_dirname);
1307
 
  Py_INCREF(__pyx_v_lo);
1308
 
  Py_INCREF(__pyx_v_hi);
1309
 
  Py_INCREF(__pyx_v_cache);
1310
 
 
1311
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":494 */
1312
 
  __pyx_1 = (!PyList_CheckExact(__pyx_v_dirblocks));
1313
 
  if (__pyx_1) {
1314
 
    __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; goto __pyx_L1;}
1315
 
    __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_type); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;}
1316
 
    __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;}
1317
 
    Py_INCREF(__pyx_v_dirblocks);
1318
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_dirblocks);
1319
 
    __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;}
1320
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1321
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
1322
 
    __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;}
1323
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_5);
1324
 
    Py_INCREF(__pyx_v_dirblocks);
1325
 
    PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_dirblocks);
1326
 
    __pyx_5 = 0;
1327
 
    __pyx_4 = PyNumber_Remainder(__pyx_k39p, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;}
1328
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1329
 
    __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; goto __pyx_L1;}
1330
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4);
1331
 
    __pyx_4 = 0;
1332
 
    __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; goto __pyx_L1;}
1333
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1334
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
1335
 
    __Pyx_Raise(__pyx_3, 0, 0);
1336
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1337
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; goto __pyx_L1;}
1338
 
    goto __pyx_L2;
1339
 
  }
1340
 
  __pyx_L2:;
1341
 
 
1342
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":497 */
1343
 
  __pyx_1 = (!PyString_CheckExact(__pyx_v_dirname));
1344
 
  if (__pyx_1) {
1345
 
    __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; goto __pyx_L1;}
1346
 
    __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_type); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; goto __pyx_L1;}
1347
 
    __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; goto __pyx_L1;}
1348
 
    Py_INCREF(__pyx_v_dirname);
1349
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_dirname);
1350
 
    __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; goto __pyx_L1;}
1351
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1352
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
1353
 
    __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; goto __pyx_L1;}
1354
 
    PyTuple_SET_ITEM(__pyx_2, 0, __pyx_3);
1355
 
    Py_INCREF(__pyx_v_dirname);
1356
 
    PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_dirname);
1357
 
    __pyx_3 = 0;
1358
 
    __pyx_5 = PyNumber_Remainder(__pyx_k40p, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; goto __pyx_L1;}
1359
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1360
 
    __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; goto __pyx_L1;}
1361
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_5);
1362
 
    __pyx_5 = 0;
1363
 
    __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; goto __pyx_L1;}
1364
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
1365
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1366
 
    __Pyx_Raise(__pyx_2, 0, 0);
1367
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1368
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; goto __pyx_L1;}
1369
 
    goto __pyx_L3;
1370
 
  }
1371
 
  __pyx_L3:;
1372
 
 
1373
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":500 */
1374
 
  __pyx_1 = __pyx_v_hi == Py_None;
1375
 
  if (__pyx_1) {
1376
 
    __pyx_6 = PyObject_Length(__pyx_v_dirblocks); if (__pyx_6 == -1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; goto __pyx_L1;}
1377
 
    __pyx_v__hi = __pyx_6;
1378
 
    goto __pyx_L4;
1379
 
  }
1380
 
  /*else*/ {
1381
 
    __pyx_1 = PyInt_AsLong(__pyx_v_hi); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; goto __pyx_L1;}
1382
 
    __pyx_v__hi = __pyx_1;
1383
 
  }
1384
 
  __pyx_L4:;
1385
 
 
1386
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":505 */
1387
 
  __pyx_1 = PyInt_AsLong(__pyx_v_lo); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; goto __pyx_L1;}
1388
 
  __pyx_v__lo = __pyx_1;
1389
 
 
1390
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":506 */
1391
 
  __pyx_v_dirname_cstr = PyString_AsString(__pyx_v_dirname);
1392
 
 
1393
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":507 */
1394
 
  __pyx_v_dirname_size = PyString_Size(__pyx_v_dirname);
1395
 
 
1396
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":509 */
1397
 
  while (1) {
1398
 
    __pyx_1 = (__pyx_v__lo < __pyx_v__hi);
1399
 
    if (!__pyx_1) break;
1400
 
 
1401
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":510 */
1402
 
    __pyx_v__mid = ((__pyx_v__lo + __pyx_v__hi) / 2);
1403
 
 
1404
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":513 */
1405
 
    __pyx_v_cur = PyTuple_GET_ITEM(PyList_GET_ITEM(__pyx_v_dirblocks,__pyx_v__mid),0);
1406
 
 
1407
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":515 */
1408
 
    __pyx_v_cur_cstr = PyString_AS_STRING(__pyx_v_cur);
1409
 
 
1410
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":516 */
1411
 
    __pyx_v_cur_size = PyString_GET_SIZE(__pyx_v_cur);
1412
 
 
1413
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":517 */
1414
 
    __pyx_1 = (__pyx_f_19_dirstate_helpers_c__cmp_by_dirs(__pyx_v_cur_cstr,__pyx_v_cur_size,__pyx_v_dirname_cstr,__pyx_v_dirname_size) < 0);
1415
 
    if (__pyx_1) {
1416
 
      __pyx_v__lo = (__pyx_v__mid + 1);
1417
 
      goto __pyx_L7;
1418
 
    }
1419
 
    /*else*/ {
1420
 
      __pyx_v__hi = __pyx_v__mid;
1421
 
    }
1422
 
    __pyx_L7:;
1423
 
  }
1424
 
 
1425
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":521 */
1426
 
  __pyx_5 = PyInt_FromLong(__pyx_v__lo); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; goto __pyx_L1;}
1427
 
  __pyx_r = __pyx_5;
1428
 
  __pyx_5 = 0;
1429
 
  goto __pyx_L0;
1430
 
 
1431
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1432
 
  goto __pyx_L0;
1433
 
  __pyx_L1:;
1434
 
  Py_XDECREF(__pyx_2);
1435
 
  Py_XDECREF(__pyx_3);
1436
 
  Py_XDECREF(__pyx_4);
1437
 
  Py_XDECREF(__pyx_5);
1438
 
  __Pyx_AddTraceback("_dirstate_helpers_c.bisect_dirblock_c");
1439
 
  __pyx_r = 0;
1440
 
  __pyx_L0:;
1441
 
  Py_DECREF(__pyx_v_dirblocks);
1442
 
  Py_DECREF(__pyx_v_dirname);
1443
 
  Py_DECREF(__pyx_v_lo);
1444
 
  Py_DECREF(__pyx_v_hi);
1445
 
  Py_DECREF(__pyx_v_cache);
1446
 
  return __pyx_r;
1447
 
}
1448
 
 
1449
 
static int __pyx_f_19_dirstate_helpers_c_6Reader___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1450
 
static int __pyx_f_19_dirstate_helpers_c_6Reader___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1451
 
  PyObject *__pyx_v_text = 0;
1452
 
  PyObject *__pyx_v_state = 0;
1453
 
  int __pyx_r;
1454
 
  static char *__pyx_argnames[] = {"text","state",0};
1455
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_text, &__pyx_v_state)) return -1;
1456
 
  Py_INCREF(__pyx_v_self);
1457
 
  Py_INCREF(__pyx_v_text);
1458
 
  Py_INCREF(__pyx_v_state);
1459
 
 
1460
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":537 */
1461
 
  Py_INCREF(__pyx_v_state);
1462
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->state);
1463
 
  ((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->state = __pyx_v_state;
1464
 
 
1465
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":538 */
1466
 
  Py_INCREF(__pyx_v_text);
1467
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->text);
1468
 
  ((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->text = __pyx_v_text;
1469
 
 
1470
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":539 */
1471
 
  ((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->text_cstr = PyString_AsString(__pyx_v_text);
1472
 
 
1473
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":540 */
1474
 
  ((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->text_size = PyString_Size(__pyx_v_text);
1475
 
 
1476
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":541 */
1477
 
  ((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->end_cstr = (((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->text_cstr + ((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->text_size);
1478
 
 
1479
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":542 */
1480
 
  ((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->cur_cstr = ((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->text_cstr;
1481
 
 
1482
 
  __pyx_r = 0;
1483
 
  Py_DECREF(__pyx_v_self);
1484
 
  Py_DECREF(__pyx_v_text);
1485
 
  Py_DECREF(__pyx_v_state);
1486
 
  return __pyx_r;
1487
 
}
1488
 
 
1489
 
static PyObject *__pyx_n_DirstateCorrupt;
1490
 
 
1491
 
static PyObject *__pyx_k41p;
1492
 
static PyObject *__pyx_k42p;
1493
 
static PyObject *__pyx_k43p;
1494
 
 
1495
 
static char __pyx_k41[] = "get_next() called when cur_str is NULL";
1496
 
static char __pyx_k42[] = "get_next() called when there are no chars left";
1497
 
static char __pyx_k43[] = "failed to find trailing NULL (\\0). Trailing garbage: %r";
1498
 
 
1499
 
static char *__pyx_f_19_dirstate_helpers_c_6Reader_get_next(struct __pyx_obj_19_dirstate_helpers_c_Reader *__pyx_v_self,int *__pyx_v_size) {
1500
 
  char *__pyx_v_next;
1501
 
  Py_ssize_t __pyx_v_extra_len;
1502
 
  char *__pyx_r;
1503
 
  int __pyx_1;
1504
 
  PyObject *__pyx_2 = 0;
1505
 
  PyObject *__pyx_3 = 0;
1506
 
  PyObject *__pyx_4 = 0;
1507
 
  Py_INCREF(__pyx_v_self);
1508
 
 
1509
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":549 */
1510
 
  __pyx_1 = (__pyx_v_self->cur_cstr == NULL);
1511
 
  if (__pyx_1) {
1512
 
    __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_AssertionError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; goto __pyx_L1;}
1513
 
    __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; goto __pyx_L1;}
1514
 
    Py_INCREF(__pyx_k41p);
1515
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k41p);
1516
 
    __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; goto __pyx_L1;}
1517
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1518
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1519
 
    __Pyx_Raise(__pyx_4, 0, 0);
1520
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
1521
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; goto __pyx_L1;}
1522
 
    goto __pyx_L2;
1523
 
  }
1524
 
  __pyx_1 = (__pyx_v_self->cur_cstr >= __pyx_v_self->end_cstr);
1525
 
  if (__pyx_1) {
1526
 
    __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_AssertionError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; goto __pyx_L1;}
1527
 
    __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; goto __pyx_L1;}
1528
 
    Py_INCREF(__pyx_k42p);
1529
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k42p);
1530
 
    __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; goto __pyx_L1;}
1531
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1532
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1533
 
    __Pyx_Raise(__pyx_4, 0, 0);
1534
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
1535
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; goto __pyx_L1;}
1536
 
    goto __pyx_L2;
1537
 
  }
1538
 
  __pyx_L2:;
1539
 
 
1540
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":554 */
1541
 
  __pyx_v_next = __pyx_v_self->cur_cstr;
1542
 
 
1543
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":555 */
1544
 
  __pyx_v_self->cur_cstr = ((char *)memchr(__pyx_v_next,'\0',(__pyx_v_self->end_cstr - __pyx_v_next)));
1545
 
 
1546
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":556 */
1547
 
  __pyx_1 = (__pyx_v_self->cur_cstr == NULL);
1548
 
  if (__pyx_1) {
1549
 
 
1550
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":557 */
1551
 
    __pyx_v_extra_len = (__pyx_v_self->end_cstr - __pyx_v_next);
1552
 
 
1553
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":558 */
1554
 
    __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_errors); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; goto __pyx_L1;}
1555
 
    __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_DirstateCorrupt); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; goto __pyx_L1;}
1556
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1557
 
    __pyx_4 = __pyx_f_19_dirstate_helpers_c_safe_string_from_size(__pyx_v_next,__pyx_v_extra_len); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; goto __pyx_L1;}
1558
 
    __pyx_2 = PyNumber_Remainder(__pyx_k43p, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; goto __pyx_L1;}
1559
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
1560
 
    __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; goto __pyx_L1;}
1561
 
    Py_INCREF(__pyx_v_self->state);
1562
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_self->state);
1563
 
    PyTuple_SET_ITEM(__pyx_4, 1, __pyx_2);
1564
 
    __pyx_2 = 0;
1565
 
    __pyx_2 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; goto __pyx_L1;}
1566
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1567
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
1568
 
    __Pyx_Raise(__pyx_2, 0, 0);
1569
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1570
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; goto __pyx_L1;}
1571
 
    goto __pyx_L3;
1572
 
  }
1573
 
  __pyx_L3:;
1574
 
 
1575
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":562 */
1576
 
  (__pyx_v_size[0]) = (__pyx_v_self->cur_cstr - __pyx_v_next);
1577
 
 
1578
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":563 */
1579
 
  __pyx_v_self->cur_cstr = (__pyx_v_self->cur_cstr + 1);
1580
 
 
1581
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":564 */
1582
 
  __pyx_r = __pyx_v_next;
1583
 
  goto __pyx_L0;
1584
 
 
1585
 
  __pyx_r = 0;
1586
 
  goto __pyx_L0;
1587
 
  __pyx_L1:;
1588
 
  Py_XDECREF(__pyx_2);
1589
 
  Py_XDECREF(__pyx_3);
1590
 
  Py_XDECREF(__pyx_4);
1591
 
  __Pyx_AddTraceback("_dirstate_helpers_c.Reader.get_next");
1592
 
  __pyx_r = NULL;
1593
 
  __pyx_L0:;
1594
 
  Py_DECREF(__pyx_v_self);
1595
 
  return __pyx_r;
1596
 
}
1597
 
 
1598
 
static PyObject *__pyx_f_19_dirstate_helpers_c_6Reader_get_next_str(struct __pyx_obj_19_dirstate_helpers_c_Reader *__pyx_v_self) {
1599
 
  int __pyx_v_size;
1600
 
  char *__pyx_v_next;
1601
 
  PyObject *__pyx_r;
1602
 
  char *__pyx_1;
1603
 
  PyObject *__pyx_2 = 0;
1604
 
  Py_INCREF(__pyx_v_self);
1605
 
 
1606
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":570 */
1607
 
  __pyx_1 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader *)__pyx_v_self->__pyx_vtab)->get_next(__pyx_v_self,(&__pyx_v_size)); if (__pyx_1 == NULL) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; goto __pyx_L1;}
1608
 
  __pyx_v_next = __pyx_1;
1609
 
 
1610
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":571 */
1611
 
  __pyx_2 = __pyx_f_19_dirstate_helpers_c_safe_string_from_size(__pyx_v_next,__pyx_v_size); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; goto __pyx_L1;}
1612
 
  __pyx_r = __pyx_2;
1613
 
  __pyx_2 = 0;
1614
 
  goto __pyx_L0;
1615
 
 
1616
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1617
 
  goto __pyx_L0;
1618
 
  __pyx_L1:;
1619
 
  Py_XDECREF(__pyx_2);
1620
 
  __Pyx_AddTraceback("_dirstate_helpers_c.Reader.get_next_str");
1621
 
  __pyx_r = 0;
1622
 
  __pyx_L0:;
1623
 
  Py_DECREF(__pyx_v_self);
1624
 
  return __pyx_r;
1625
 
}
1626
 
 
1627
 
static PyObject *__pyx_k44p;
1628
 
 
1629
 
static char __pyx_k44[] = "First character should be null not: %s";
1630
 
 
1631
 
static int __pyx_f_19_dirstate_helpers_c_6Reader__init(struct __pyx_obj_19_dirstate_helpers_c_Reader *__pyx_v_self) {
1632
 
  char *__pyx_v_first;
1633
 
  int __pyx_v_size;
1634
 
  int __pyx_r;
1635
 
  char *__pyx_1;
1636
 
  int __pyx_2;
1637
 
  PyObject *__pyx_3 = 0;
1638
 
  PyObject *__pyx_4 = 0;
1639
 
  PyObject *__pyx_5 = 0;
1640
 
  Py_INCREF(__pyx_v_self);
1641
 
 
1642
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":584 */
1643
 
  __pyx_1 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader *)__pyx_v_self->__pyx_vtab)->get_next(__pyx_v_self,(&__pyx_v_size)); if (__pyx_1 == NULL) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; goto __pyx_L1;}
1644
 
  __pyx_v_first = __pyx_1;
1645
 
 
1646
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":585 */
1647
 
  __pyx_2 = ((__pyx_v_first[0]) != '\0');
1648
 
  if (__pyx_2) {
1649
 
    __pyx_2 = (__pyx_v_size == 0);
1650
 
  }
1651
 
  if (__pyx_2) {
1652
 
    __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_AssertionError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; goto __pyx_L1;}
1653
 
    __pyx_4 = PyString_FromString(__pyx_v_first); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; goto __pyx_L1;}
1654
 
    __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; goto __pyx_L1;}
1655
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4);
1656
 
    __pyx_4 = 0;
1657
 
    __pyx_4 = PyNumber_Remainder(__pyx_k44p, __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; goto __pyx_L1;}
1658
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
1659
 
    __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; goto __pyx_L1;}
1660
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4);
1661
 
    __pyx_4 = 0;
1662
 
    __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; goto __pyx_L1;}
1663
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1664
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
1665
 
    __Pyx_Raise(__pyx_4, 0, 0);
1666
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
1667
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; goto __pyx_L1;}
1668
 
    goto __pyx_L2;
1669
 
  }
1670
 
  __pyx_L2:;
1671
 
 
1672
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":588 */
1673
 
  __pyx_r = 0;
1674
 
  goto __pyx_L0;
1675
 
 
1676
 
  __pyx_r = 0;
1677
 
  goto __pyx_L0;
1678
 
  __pyx_L1:;
1679
 
  Py_XDECREF(__pyx_3);
1680
 
  Py_XDECREF(__pyx_4);
1681
 
  Py_XDECREF(__pyx_5);
1682
 
  __Pyx_AddTraceback("_dirstate_helpers_c.Reader._init");
1683
 
  __pyx_r = (-1);
1684
 
  __pyx_L0:;
1685
 
  Py_DECREF(__pyx_v_self);
1686
 
  return __pyx_r;
1687
 
}
1688
 
 
1689
 
static PyObject *__pyx_k45p;
1690
 
 
1691
 
static char __pyx_k45[] = "Bad parse, we expected to end on \\n, not: %d %s: %s";
1692
 
 
1693
 
static PyObject *__pyx_f_19_dirstate_helpers_c_6Reader__get_entry(struct __pyx_obj_19_dirstate_helpers_c_Reader *__pyx_v_self,int __pyx_v_num_trees,void **__pyx_v_p_current_dirname,int *__pyx_v_new_block) {
1694
 
  PyObject *__pyx_v_path_name_file_id_key;
1695
 
  char *__pyx_v_entry_size_cstr;
1696
 
  unsigned long __pyx_v_entry_size;
1697
 
  char *__pyx_v_executable_cstr;
1698
 
  int __pyx_v_is_executable;
1699
 
  char *__pyx_v_dirname_cstr;
1700
 
  char *__pyx_v_trailing;
1701
 
  int __pyx_v_cur_size;
1702
 
  int __pyx_v_i;
1703
 
  PyObject *__pyx_v_minikind;
1704
 
  PyObject *__pyx_v_fingerprint;
1705
 
  PyObject *__pyx_v_info;
1706
 
  PyObject *__pyx_v_dirname;
1707
 
  PyObject *__pyx_v_trees;
1708
 
  PyObject *__pyx_v_ret;
1709
 
  PyObject *__pyx_r;
1710
 
  char *__pyx_1;
1711
 
  int __pyx_2;
1712
 
  PyObject *__pyx_3 = 0;
1713
 
  PyObject *__pyx_4 = 0;
1714
 
  PyObject *__pyx_5 = 0;
1715
 
  PyObject *__pyx_6 = 0;
1716
 
  Py_INCREF(__pyx_v_self);
1717
 
  __pyx_v_path_name_file_id_key = Py_None; Py_INCREF(Py_None);
1718
 
  __pyx_v_minikind = Py_None; Py_INCREF(Py_None);
1719
 
  __pyx_v_fingerprint = Py_None; Py_INCREF(Py_None);
1720
 
  __pyx_v_info = Py_None; Py_INCREF(Py_None);
1721
 
  __pyx_v_dirname = Py_None; Py_INCREF(Py_None);
1722
 
  __pyx_v_trees = Py_None; Py_INCREF(Py_None);
1723
 
  __pyx_v_ret = Py_None; Py_INCREF(Py_None);
1724
 
 
1725
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":625 */
1726
 
  __pyx_1 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader *)__pyx_v_self->__pyx_vtab)->get_next(__pyx_v_self,(&__pyx_v_cur_size)); if (__pyx_1 == NULL) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; goto __pyx_L1;}
1727
 
  __pyx_v_dirname_cstr = __pyx_1;
1728
 
 
1729
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":633 */
1730
 
  __pyx_2 = (__pyx_v_cur_size != PyString_GET_SIZE((__pyx_v_p_current_dirname[0])));
1731
 
  if (!__pyx_2) {
1732
 
    __pyx_2 = (strncmp(__pyx_v_dirname_cstr,PyString_AS_STRING((__pyx_v_p_current_dirname[0])),(__pyx_v_cur_size + 1)) != 0);
1733
 
  }
1734
 
  if (__pyx_2) {
1735
 
 
1736
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":642 */
1737
 
    __pyx_3 = __pyx_f_19_dirstate_helpers_c_safe_string_from_size(__pyx_v_dirname_cstr,__pyx_v_cur_size); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 642; goto __pyx_L1;}
1738
 
    Py_DECREF(__pyx_v_dirname);
1739
 
    __pyx_v_dirname = __pyx_3;
1740
 
    __pyx_3 = 0;
1741
 
 
1742
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":643 */
1743
 
    (__pyx_v_p_current_dirname[0]) = ((void *)__pyx_v_dirname);
1744
 
 
1745
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":644 */
1746
 
    (__pyx_v_new_block[0]) = 1;
1747
 
    goto __pyx_L2;
1748
 
  }
1749
 
  /*else*/ {
1750
 
    (__pyx_v_new_block[0]) = 0;
1751
 
  }
1752
 
  __pyx_L2:;
1753
 
 
1754
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":651 */
1755
 
  __pyx_3 = (PyObject *)(__pyx_v_p_current_dirname[0]);
1756
 
  Py_INCREF(__pyx_3);
1757
 
  __pyx_4 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader *)__pyx_v_self->__pyx_vtab)->get_next_str(__pyx_v_self); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; goto __pyx_L1;}
1758
 
  __pyx_5 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader *)__pyx_v_self->__pyx_vtab)->get_next_str(__pyx_v_self); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; goto __pyx_L1;}
1759
 
  __pyx_6 = PyTuple_New(3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; goto __pyx_L1;}
1760
 
  PyTuple_SET_ITEM(__pyx_6, 0, __pyx_3);
1761
 
  PyTuple_SET_ITEM(__pyx_6, 1, __pyx_4);
1762
 
  PyTuple_SET_ITEM(__pyx_6, 2, __pyx_5);
1763
 
  __pyx_3 = 0;
1764
 
  __pyx_4 = 0;
1765
 
  __pyx_5 = 0;
1766
 
  Py_DECREF(__pyx_v_path_name_file_id_key);
1767
 
  __pyx_v_path_name_file_id_key = __pyx_6;
1768
 
  __pyx_6 = 0;
1769
 
 
1770
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":669 */
1771
 
  __pyx_3 = PyList_New(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; goto __pyx_L1;}
1772
 
  Py_DECREF(__pyx_v_trees);
1773
 
  __pyx_v_trees = __pyx_3;
1774
 
  __pyx_3 = 0;
1775
 
 
1776
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":670 */
1777
 
  for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_num_trees; ++__pyx_v_i) {
1778
 
 
1779
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":671 */
1780
 
    __pyx_4 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader *)__pyx_v_self->__pyx_vtab)->get_next_str(__pyx_v_self); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; goto __pyx_L1;}
1781
 
    Py_DECREF(__pyx_v_minikind);
1782
 
    __pyx_v_minikind = __pyx_4;
1783
 
    __pyx_4 = 0;
1784
 
 
1785
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":672 */
1786
 
    __pyx_5 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader *)__pyx_v_self->__pyx_vtab)->get_next_str(__pyx_v_self); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; goto __pyx_L1;}
1787
 
    Py_DECREF(__pyx_v_fingerprint);
1788
 
    __pyx_v_fingerprint = __pyx_5;
1789
 
    __pyx_5 = 0;
1790
 
 
1791
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":673 */
1792
 
    __pyx_1 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader *)__pyx_v_self->__pyx_vtab)->get_next(__pyx_v_self,(&__pyx_v_cur_size)); if (__pyx_1 == NULL) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 673; goto __pyx_L1;}
1793
 
    __pyx_v_entry_size_cstr = __pyx_1;
1794
 
 
1795
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":674 */
1796
 
    __pyx_v_entry_size = strtoul(__pyx_v_entry_size_cstr,NULL,10);
1797
 
 
1798
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":675 */
1799
 
    __pyx_1 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader *)__pyx_v_self->__pyx_vtab)->get_next(__pyx_v_self,(&__pyx_v_cur_size)); if (__pyx_1 == NULL) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; goto __pyx_L1;}
1800
 
    __pyx_v_executable_cstr = __pyx_1;
1801
 
 
1802
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":676 */
1803
 
    __pyx_v_is_executable = ((__pyx_v_executable_cstr[0]) == 'y');
1804
 
 
1805
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":677 */
1806
 
    __pyx_6 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader *)__pyx_v_self->__pyx_vtab)->get_next_str(__pyx_v_self); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; goto __pyx_L1;}
1807
 
    Py_DECREF(__pyx_v_info);
1808
 
    __pyx_v_info = __pyx_6;
1809
 
    __pyx_6 = 0;
1810
 
 
1811
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":678 */
1812
 
    __pyx_3 = PyLong_FromUnsignedLong(__pyx_v_entry_size); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 681; goto __pyx_L1;}
1813
 
    __pyx_4 = PyInt_FromLong(__pyx_v_is_executable); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; goto __pyx_L1;}
1814
 
    __pyx_5 = PyTuple_New(5); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; goto __pyx_L1;}
1815
 
    Py_INCREF(__pyx_v_minikind);
1816
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_minikind);
1817
 
    Py_INCREF(__pyx_v_fingerprint);
1818
 
    PyTuple_SET_ITEM(__pyx_5, 1, __pyx_v_fingerprint);
1819
 
    PyTuple_SET_ITEM(__pyx_5, 2, __pyx_3);
1820
 
    PyTuple_SET_ITEM(__pyx_5, 3, __pyx_4);
1821
 
    Py_INCREF(__pyx_v_info);
1822
 
    PyTuple_SET_ITEM(__pyx_5, 4, __pyx_v_info);
1823
 
    __pyx_3 = 0;
1824
 
    __pyx_4 = 0;
1825
 
    __pyx_2 = PyList_Append(__pyx_v_trees,__pyx_5); if (__pyx_2 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; goto __pyx_L1;}
1826
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
1827
 
  }
1828
 
 
1829
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":687 */
1830
 
  __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; goto __pyx_L1;}
1831
 
  Py_INCREF(__pyx_v_path_name_file_id_key);
1832
 
  PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_path_name_file_id_key);
1833
 
  Py_INCREF(__pyx_v_trees);
1834
 
  PyTuple_SET_ITEM(__pyx_6, 1, __pyx_v_trees);
1835
 
  Py_DECREF(__pyx_v_ret);
1836
 
  __pyx_v_ret = __pyx_6;
1837
 
  __pyx_6 = 0;
1838
 
 
1839
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":691 */
1840
 
  __pyx_1 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader *)__pyx_v_self->__pyx_vtab)->get_next(__pyx_v_self,(&__pyx_v_cur_size)); if (__pyx_1 == NULL) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 691; goto __pyx_L1;}
1841
 
  __pyx_v_trailing = __pyx_1;
1842
 
 
1843
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":692 */
1844
 
  __pyx_2 = (__pyx_v_cur_size != 1);
1845
 
  if (!__pyx_2) {
1846
 
    __pyx_2 = ((__pyx_v_trailing[0]) != '\n');
1847
 
  }
1848
 
  if (__pyx_2) {
1849
 
    __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_errors); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; goto __pyx_L1;}
1850
 
    __pyx_4 = PyObject_GetAttr(__pyx_3, __pyx_n_DirstateCorrupt); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; goto __pyx_L1;}
1851
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1852
 
    __pyx_5 = PyInt_FromLong(__pyx_v_cur_size); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; goto __pyx_L1;}
1853
 
    __pyx_6 = __pyx_f_19_dirstate_helpers_c_safe_string_from_size(__pyx_v_trailing,__pyx_v_cur_size); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; goto __pyx_L1;}
1854
 
    __pyx_3 = PyTuple_New(3); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; goto __pyx_L1;}
1855
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_5);
1856
 
    PyTuple_SET_ITEM(__pyx_3, 1, __pyx_6);
1857
 
    Py_INCREF(__pyx_v_ret);
1858
 
    PyTuple_SET_ITEM(__pyx_3, 2, __pyx_v_ret);
1859
 
    __pyx_5 = 0;
1860
 
    __pyx_6 = 0;
1861
 
    __pyx_5 = PyNumber_Remainder(__pyx_k45p, __pyx_3); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; goto __pyx_L1;}
1862
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1863
 
    __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; goto __pyx_L1;}
1864
 
    Py_INCREF(__pyx_v_self->state);
1865
 
    PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_self->state);
1866
 
    PyTuple_SET_ITEM(__pyx_6, 1, __pyx_5);
1867
 
    __pyx_5 = 0;
1868
 
    __pyx_3 = PyObject_CallObject(__pyx_4, __pyx_6); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; goto __pyx_L1;}
1869
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
1870
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
1871
 
    __Pyx_Raise(__pyx_3, 0, 0);
1872
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
1873
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; goto __pyx_L1;}
1874
 
    goto __pyx_L5;
1875
 
  }
1876
 
  __pyx_L5:;
1877
 
 
1878
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":697 */
1879
 
  Py_INCREF(__pyx_v_ret);
1880
 
  __pyx_r = __pyx_v_ret;
1881
 
  goto __pyx_L0;
1882
 
 
1883
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
1884
 
  goto __pyx_L0;
1885
 
  __pyx_L1:;
1886
 
  Py_XDECREF(__pyx_3);
1887
 
  Py_XDECREF(__pyx_4);
1888
 
  Py_XDECREF(__pyx_5);
1889
 
  Py_XDECREF(__pyx_6);
1890
 
  __Pyx_AddTraceback("_dirstate_helpers_c.Reader._get_entry");
1891
 
  __pyx_r = 0;
1892
 
  __pyx_L0:;
1893
 
  Py_DECREF(__pyx_v_path_name_file_id_key);
1894
 
  Py_DECREF(__pyx_v_minikind);
1895
 
  Py_DECREF(__pyx_v_fingerprint);
1896
 
  Py_DECREF(__pyx_v_info);
1897
 
  Py_DECREF(__pyx_v_dirname);
1898
 
  Py_DECREF(__pyx_v_trees);
1899
 
  Py_DECREF(__pyx_v_ret);
1900
 
  Py_DECREF(__pyx_v_self);
1901
 
  return __pyx_r;
1902
 
}
1903
 
 
1904
 
static PyObject *__pyx_n__num_present_parents;
1905
 
static PyObject *__pyx_n__num_entries;
1906
 
static PyObject *__pyx_n__dirblocks;
1907
 
static PyObject *__pyx_n__split_root_dirblock_into_contents;
1908
 
 
1909
 
static PyObject *__pyx_k46p;
1910
 
static PyObject *__pyx_k47p;
1911
 
static PyObject *__pyx_k48p;
1912
 
static PyObject *__pyx_k49p;
1913
 
 
1914
 
static char __pyx_k46[] = "";
1915
 
static char __pyx_k47[] = "";
1916
 
static char __pyx_k48[] = "";
1917
 
static char __pyx_k49[] = "We read the wrong number of entries. We expected to read %s, but read %s";
1918
 
 
1919
 
static PyObject *__pyx_f_19_dirstate_helpers_c_6Reader__parse_dirblocks(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1920
 
static char __pyx_doc_19_dirstate_helpers_c_6Reader__parse_dirblocks[] = "Parse all dirblocks in the state file.";
1921
 
static PyObject *__pyx_f_19_dirstate_helpers_c_6Reader__parse_dirblocks(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1922
 
  int __pyx_v_num_trees;
1923
 
  PyObject *__pyx_v_current_block;
1924
 
  PyObject *__pyx_v_entry;
1925
 
  void *__pyx_v_current_dirname;
1926
 
  int __pyx_v_new_block;
1927
 
  int __pyx_v_expected_entry_count;
1928
 
  int __pyx_v_entry_count;
1929
 
  PyObject *__pyx_v_dirblocks;
1930
 
  PyObject *__pyx_v_obj;
1931
 
  PyObject *__pyx_r;
1932
 
  PyObject *__pyx_1 = 0;
1933
 
  PyObject *__pyx_2 = 0;
1934
 
  PyObject *__pyx_3 = 0;
1935
 
  int __pyx_4;
1936
 
  PyObject *__pyx_5 = 0;
1937
 
  static char *__pyx_argnames[] = {0};
1938
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
1939
 
  Py_INCREF(__pyx_v_self);
1940
 
  __pyx_v_current_block = Py_None; Py_INCREF(Py_None);
1941
 
  __pyx_v_entry = Py_None; Py_INCREF(Py_None);
1942
 
  __pyx_v_dirblocks = Py_None; Py_INCREF(Py_None);
1943
 
  __pyx_v_obj = Py_None; Py_INCREF(Py_None);
1944
 
 
1945
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":709 */
1946
 
  __pyx_1 = PyObject_GetAttr(((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->state, __pyx_n__num_present_parents); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; goto __pyx_L1;}
1947
 
  __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; goto __pyx_L1;}
1948
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
1949
 
  __pyx_1 = PyInt_FromLong(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; goto __pyx_L1;}
1950
 
  __pyx_3 = PyNumber_Add(__pyx_2, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; goto __pyx_L1;}
1951
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
1952
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
1953
 
  __pyx_4 = PyInt_AsLong(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; goto __pyx_L1;}
1954
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
1955
 
  __pyx_v_num_trees = __pyx_4;
1956
 
 
1957
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":710 */
1958
 
  __pyx_2 = PyObject_GetAttr(((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->state, __pyx_n__num_entries); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; goto __pyx_L1;}
1959
 
  __pyx_4 = PyInt_AsLong(__pyx_2); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; goto __pyx_L1;}
1960
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
1961
 
  __pyx_v_expected_entry_count = __pyx_4;
1962
 
 
1963
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":713 */
1964
 
  __pyx_4 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader *)((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->__pyx_vtab)->_init(((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)); if (__pyx_4 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 713; goto __pyx_L1;}
1965
 
 
1966
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":715 */
1967
 
  __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 715; goto __pyx_L1;}
1968
 
  Py_DECREF(__pyx_v_current_block);
1969
 
  __pyx_v_current_block = __pyx_1;
1970
 
  __pyx_1 = 0;
1971
 
 
1972
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":716 */
1973
 
  __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; goto __pyx_L1;}
1974
 
  Py_INCREF(__pyx_k46p);
1975
 
  PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k46p);
1976
 
  Py_INCREF(__pyx_v_current_block);
1977
 
  PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_current_block);
1978
 
  __pyx_2 = PyList_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; goto __pyx_L1;}
1979
 
  __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; goto __pyx_L1;}
1980
 
  Py_INCREF(__pyx_k47p);
1981
 
  PyTuple_SET_ITEM(__pyx_1, 0, __pyx_k47p);
1982
 
  PyTuple_SET_ITEM(__pyx_1, 1, __pyx_2);
1983
 
  __pyx_2 = 0;
1984
 
  __pyx_2 = PyList_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; goto __pyx_L1;}
1985
 
  PyList_SET_ITEM(__pyx_2, 0, __pyx_3);
1986
 
  PyList_SET_ITEM(__pyx_2, 1, __pyx_1);
1987
 
  __pyx_3 = 0;
1988
 
  __pyx_1 = 0;
1989
 
  Py_DECREF(__pyx_v_dirblocks);
1990
 
  __pyx_v_dirblocks = __pyx_2;
1991
 
  __pyx_2 = 0;
1992
 
 
1993
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":717 */
1994
 
  if (PyObject_SetAttr(((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->state, __pyx_n__dirblocks, __pyx_v_dirblocks) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; goto __pyx_L1;}
1995
 
 
1996
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":718 */
1997
 
  Py_INCREF(__pyx_k48p);
1998
 
  Py_DECREF(__pyx_v_obj);
1999
 
  __pyx_v_obj = __pyx_k48p;
2000
 
 
2001
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":719 */
2002
 
  __pyx_v_current_dirname = ((void *)__pyx_v_obj);
2003
 
 
2004
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":720 */
2005
 
  __pyx_v_new_block = 0;
2006
 
 
2007
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":721 */
2008
 
  __pyx_v_entry_count = 0;
2009
 
 
2010
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":730 */
2011
 
  while (1) {
2012
 
    __pyx_4 = (((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->cur_cstr < ((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->end_cstr);
2013
 
    if (!__pyx_4) break;
2014
 
 
2015
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":731 */
2016
 
    __pyx_3 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader *)((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->__pyx_vtab)->_get_entry(((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self),__pyx_v_num_trees,(&__pyx_v_current_dirname),(&__pyx_v_new_block)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 731; goto __pyx_L1;}
2017
 
    Py_DECREF(__pyx_v_entry);
2018
 
    __pyx_v_entry = __pyx_3;
2019
 
    __pyx_3 = 0;
2020
 
 
2021
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":732 */
2022
 
    __pyx_4 = __pyx_v_new_block;
2023
 
    if (__pyx_4) {
2024
 
 
2025
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":734 */
2026
 
      __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 734; goto __pyx_L1;}
2027
 
      Py_DECREF(__pyx_v_current_block);
2028
 
      __pyx_v_current_block = __pyx_1;
2029
 
      __pyx_1 = 0;
2030
 
 
2031
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":735 */
2032
 
      __pyx_2 = (PyObject *)__pyx_v_current_dirname;
2033
 
      Py_INCREF(__pyx_2);
2034
 
      __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 736; goto __pyx_L1;}
2035
 
      PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2);
2036
 
      Py_INCREF(__pyx_v_current_block);
2037
 
      PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_current_block);
2038
 
      __pyx_2 = 0;
2039
 
      __pyx_4 = PyList_Append(__pyx_v_dirblocks,__pyx_3); if (__pyx_4 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 735; goto __pyx_L1;}
2040
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
2041
 
      goto __pyx_L4;
2042
 
    }
2043
 
    __pyx_L4:;
2044
 
 
2045
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":737 */
2046
 
    __pyx_4 = PyList_Append(__pyx_v_current_block,__pyx_v_entry); if (__pyx_4 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 737; goto __pyx_L1;}
2047
 
 
2048
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":738 */
2049
 
    __pyx_v_entry_count = (__pyx_v_entry_count + 1);
2050
 
  }
2051
 
 
2052
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":739 */
2053
 
  __pyx_4 = (__pyx_v_entry_count != __pyx_v_expected_entry_count);
2054
 
  if (__pyx_4) {
2055
 
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_errors); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; goto __pyx_L1;}
2056
 
    __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_DirstateCorrupt); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; goto __pyx_L1;}
2057
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
2058
 
    __pyx_3 = PyInt_FromLong(__pyx_v_expected_entry_count); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 743; goto __pyx_L1;}
2059
 
    __pyx_1 = PyInt_FromLong(__pyx_v_entry_count); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 743; goto __pyx_L1;}
2060
 
    __pyx_5 = PyTuple_New(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 743; goto __pyx_L1;}
2061
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_3);
2062
 
    PyTuple_SET_ITEM(__pyx_5, 1, __pyx_1);
2063
 
    __pyx_3 = 0;
2064
 
    __pyx_1 = 0;
2065
 
    __pyx_3 = PyNumber_Remainder(__pyx_k49p, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 743; goto __pyx_L1;}
2066
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
2067
 
    __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; goto __pyx_L1;}
2068
 
    Py_INCREF(((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->state);
2069
 
    PyTuple_SET_ITEM(__pyx_1, 0, ((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->state);
2070
 
    PyTuple_SET_ITEM(__pyx_1, 1, __pyx_3);
2071
 
    __pyx_3 = 0;
2072
 
    __pyx_5 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; goto __pyx_L1;}
2073
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
2074
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
2075
 
    __Pyx_Raise(__pyx_5, 0, 0);
2076
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
2077
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; goto __pyx_L1;}
2078
 
    goto __pyx_L5;
2079
 
  }
2080
 
  __pyx_L5:;
2081
 
 
2082
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":744 */
2083
 
  __pyx_3 = PyObject_GetAttr(((struct __pyx_obj_19_dirstate_helpers_c_Reader *)__pyx_v_self)->state, __pyx_n__split_root_dirblock_into_contents); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 744; goto __pyx_L1;}
2084
 
  __pyx_2 = PyObject_CallObject(__pyx_3, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 744; goto __pyx_L1;}
2085
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2086
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2087
 
 
2088
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
2089
 
  goto __pyx_L0;
2090
 
  __pyx_L1:;
2091
 
  Py_XDECREF(__pyx_1);
2092
 
  Py_XDECREF(__pyx_2);
2093
 
  Py_XDECREF(__pyx_3);
2094
 
  Py_XDECREF(__pyx_5);
2095
 
  __Pyx_AddTraceback("_dirstate_helpers_c.Reader._parse_dirblocks");
2096
 
  __pyx_r = 0;
2097
 
  __pyx_L0:;
2098
 
  Py_DECREF(__pyx_v_current_block);
2099
 
  Py_DECREF(__pyx_v_entry);
2100
 
  Py_DECREF(__pyx_v_dirblocks);
2101
 
  Py_DECREF(__pyx_v_obj);
2102
 
  Py_DECREF(__pyx_v_self);
2103
 
  return __pyx_r;
2104
 
}
2105
 
 
2106
 
static PyObject *__pyx_n__state_file;
2107
 
static PyObject *__pyx_n_seek;
2108
 
static PyObject *__pyx_n__end_of_header;
2109
 
static PyObject *__pyx_n_read;
2110
 
static PyObject *__pyx_n__parse_dirblocks;
2111
 
static PyObject *__pyx_n_IN_MEMORY_UNMODIFIED;
2112
 
static PyObject *__pyx_n__dirblock_state;
2113
 
 
2114
 
static PyObject *__pyx_f_19_dirstate_helpers_c__read_dirblocks_c(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
2115
 
static char __pyx_doc_19_dirstate_helpers_c__read_dirblocks_c[] = "Read in the dirblocks for the given DirState object.\n\n    This is tightly bound to the DirState internal representation. It should be\n    thought of as a member function, which is only separated out so that we can\n    re-write it in pyrex.\n\n    :param state: A DirState object.\n    :return: None\n    :postcondition: The dirblocks will be loaded into the appropriate fields in\n        the DirState object.\n    ";
2116
 
static PyObject *__pyx_f_19_dirstate_helpers_c__read_dirblocks_c(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
2117
 
  PyObject *__pyx_v_state = 0;
2118
 
  PyObject *__pyx_v_text;
2119
 
  PyObject *__pyx_v_reader;
2120
 
  PyObject *__pyx_r;
2121
 
  PyObject *__pyx_1 = 0;
2122
 
  PyObject *__pyx_2 = 0;
2123
 
  PyObject *__pyx_3 = 0;
2124
 
  static char *__pyx_argnames[] = {"state",0};
2125
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_state)) return 0;
2126
 
  Py_INCREF(__pyx_v_state);
2127
 
  __pyx_v_text = Py_None; Py_INCREF(Py_None);
2128
 
  __pyx_v_reader = Py_None; Py_INCREF(Py_None);
2129
 
 
2130
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":759 */
2131
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_state, __pyx_n__state_file); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; goto __pyx_L1;}
2132
 
  __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_seek); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; goto __pyx_L1;}
2133
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2134
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_state, __pyx_n__end_of_header); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; goto __pyx_L1;}
2135
 
  __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; goto __pyx_L1;}
2136
 
  PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1);
2137
 
  __pyx_1 = 0;
2138
 
  __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; goto __pyx_L1;}
2139
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2140
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2141
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2142
 
 
2143
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":760 */
2144
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_state, __pyx_n__state_file); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 760; goto __pyx_L1;}
2145
 
  __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_read); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 760; goto __pyx_L1;}
2146
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2147
 
  __pyx_1 = PyObject_CallObject(__pyx_3, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 760; goto __pyx_L1;}
2148
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2149
 
  Py_DECREF(__pyx_v_text);
2150
 
  __pyx_v_text = __pyx_1;
2151
 
  __pyx_1 = 0;
2152
 
 
2153
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":763 */
2154
 
  __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 763; goto __pyx_L1;}
2155
 
  Py_INCREF(__pyx_v_text);
2156
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_text);
2157
 
  Py_INCREF(__pyx_v_state);
2158
 
  PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_state);
2159
 
  __pyx_3 = PyObject_CallObject(((PyObject*)__pyx_ptype_19_dirstate_helpers_c_Reader), __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 763; goto __pyx_L1;}
2160
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2161
 
  Py_DECREF(__pyx_v_reader);
2162
 
  __pyx_v_reader = __pyx_3;
2163
 
  __pyx_3 = 0;
2164
 
 
2165
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":765 */
2166
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_reader, __pyx_n__parse_dirblocks); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 765; goto __pyx_L1;}
2167
 
  __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 765; goto __pyx_L1;}
2168
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2169
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2170
 
 
2171
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":766 */
2172
 
  __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_DirState); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; goto __pyx_L1;}
2173
 
  __pyx_1 = PyObject_GetAttr(__pyx_3, __pyx_n_IN_MEMORY_UNMODIFIED); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; goto __pyx_L1;}
2174
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2175
 
  if (PyObject_SetAttr(__pyx_v_state, __pyx_n__dirblock_state, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; goto __pyx_L1;}
2176
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2177
 
 
2178
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
2179
 
  goto __pyx_L0;
2180
 
  __pyx_L1:;
2181
 
  Py_XDECREF(__pyx_1);
2182
 
  Py_XDECREF(__pyx_2);
2183
 
  Py_XDECREF(__pyx_3);
2184
 
  __Pyx_AddTraceback("_dirstate_helpers_c._read_dirblocks_c");
2185
 
  __pyx_r = 0;
2186
 
  __pyx_L0:;
2187
 
  Py_DECREF(__pyx_v_text);
2188
 
  Py_DECREF(__pyx_v_reader);
2189
 
  Py_DECREF(__pyx_v_state);
2190
 
  return __pyx_r;
2191
 
}
2192
 
 
2193
 
static int __pyx_f_19_dirstate_helpers_c_minikind_from_mode(int __pyx_v_mode) {
2194
 
  int __pyx_r;
2195
 
  int __pyx_1;
2196
 
 
2197
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":771 */
2198
 
  __pyx_1 = S_ISREG(__pyx_v_mode);
2199
 
  if (__pyx_1) {
2200
 
    __pyx_r = 'f';
2201
 
    goto __pyx_L0;
2202
 
    goto __pyx_L2;
2203
 
  }
2204
 
  __pyx_L2:;
2205
 
 
2206
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":773 */
2207
 
  __pyx_1 = S_ISDIR(__pyx_v_mode);
2208
 
  if (__pyx_1) {
2209
 
    __pyx_r = 'd';
2210
 
    goto __pyx_L0;
2211
 
    goto __pyx_L3;
2212
 
  }
2213
 
  __pyx_L3:;
2214
 
 
2215
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":775 */
2216
 
  __pyx_1 = S_ISLNK(__pyx_v_mode);
2217
 
  if (__pyx_1) {
2218
 
    __pyx_r = 'l';
2219
 
    goto __pyx_L0;
2220
 
    goto __pyx_L4;
2221
 
  }
2222
 
  __pyx_L4:;
2223
 
 
2224
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":777 */
2225
 
  __pyx_r = 0;
2226
 
  goto __pyx_L0;
2227
 
 
2228
 
  __pyx_r = 0;
2229
 
  __pyx_L0:;
2230
 
  return __pyx_r;
2231
 
}
2232
 
 
2233
 
static PyObject *__pyx_n_st_size;
2234
 
static PyObject *__pyx_n_int;
2235
 
static PyObject *__pyx_n_st_mtime;
2236
 
static PyObject *__pyx_n_st_ctime;
2237
 
static PyObject *__pyx_n_st_dev;
2238
 
static PyObject *__pyx_n_st_ino;
2239
 
static PyObject *__pyx_n_st_mode;
2240
 
 
2241
 
static PyObject *__pyx_f_19_dirstate_helpers_c__pack_stat(PyObject *__pyx_v_stat_value) {
2242
 
  char __pyx_v_result[(6 * 4)];
2243
 
  int *__pyx_v_aliased;
2244
 
  PyObject *__pyx_v_packed;
2245
 
  PyObject *__pyx_r;
2246
 
  PyObject *__pyx_1 = 0;
2247
 
  unsigned long __pyx_2;
2248
 
  PyObject *__pyx_3 = 0;
2249
 
  PyObject *__pyx_4 = 0;
2250
 
  Py_INCREF(__pyx_v_stat_value);
2251
 
  __pyx_v_packed = Py_None; Py_INCREF(Py_None);
2252
 
 
2253
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":792 */
2254
 
  __pyx_v_aliased = ((int *)__pyx_v_result);
2255
 
 
2256
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":793 */
2257
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_size); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; goto __pyx_L1;}
2258
 
  __pyx_2 = PyInt_AsUnsignedLongMask(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; goto __pyx_L1;}
2259
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2260
 
  (__pyx_v_aliased[0]) = htonl(__pyx_2);
2261
 
 
2262
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":794 */
2263
 
  __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_int); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; goto __pyx_L1;}
2264
 
  __pyx_3 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_mtime); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; goto __pyx_L1;}
2265
 
  __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; goto __pyx_L1;}
2266
 
  PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3);
2267
 
  __pyx_3 = 0;
2268
 
  __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; goto __pyx_L1;}
2269
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2270
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
2271
 
  __pyx_2 = PyInt_AsUnsignedLongMask(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; goto __pyx_L1;}
2272
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2273
 
  (__pyx_v_aliased[1]) = htonl(__pyx_2);
2274
 
 
2275
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":795 */
2276
 
  __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_int); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; goto __pyx_L1;}
2277
 
  __pyx_4 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_ctime); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; goto __pyx_L1;}
2278
 
  __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; goto __pyx_L1;}
2279
 
  PyTuple_SET_ITEM(__pyx_3, 0, __pyx_4);
2280
 
  __pyx_4 = 0;
2281
 
  __pyx_4 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; goto __pyx_L1;}
2282
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2283
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2284
 
  __pyx_2 = PyInt_AsUnsignedLongMask(__pyx_4); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; goto __pyx_L1;}
2285
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
2286
 
  (__pyx_v_aliased[2]) = htonl(__pyx_2);
2287
 
 
2288
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":796 */
2289
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_dev); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; goto __pyx_L1;}
2290
 
  __pyx_2 = PyInt_AsUnsignedLongMask(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; goto __pyx_L1;}
2291
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2292
 
  (__pyx_v_aliased[3]) = htonl(__pyx_2);
2293
 
 
2294
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":797 */
2295
 
  __pyx_3 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_ino); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 797; goto __pyx_L1;}
2296
 
  __pyx_4 = PyInt_FromLong(0xFFFFFFFF); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 797; goto __pyx_L1;}
2297
 
  __pyx_1 = PyNumber_And(__pyx_3, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 797; goto __pyx_L1;}
2298
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2299
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
2300
 
  __pyx_2 = PyInt_AsUnsignedLongMask(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 797; goto __pyx_L1;}
2301
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2302
 
  (__pyx_v_aliased[4]) = htonl(__pyx_2);
2303
 
 
2304
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":798 */
2305
 
  __pyx_3 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_mode); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 798; goto __pyx_L1;}
2306
 
  __pyx_2 = PyInt_AsUnsignedLongMask(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 798; goto __pyx_L1;}
2307
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2308
 
  (__pyx_v_aliased[5]) = htonl(__pyx_2);
2309
 
 
2310
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":799 */
2311
 
  __pyx_4 = PyString_FromStringAndSize(__pyx_v_result,(6 * 4)); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; goto __pyx_L1;}
2312
 
  Py_DECREF(__pyx_v_packed);
2313
 
  __pyx_v_packed = __pyx_4;
2314
 
  __pyx_4 = 0;
2315
 
 
2316
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":800 */
2317
 
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__encode); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; goto __pyx_L1;}
2318
 
  __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; goto __pyx_L1;}
2319
 
  Py_INCREF(__pyx_v_packed);
2320
 
  PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_packed);
2321
 
  __pyx_4 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; goto __pyx_L1;}
2322
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2323
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
2324
 
  __pyx_1 = PySequence_GetSlice(__pyx_4, 0, (-1)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; goto __pyx_L1;}
2325
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
2326
 
  __pyx_r = __pyx_1;
2327
 
  __pyx_1 = 0;
2328
 
  goto __pyx_L0;
2329
 
 
2330
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
2331
 
  goto __pyx_L0;
2332
 
  __pyx_L1:;
2333
 
  Py_XDECREF(__pyx_1);
2334
 
  Py_XDECREF(__pyx_3);
2335
 
  Py_XDECREF(__pyx_4);
2336
 
  __Pyx_AddTraceback("_dirstate_helpers_c._pack_stat");
2337
 
  __pyx_r = 0;
2338
 
  __pyx_L0:;
2339
 
  Py_DECREF(__pyx_v_packed);
2340
 
  Py_DECREF(__pyx_v_stat_value);
2341
 
  return __pyx_r;
2342
 
}
2343
 
 
2344
 
static PyObject *__pyx_f_19_dirstate_helpers_c_update_entry(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
2345
 
static char __pyx_doc_19_dirstate_helpers_c_update_entry[] = "Update the entry based on what is actually on disk.\n\n    This function only calculates the sha if it needs to - if the entry is\n    uncachable, or clearly different to the first parent\'s entry, no sha\n    is calculated, and None is returned.\n\n    :param entry: This is the dirblock entry for the file in question.\n    :param abspath: The path on disk for this file.\n    :param stat_value: (optional) if we already have done a stat on the\n        file, re-use it.\n    :return: None, or The sha1 hexdigest of the file (40 bytes) or link\n        target of a symlink.\n    ";
2346
 
static PyObject *__pyx_f_19_dirstate_helpers_c_update_entry(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
2347
 
  PyObject *__pyx_v_self = 0;
2348
 
  PyObject *__pyx_v_entry = 0;
2349
 
  PyObject *__pyx_v_abspath = 0;
2350
 
  PyObject *__pyx_v_stat_value = 0;
2351
 
  PyObject *__pyx_r;
2352
 
  PyObject *__pyx_1 = 0;
2353
 
  static char *__pyx_argnames[] = {"self","entry","abspath","stat_value",0};
2354
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OOOO", __pyx_argnames, &__pyx_v_self, &__pyx_v_entry, &__pyx_v_abspath, &__pyx_v_stat_value)) return 0;
2355
 
  Py_INCREF(__pyx_v_self);
2356
 
  Py_INCREF(__pyx_v_entry);
2357
 
  Py_INCREF(__pyx_v_abspath);
2358
 
  Py_INCREF(__pyx_v_stat_value);
2359
 
  __pyx_1 = __pyx_f_19_dirstate_helpers_c__update_entry(__pyx_v_self,__pyx_v_entry,__pyx_v_abspath,__pyx_v_stat_value); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; goto __pyx_L1;}
2360
 
  __pyx_r = __pyx_1;
2361
 
  __pyx_1 = 0;
2362
 
  goto __pyx_L0;
2363
 
 
2364
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
2365
 
  goto __pyx_L0;
2366
 
  __pyx_L1:;
2367
 
  Py_XDECREF(__pyx_1);
2368
 
  __Pyx_AddTraceback("_dirstate_helpers_c.update_entry");
2369
 
  __pyx_r = 0;
2370
 
  __pyx_L0:;
2371
 
  Py_DECREF(__pyx_v_self);
2372
 
  Py_DECREF(__pyx_v_entry);
2373
 
  Py_DECREF(__pyx_v_abspath);
2374
 
  Py_DECREF(__pyx_v_stat_value);
2375
 
  return __pyx_r;
2376
 
}
2377
 
 
2378
 
static PyObject *__pyx_n__is_executable;
2379
 
static PyObject *__pyx_n__cutoff_time;
2380
 
static PyObject *__pyx_n__sha_cutoff_time;
2381
 
static PyObject *__pyx_n_a;
2382
 
static PyObject *__pyx_n__sha1_file;
2383
 
static PyObject *__pyx_n_f;
2384
 
static PyObject *__pyx_n_NULLSTAT;
2385
 
static PyObject *__pyx_n_d;
2386
 
static PyObject *__pyx_n_False;
2387
 
static PyObject *__pyx_n__get_block_entry_index;
2388
 
static PyObject *__pyx_n__ensure_block;
2389
 
static PyObject *__pyx_n__read_link;
2390
 
static PyObject *__pyx_n_l;
2391
 
static PyObject *__pyx_n_IN_MEMORY_MODIFIED;
2392
 
 
2393
 
static PyObject *__pyx_k53p;
2394
 
static PyObject *__pyx_k55p;
2395
 
static PyObject *__pyx_k58p;
2396
 
 
2397
 
static char __pyx_k53[] = "";
2398
 
static char __pyx_k55[] = "";
2399
 
static char __pyx_k58[] = "";
2400
 
 
2401
 
static PyObject *__pyx_f_19_dirstate_helpers_c__update_entry(PyObject *__pyx_v_self,PyObject *__pyx_v_entry,PyObject *__pyx_v_abspath,PyObject *__pyx_v_stat_value) {
2402
 
  int __pyx_v_minikind;
2403
 
  int __pyx_v_saved_minikind;
2404
 
  void *__pyx_v_details;
2405
 
  PyObject *__pyx_v_packed_stat;
2406
 
  PyObject *__pyx_v_saved_link_or_sha1;
2407
 
  PyObject *__pyx_v_saved_file_size;
2408
 
  PyObject *__pyx_v_saved_executable;
2409
 
  PyObject *__pyx_v_saved_packed_stat;
2410
 
  PyObject *__pyx_v_link_or_sha1;
2411
 
  PyObject *__pyx_v_executable;
2412
 
  PyObject *__pyx_v_block_index;
2413
 
  PyObject *__pyx_v_entry_index;
2414
 
  PyObject *__pyx_v_dir_present;
2415
 
  PyObject *__pyx_v_file_present;
2416
 
  PyObject *__pyx_r;
2417
 
  PyObject *__pyx_1 = 0;
2418
 
  int __pyx_2;
2419
 
  PyObject *__pyx_3 = 0;
2420
 
  PyObject *__pyx_4 = 0;
2421
 
  Py_ssize_t __pyx_5;
2422
 
  PyObject *__pyx_6 = 0;
2423
 
  PyObject *__pyx_7 = 0;
2424
 
  PyObject *__pyx_8 = 0;
2425
 
  Py_INCREF(__pyx_v_self);
2426
 
  Py_INCREF(__pyx_v_entry);
2427
 
  Py_INCREF(__pyx_v_abspath);
2428
 
  Py_INCREF(__pyx_v_stat_value);
2429
 
  __pyx_v_packed_stat = Py_None; Py_INCREF(Py_None);
2430
 
  __pyx_v_saved_link_or_sha1 = Py_None; Py_INCREF(Py_None);
2431
 
  __pyx_v_saved_file_size = Py_None; Py_INCREF(Py_None);
2432
 
  __pyx_v_saved_executable = Py_None; Py_INCREF(Py_None);
2433
 
  __pyx_v_saved_packed_stat = Py_None; Py_INCREF(Py_None);
2434
 
  __pyx_v_link_or_sha1 = Py_None; Py_INCREF(Py_None);
2435
 
  __pyx_v_executable = Py_None; Py_INCREF(Py_None);
2436
 
  __pyx_v_block_index = Py_None; Py_INCREF(Py_None);
2437
 
  __pyx_v_entry_index = Py_None; Py_INCREF(Py_None);
2438
 
  __pyx_v_dir_present = Py_None; Py_INCREF(Py_None);
2439
 
  __pyx_v_file_present = Py_None; Py_INCREF(Py_None);
2440
 
 
2441
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":838 */
2442
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_mode); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; goto __pyx_L1;}
2443
 
  __pyx_2 = PyInt_AsLong(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; goto __pyx_L1;}
2444
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2445
 
  __pyx_v_minikind = __pyx_f_19_dirstate_helpers_c_minikind_from_mode(__pyx_2);
2446
 
 
2447
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":839 */
2448
 
  __pyx_2 = (0 == __pyx_v_minikind);
2449
 
  if (__pyx_2) {
2450
 
    Py_INCREF(Py_None);
2451
 
    __pyx_r = Py_None;
2452
 
    goto __pyx_L0;
2453
 
    goto __pyx_L2;
2454
 
  }
2455
 
  __pyx_L2:;
2456
 
 
2457
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":841 */
2458
 
  __pyx_1 = __pyx_f_19_dirstate_helpers_c__pack_stat(__pyx_v_stat_value); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; goto __pyx_L1;}
2459
 
  Py_DECREF(__pyx_v_packed_stat);
2460
 
  __pyx_v_packed_stat = __pyx_1;
2461
 
  __pyx_1 = 0;
2462
 
 
2463
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":842 */
2464
 
  __pyx_v_details = PyList_GET_ITEM(PyTuple_GET_ITEM(((void *)__pyx_v_entry),1),0);
2465
 
 
2466
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":843 */
2467
 
  __pyx_v_saved_minikind = (PyString_AsString(((PyObject *)PyTuple_GET_ITEM(__pyx_v_details,0)))[0]);
2468
 
 
2469
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":844 */
2470
 
  __pyx_2 = (__pyx_v_minikind == 'd');
2471
 
  if (__pyx_2) {
2472
 
    __pyx_2 = (__pyx_v_saved_minikind == 't');
2473
 
  }
2474
 
  if (__pyx_2) {
2475
 
    __pyx_v_minikind = 't';
2476
 
    goto __pyx_L3;
2477
 
  }
2478
 
  __pyx_L3:;
2479
 
 
2480
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":846 */
2481
 
  __pyx_1 = PyTuple_GET_ITEM(__pyx_v_details,1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 846; goto __pyx_L1;}
2482
 
  Py_DECREF(__pyx_v_saved_link_or_sha1);
2483
 
  __pyx_v_saved_link_or_sha1 = __pyx_1;
2484
 
  __pyx_1 = 0;
2485
 
 
2486
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":847 */
2487
 
  __pyx_1 = PyTuple_GET_ITEM(__pyx_v_details,2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 847; goto __pyx_L1;}
2488
 
  Py_DECREF(__pyx_v_saved_file_size);
2489
 
  __pyx_v_saved_file_size = __pyx_1;
2490
 
  __pyx_1 = 0;
2491
 
 
2492
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":848 */
2493
 
  __pyx_1 = PyTuple_GET_ITEM(__pyx_v_details,3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; goto __pyx_L1;}
2494
 
  Py_DECREF(__pyx_v_saved_executable);
2495
 
  __pyx_v_saved_executable = __pyx_1;
2496
 
  __pyx_1 = 0;
2497
 
 
2498
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":849 */
2499
 
  __pyx_1 = PyTuple_GET_ITEM(__pyx_v_details,4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 849; goto __pyx_L1;}
2500
 
  Py_DECREF(__pyx_v_saved_packed_stat);
2501
 
  __pyx_v_saved_packed_stat = __pyx_1;
2502
 
  __pyx_1 = 0;
2503
 
 
2504
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":851 */
2505
 
  Py_INCREF(__pyx_v_saved_link_or_sha1);
2506
 
 
2507
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":852 */
2508
 
  Py_INCREF(__pyx_v_saved_file_size);
2509
 
 
2510
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":853 */
2511
 
  Py_INCREF(__pyx_v_saved_executable);
2512
 
 
2513
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":854 */
2514
 
  Py_INCREF(__pyx_v_saved_packed_stat);
2515
 
 
2516
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":858 */
2517
 
  __pyx_2 = (__pyx_v_minikind == __pyx_v_saved_minikind);
2518
 
  if (__pyx_2) {
2519
 
    if (PyObject_Cmp(__pyx_v_packed_stat, __pyx_v_saved_packed_stat, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; goto __pyx_L1;}
2520
 
    __pyx_2 = __pyx_2 == 0;
2521
 
  }
2522
 
  if (__pyx_2) {
2523
 
 
2524
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":862 */
2525
 
    __pyx_2 = (__pyx_v_minikind == 'd');
2526
 
    if (__pyx_2) {
2527
 
      Py_INCREF(Py_None);
2528
 
      __pyx_r = Py_None;
2529
 
      goto __pyx_L0;
2530
 
      goto __pyx_L5;
2531
 
    }
2532
 
    __pyx_L5:;
2533
 
 
2534
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":866 */
2535
 
    __pyx_1 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_size); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; goto __pyx_L1;}
2536
 
    if (PyObject_Cmp(__pyx_v_saved_file_size, __pyx_1, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; goto __pyx_L1;}
2537
 
    __pyx_2 = __pyx_2 == 0;
2538
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
2539
 
    if (__pyx_2) {
2540
 
      Py_INCREF(__pyx_v_saved_link_or_sha1);
2541
 
      __pyx_r = __pyx_v_saved_link_or_sha1;
2542
 
      goto __pyx_L0;
2543
 
      goto __pyx_L6;
2544
 
    }
2545
 
    __pyx_L6:;
2546
 
    goto __pyx_L4;
2547
 
  }
2548
 
  __pyx_L4:;
2549
 
 
2550
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":871 */
2551
 
  Py_INCREF(Py_None);
2552
 
  Py_DECREF(__pyx_v_link_or_sha1);
2553
 
  __pyx_v_link_or_sha1 = Py_None;
2554
 
 
2555
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":872 */
2556
 
  __pyx_2 = (__pyx_v_minikind == 'f');
2557
 
  if (__pyx_2) {
2558
 
 
2559
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":873 */
2560
 
    __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n__is_executable); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 873; goto __pyx_L1;}
2561
 
    __pyx_3 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_mode); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 873; goto __pyx_L1;}
2562
 
    __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 873; goto __pyx_L1;}
2563
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3);
2564
 
    Py_INCREF(__pyx_v_saved_executable);
2565
 
    PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_saved_executable);
2566
 
    __pyx_3 = 0;
2567
 
    __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 873; goto __pyx_L1;}
2568
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
2569
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
2570
 
    Py_DECREF(__pyx_v_executable);
2571
 
    __pyx_v_executable = __pyx_3;
2572
 
    __pyx_3 = 0;
2573
 
 
2574
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":875 */
2575
 
    __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n__cutoff_time); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; goto __pyx_L1;}
2576
 
    __pyx_2 = __pyx_1 == Py_None;
2577
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
2578
 
    if (__pyx_2) {
2579
 
      __pyx_4 = PyObject_GetAttr(__pyx_v_self, __pyx_n__sha_cutoff_time); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 876; goto __pyx_L1;}
2580
 
      __pyx_3 = PyObject_CallObject(__pyx_4, 0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 876; goto __pyx_L1;}
2581
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
2582
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
2583
 
      goto __pyx_L8;
2584
 
    }
2585
 
    __pyx_L8:;
2586
 
 
2587
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":877 */
2588
 
    __pyx_1 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_mtime); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; goto __pyx_L1;}
2589
 
    __pyx_4 = PyObject_GetAttr(__pyx_v_self, __pyx_n__cutoff_time); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; goto __pyx_L1;}
2590
 
    if (PyObject_Cmp(__pyx_1, __pyx_4, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; goto __pyx_L1;}
2591
 
    __pyx_2 = __pyx_2 < 0;
2592
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
2593
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
2594
 
    if (__pyx_2) {
2595
 
      __pyx_3 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_ctime); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 878; goto __pyx_L1;}
2596
 
      __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n__cutoff_time); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 878; goto __pyx_L1;}
2597
 
      if (PyObject_Cmp(__pyx_3, __pyx_1, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 878; goto __pyx_L1;}
2598
 
      __pyx_2 = __pyx_2 < 0;
2599
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
2600
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
2601
 
      if (__pyx_2) {
2602
 
        __pyx_4 = PyInt_FromLong(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 879; goto __pyx_L1;}
2603
 
        __pyx_3 = PyObject_GetItem(__pyx_v_entry, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 879; goto __pyx_L1;}
2604
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
2605
 
        __pyx_5 = PyObject_Length(__pyx_3); if (__pyx_5 == -1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 879; goto __pyx_L1;}
2606
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
2607
 
        __pyx_2 = (__pyx_5 > 1);
2608
 
        if (__pyx_2) {
2609
 
          __pyx_1 = PyInt_FromLong(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 880; goto __pyx_L1;}
2610
 
          __pyx_4 = PyObject_GetItem(__pyx_v_entry, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 880; goto __pyx_L1;}
2611
 
          Py_DECREF(__pyx_1); __pyx_1 = 0;
2612
 
          __pyx_3 = PyInt_FromLong(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 880; goto __pyx_L1;}
2613
 
          __pyx_1 = PyObject_GetItem(__pyx_4, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 880; goto __pyx_L1;}
2614
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
2615
 
          Py_DECREF(__pyx_3); __pyx_3 = 0;
2616
 
          __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 880; goto __pyx_L1;}
2617
 
          __pyx_3 = PyObject_GetItem(__pyx_1, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 880; goto __pyx_L1;}
2618
 
          Py_DECREF(__pyx_1); __pyx_1 = 0;
2619
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
2620
 
          if (PyObject_Cmp(__pyx_3, __pyx_n_a, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 880; goto __pyx_L1;}
2621
 
          __pyx_2 = __pyx_2 != 0;
2622
 
          Py_DECREF(__pyx_3); __pyx_3 = 0;
2623
 
        }
2624
 
      }
2625
 
    }
2626
 
    if (__pyx_2) {
2627
 
 
2628
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":884 */
2629
 
      __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n__sha1_file); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 884; goto __pyx_L1;}
2630
 
      __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 884; goto __pyx_L1;}
2631
 
      Py_INCREF(__pyx_v_abspath);
2632
 
      PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_abspath);
2633
 
      __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 884; goto __pyx_L1;}
2634
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
2635
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
2636
 
      Py_DECREF(__pyx_v_link_or_sha1);
2637
 
      __pyx_v_link_or_sha1 = __pyx_3;
2638
 
      __pyx_3 = 0;
2639
 
 
2640
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":885 */
2641
 
      __pyx_1 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_size); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; goto __pyx_L1;}
2642
 
      __pyx_4 = PyTuple_New(5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; goto __pyx_L1;}
2643
 
      Py_INCREF(__pyx_n_f);
2644
 
      PyTuple_SET_ITEM(__pyx_4, 0, __pyx_n_f);
2645
 
      Py_INCREF(__pyx_v_link_or_sha1);
2646
 
      PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_link_or_sha1);
2647
 
      PyTuple_SET_ITEM(__pyx_4, 2, __pyx_1);
2648
 
      Py_INCREF(__pyx_v_executable);
2649
 
      PyTuple_SET_ITEM(__pyx_4, 3, __pyx_v_executable);
2650
 
      Py_INCREF(__pyx_v_packed_stat);
2651
 
      PyTuple_SET_ITEM(__pyx_4, 4, __pyx_v_packed_stat);
2652
 
      __pyx_1 = 0;
2653
 
      __pyx_3 = PyInt_FromLong(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; goto __pyx_L1;}
2654
 
      __pyx_1 = PyObject_GetItem(__pyx_v_entry, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; goto __pyx_L1;}
2655
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
2656
 
      __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; goto __pyx_L1;}
2657
 
      if (PyObject_SetItem(__pyx_1, __pyx_3, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; goto __pyx_L1;}
2658
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
2659
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
2660
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
2661
 
      goto __pyx_L9;
2662
 
    }
2663
 
    /*else*/ {
2664
 
      __pyx_4 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_size); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; goto __pyx_L1;}
2665
 
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_DirState); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 889; goto __pyx_L1;}
2666
 
      __pyx_3 = PyObject_GetAttr(__pyx_1, __pyx_n_NULLSTAT); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 889; goto __pyx_L1;}
2667
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
2668
 
      __pyx_1 = PyTuple_New(5); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; goto __pyx_L1;}
2669
 
      Py_INCREF(__pyx_n_f);
2670
 
      PyTuple_SET_ITEM(__pyx_1, 0, __pyx_n_f);
2671
 
      Py_INCREF(__pyx_k53p);
2672
 
      PyTuple_SET_ITEM(__pyx_1, 1, __pyx_k53p);
2673
 
      PyTuple_SET_ITEM(__pyx_1, 2, __pyx_4);
2674
 
      Py_INCREF(__pyx_v_executable);
2675
 
      PyTuple_SET_ITEM(__pyx_1, 3, __pyx_v_executable);
2676
 
      PyTuple_SET_ITEM(__pyx_1, 4, __pyx_3);
2677
 
      __pyx_4 = 0;
2678
 
      __pyx_3 = 0;
2679
 
      __pyx_4 = PyInt_FromLong(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; goto __pyx_L1;}
2680
 
      __pyx_3 = PyObject_GetItem(__pyx_v_entry, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; goto __pyx_L1;}
2681
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
2682
 
      __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; goto __pyx_L1;}
2683
 
      if (PyObject_SetItem(__pyx_3, __pyx_4, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; goto __pyx_L1;}
2684
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
2685
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
2686
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
2687
 
    }
2688
 
    __pyx_L9:;
2689
 
    goto __pyx_L7;
2690
 
  }
2691
 
  __pyx_2 = (__pyx_v_minikind == 'd');
2692
 
  if (__pyx_2) {
2693
 
 
2694
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":891 */
2695
 
    Py_INCREF(Py_None);
2696
 
    Py_DECREF(__pyx_v_link_or_sha1);
2697
 
    __pyx_v_link_or_sha1 = Py_None;
2698
 
 
2699
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":892 */
2700
 
    __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; goto __pyx_L1;}
2701
 
    __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; goto __pyx_L1;}
2702
 
    __pyx_4 = PyTuple_New(5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; goto __pyx_L1;}
2703
 
    Py_INCREF(__pyx_n_d);
2704
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_n_d);
2705
 
    Py_INCREF(__pyx_k55p);
2706
 
    PyTuple_SET_ITEM(__pyx_4, 1, __pyx_k55p);
2707
 
    PyTuple_SET_ITEM(__pyx_4, 2, __pyx_1);
2708
 
    PyTuple_SET_ITEM(__pyx_4, 3, __pyx_3);
2709
 
    Py_INCREF(__pyx_v_packed_stat);
2710
 
    PyTuple_SET_ITEM(__pyx_4, 4, __pyx_v_packed_stat);
2711
 
    __pyx_1 = 0;
2712
 
    __pyx_3 = 0;
2713
 
    __pyx_1 = PyInt_FromLong(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; goto __pyx_L1;}
2714
 
    __pyx_3 = PyObject_GetItem(__pyx_v_entry, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; goto __pyx_L1;}
2715
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
2716
 
    __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; goto __pyx_L1;}
2717
 
    if (PyObject_SetItem(__pyx_3, __pyx_1, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; goto __pyx_L1;}
2718
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
2719
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
2720
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
2721
 
 
2722
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":893 */
2723
 
    __pyx_2 = (__pyx_v_saved_minikind != 'd');
2724
 
    if (__pyx_2) {
2725
 
 
2726
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":898 */
2727
 
      __pyx_4 = PyObject_GetAttr(__pyx_v_self, __pyx_n__get_block_entry_index); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; goto __pyx_L1;}
2728
 
      __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; goto __pyx_L1;}
2729
 
      __pyx_1 = PyObject_GetItem(__pyx_v_entry, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; goto __pyx_L1;}
2730
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
2731
 
      __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; goto __pyx_L1;}
2732
 
      __pyx_6 = PyObject_GetItem(__pyx_1, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; goto __pyx_L1;}
2733
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
2734
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
2735
 
      __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; goto __pyx_L1;}
2736
 
      __pyx_3 = PyObject_GetItem(__pyx_v_entry, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; goto __pyx_L1;}
2737
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
2738
 
      __pyx_1 = PyInt_FromLong(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; goto __pyx_L1;}
2739
 
      __pyx_7 = PyObject_GetItem(__pyx_3, __pyx_1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; goto __pyx_L1;}
2740
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
2741
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
2742
 
      __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; goto __pyx_L1;}
2743
 
      __pyx_1 = PyTuple_New(3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; goto __pyx_L1;}
2744
 
      PyTuple_SET_ITEM(__pyx_1, 0, __pyx_6);
2745
 
      PyTuple_SET_ITEM(__pyx_1, 1, __pyx_7);
2746
 
      PyTuple_SET_ITEM(__pyx_1, 2, __pyx_3);
2747
 
      __pyx_6 = 0;
2748
 
      __pyx_7 = 0;
2749
 
      __pyx_3 = 0;
2750
 
      __pyx_6 = PyObject_CallObject(__pyx_4, __pyx_1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; goto __pyx_L1;}
2751
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
2752
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
2753
 
      __pyx_7 = PyObject_GetIter(__pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 897; goto __pyx_L1;}
2754
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
2755
 
      __pyx_3 = __Pyx_UnpackItem(__pyx_7); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 897; goto __pyx_L1;}
2756
 
      Py_DECREF(__pyx_v_block_index);
2757
 
      __pyx_v_block_index = __pyx_3;
2758
 
      __pyx_3 = 0;
2759
 
      __pyx_4 = __Pyx_UnpackItem(__pyx_7); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 897; goto __pyx_L1;}
2760
 
      Py_DECREF(__pyx_v_entry_index);
2761
 
      __pyx_v_entry_index = __pyx_4;
2762
 
      __pyx_4 = 0;
2763
 
      __pyx_1 = __Pyx_UnpackItem(__pyx_7); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 897; goto __pyx_L1;}
2764
 
      Py_DECREF(__pyx_v_dir_present);
2765
 
      __pyx_v_dir_present = __pyx_1;
2766
 
      __pyx_1 = 0;
2767
 
      __pyx_6 = __Pyx_UnpackItem(__pyx_7); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 897; goto __pyx_L1;}
2768
 
      Py_DECREF(__pyx_v_file_present);
2769
 
      __pyx_v_file_present = __pyx_6;
2770
 
      __pyx_6 = 0;
2771
 
      if (__Pyx_EndUnpack(__pyx_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 897; goto __pyx_L1;}
2772
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
2773
 
 
2774
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":899 */
2775
 
      __pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n__ensure_block); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 899; goto __pyx_L1;}
2776
 
      __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_pathjoin); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; goto __pyx_L1;}
2777
 
      __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; goto __pyx_L1;}
2778
 
      __pyx_6 = PyObject_GetItem(__pyx_v_entry, __pyx_1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; goto __pyx_L1;}
2779
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
2780
 
      __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; goto __pyx_L1;}
2781
 
      __pyx_1 = PyObject_GetItem(__pyx_6, __pyx_7); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; goto __pyx_L1;}
2782
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
2783
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
2784
 
      __pyx_6 = PyInt_FromLong(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; goto __pyx_L1;}
2785
 
      __pyx_7 = PyObject_GetItem(__pyx_v_entry, __pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; goto __pyx_L1;}
2786
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
2787
 
      __pyx_6 = PyInt_FromLong(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; goto __pyx_L1;}
2788
 
      __pyx_8 = PyObject_GetItem(__pyx_7, __pyx_6); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; goto __pyx_L1;}
2789
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
2790
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
2791
 
      __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; goto __pyx_L1;}
2792
 
      PyTuple_SET_ITEM(__pyx_7, 0, __pyx_1);
2793
 
      PyTuple_SET_ITEM(__pyx_7, 1, __pyx_8);
2794
 
      __pyx_1 = 0;
2795
 
      __pyx_8 = 0;
2796
 
      __pyx_6 = PyObject_CallObject(__pyx_4, __pyx_7); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; goto __pyx_L1;}
2797
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
2798
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
2799
 
      __pyx_1 = PyTuple_New(3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 899; goto __pyx_L1;}
2800
 
      Py_INCREF(__pyx_v_block_index);
2801
 
      PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_block_index);
2802
 
      Py_INCREF(__pyx_v_entry_index);
2803
 
      PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_entry_index);
2804
 
      PyTuple_SET_ITEM(__pyx_1, 2, __pyx_6);
2805
 
      __pyx_6 = 0;
2806
 
      __pyx_8 = PyObject_CallObject(__pyx_3, __pyx_1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 899; goto __pyx_L1;}
2807
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
2808
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
2809
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
2810
 
      goto __pyx_L10;
2811
 
    }
2812
 
    __pyx_L10:;
2813
 
    goto __pyx_L7;
2814
 
  }
2815
 
  __pyx_2 = (__pyx_v_minikind == 'l');
2816
 
  if (__pyx_2) {
2817
 
 
2818
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":902 */
2819
 
    __pyx_4 = PyObject_GetAttr(__pyx_v_self, __pyx_n__read_link); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 902; goto __pyx_L1;}
2820
 
    __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 902; goto __pyx_L1;}
2821
 
    Py_INCREF(__pyx_v_abspath);
2822
 
    PyTuple_SET_ITEM(__pyx_7, 0, __pyx_v_abspath);
2823
 
    Py_INCREF(__pyx_v_saved_link_or_sha1);
2824
 
    PyTuple_SET_ITEM(__pyx_7, 1, __pyx_v_saved_link_or_sha1);
2825
 
    __pyx_6 = PyObject_CallObject(__pyx_4, __pyx_7); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 902; goto __pyx_L1;}
2826
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
2827
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
2828
 
    Py_DECREF(__pyx_v_link_or_sha1);
2829
 
    __pyx_v_link_or_sha1 = __pyx_6;
2830
 
    __pyx_6 = 0;
2831
 
 
2832
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":903 */
2833
 
    __pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n__cutoff_time); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; goto __pyx_L1;}
2834
 
    __pyx_2 = __pyx_3 == Py_None;
2835
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
2836
 
    if (__pyx_2) {
2837
 
      __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n__sha_cutoff_time); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; goto __pyx_L1;}
2838
 
      __pyx_8 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; goto __pyx_L1;}
2839
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
2840
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
2841
 
      goto __pyx_L11;
2842
 
    }
2843
 
    __pyx_L11:;
2844
 
 
2845
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":905 */
2846
 
    __pyx_4 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_mtime); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; goto __pyx_L1;}
2847
 
    __pyx_7 = PyObject_GetAttr(__pyx_v_self, __pyx_n__cutoff_time); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; goto __pyx_L1;}
2848
 
    if (PyObject_Cmp(__pyx_4, __pyx_7, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; goto __pyx_L1;}
2849
 
    __pyx_2 = __pyx_2 < 0;
2850
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
2851
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
2852
 
    if (__pyx_2) {
2853
 
      __pyx_6 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_ctime); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 906; goto __pyx_L1;}
2854
 
      __pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n__cutoff_time); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 906; goto __pyx_L1;}
2855
 
      if (PyObject_Cmp(__pyx_6, __pyx_3, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 906; goto __pyx_L1;}
2856
 
      __pyx_2 = __pyx_2 < 0;
2857
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
2858
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
2859
 
    }
2860
 
    if (__pyx_2) {
2861
 
      __pyx_1 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_size); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 907; goto __pyx_L1;}
2862
 
      __pyx_8 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; goto __pyx_L1;}
2863
 
      __pyx_4 = PyTuple_New(5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 907; goto __pyx_L1;}
2864
 
      Py_INCREF(__pyx_n_l);
2865
 
      PyTuple_SET_ITEM(__pyx_4, 0, __pyx_n_l);
2866
 
      Py_INCREF(__pyx_v_link_or_sha1);
2867
 
      PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_link_or_sha1);
2868
 
      PyTuple_SET_ITEM(__pyx_4, 2, __pyx_1);
2869
 
      PyTuple_SET_ITEM(__pyx_4, 3, __pyx_8);
2870
 
      Py_INCREF(__pyx_v_packed_stat);
2871
 
      PyTuple_SET_ITEM(__pyx_4, 4, __pyx_v_packed_stat);
2872
 
      __pyx_1 = 0;
2873
 
      __pyx_8 = 0;
2874
 
      __pyx_7 = PyInt_FromLong(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 907; goto __pyx_L1;}
2875
 
      __pyx_6 = PyObject_GetItem(__pyx_v_entry, __pyx_7); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 907; goto __pyx_L1;}
2876
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
2877
 
      __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 907; goto __pyx_L1;}
2878
 
      if (PyObject_SetItem(__pyx_6, __pyx_3, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 907; goto __pyx_L1;}
2879
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
2880
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
2881
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
2882
 
      goto __pyx_L12;
2883
 
    }
2884
 
    /*else*/ {
2885
 
      __pyx_1 = PyObject_GetAttr(__pyx_v_stat_value, __pyx_n_st_size); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; goto __pyx_L1;}
2886
 
      __pyx_8 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; goto __pyx_L1;}
2887
 
      __pyx_7 = __Pyx_GetName(__pyx_m, __pyx_n_DirState); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; goto __pyx_L1;}
2888
 
      __pyx_4 = PyObject_GetAttr(__pyx_7, __pyx_n_NULLSTAT); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; goto __pyx_L1;}
2889
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
2890
 
      __pyx_6 = PyTuple_New(5); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; goto __pyx_L1;}
2891
 
      Py_INCREF(__pyx_n_l);
2892
 
      PyTuple_SET_ITEM(__pyx_6, 0, __pyx_n_l);
2893
 
      Py_INCREF(__pyx_k58p);
2894
 
      PyTuple_SET_ITEM(__pyx_6, 1, __pyx_k58p);
2895
 
      PyTuple_SET_ITEM(__pyx_6, 2, __pyx_1);
2896
 
      PyTuple_SET_ITEM(__pyx_6, 3, __pyx_8);
2897
 
      PyTuple_SET_ITEM(__pyx_6, 4, __pyx_4);
2898
 
      __pyx_1 = 0;
2899
 
      __pyx_8 = 0;
2900
 
      __pyx_4 = 0;
2901
 
      __pyx_3 = PyInt_FromLong(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; goto __pyx_L1;}
2902
 
      __pyx_7 = PyObject_GetItem(__pyx_v_entry, __pyx_3); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; goto __pyx_L1;}
2903
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
2904
 
      __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; goto __pyx_L1;}
2905
 
      if (PyObject_SetItem(__pyx_7, __pyx_1, __pyx_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; goto __pyx_L1;}
2906
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
2907
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
2908
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
2909
 
    }
2910
 
    __pyx_L12:;
2911
 
    goto __pyx_L7;
2912
 
  }
2913
 
  __pyx_L7:;
2914
 
 
2915
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":912 */
2916
 
  __pyx_8 = __Pyx_GetName(__pyx_m, __pyx_n_DirState); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 912; goto __pyx_L1;}
2917
 
  __pyx_4 = PyObject_GetAttr(__pyx_8, __pyx_n_IN_MEMORY_MODIFIED); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 912; goto __pyx_L1;}
2918
 
  Py_DECREF(__pyx_8); __pyx_8 = 0;
2919
 
  if (PyObject_SetAttr(__pyx_v_self, __pyx_n__dirblock_state, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 912; goto __pyx_L1;}
2920
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
2921
 
 
2922
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":913 */
2923
 
  Py_INCREF(__pyx_v_link_or_sha1);
2924
 
  __pyx_r = __pyx_v_link_or_sha1;
2925
 
  goto __pyx_L0;
2926
 
 
2927
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
2928
 
  goto __pyx_L0;
2929
 
  __pyx_L1:;
2930
 
  Py_XDECREF(__pyx_1);
2931
 
  Py_XDECREF(__pyx_3);
2932
 
  Py_XDECREF(__pyx_4);
2933
 
  Py_XDECREF(__pyx_6);
2934
 
  Py_XDECREF(__pyx_7);
2935
 
  Py_XDECREF(__pyx_8);
2936
 
  __Pyx_AddTraceback("_dirstate_helpers_c._update_entry");
2937
 
  __pyx_r = 0;
2938
 
  __pyx_L0:;
2939
 
  Py_DECREF(__pyx_v_packed_stat);
2940
 
  Py_DECREF(__pyx_v_saved_link_or_sha1);
2941
 
  Py_DECREF(__pyx_v_saved_file_size);
2942
 
  Py_DECREF(__pyx_v_saved_executable);
2943
 
  Py_DECREF(__pyx_v_saved_packed_stat);
2944
 
  Py_DECREF(__pyx_v_link_or_sha1);
2945
 
  Py_DECREF(__pyx_v_executable);
2946
 
  Py_DECREF(__pyx_v_block_index);
2947
 
  Py_DECREF(__pyx_v_entry_index);
2948
 
  Py_DECREF(__pyx_v_dir_present);
2949
 
  Py_DECREF(__pyx_v_file_present);
2950
 
  Py_DECREF(__pyx_v_self);
2951
 
  Py_DECREF(__pyx_v_entry);
2952
 
  Py_DECREF(__pyx_v_abspath);
2953
 
  Py_DECREF(__pyx_v_stat_value);
2954
 
  return __pyx_r;
2955
 
}
2956
 
 
2957
 
static char __pyx_f_19_dirstate_helpers_c__minikind_from_string(PyObject *__pyx_v_string) {
2958
 
  char __pyx_r;
2959
 
  Py_INCREF(__pyx_v_string);
2960
 
  __pyx_r = (PyString_AsString(__pyx_v_string)[0]);
2961
 
  goto __pyx_L0;
2962
 
 
2963
 
  __pyx_r = 0;
2964
 
  __pyx_L0:;
2965
 
  Py_DECREF(__pyx_v_string);
2966
 
  return __pyx_r;
2967
 
}
2968
 
 
2969
 
static PyObject *__pyx_n_KeyError;
2970
 
 
2971
 
static PyObject *__pyx_f_19_dirstate_helpers_c__minikind_to_kind(char __pyx_v_minikind) {
2972
 
  char __pyx_v__minikind[1];
2973
 
  PyObject *__pyx_r;
2974
 
  int __pyx_1;
2975
 
  PyObject *__pyx_2 = 0;
2976
 
  PyObject *__pyx_3 = 0;
2977
 
  PyObject *__pyx_4 = 0;
2978
 
 
2979
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":938 */
2980
 
  __pyx_1 = (__pyx_v_minikind == 'f');
2981
 
  if (__pyx_1) {
2982
 
    Py_INCREF(__pyx_v_19_dirstate_helpers_c__kind_file);
2983
 
    __pyx_r = __pyx_v_19_dirstate_helpers_c__kind_file;
2984
 
    goto __pyx_L0;
2985
 
    goto __pyx_L2;
2986
 
  }
2987
 
  __pyx_1 = (__pyx_v_minikind == 'd');
2988
 
  if (__pyx_1) {
2989
 
    Py_INCREF(__pyx_v_19_dirstate_helpers_c__kind_directory);
2990
 
    __pyx_r = __pyx_v_19_dirstate_helpers_c__kind_directory;
2991
 
    goto __pyx_L0;
2992
 
    goto __pyx_L2;
2993
 
  }
2994
 
  __pyx_1 = (__pyx_v_minikind == 'a');
2995
 
  if (__pyx_1) {
2996
 
    Py_INCREF(__pyx_v_19_dirstate_helpers_c__kind_absent);
2997
 
    __pyx_r = __pyx_v_19_dirstate_helpers_c__kind_absent;
2998
 
    goto __pyx_L0;
2999
 
    goto __pyx_L2;
3000
 
  }
3001
 
  __pyx_1 = (__pyx_v_minikind == 'r');
3002
 
  if (__pyx_1) {
3003
 
    Py_INCREF(__pyx_v_19_dirstate_helpers_c__kind_relocated);
3004
 
    __pyx_r = __pyx_v_19_dirstate_helpers_c__kind_relocated;
3005
 
    goto __pyx_L0;
3006
 
    goto __pyx_L2;
3007
 
  }
3008
 
  __pyx_1 = (__pyx_v_minikind == 'l');
3009
 
  if (__pyx_1) {
3010
 
    Py_INCREF(__pyx_v_19_dirstate_helpers_c__kind_symlink);
3011
 
    __pyx_r = __pyx_v_19_dirstate_helpers_c__kind_symlink;
3012
 
    goto __pyx_L0;
3013
 
    goto __pyx_L2;
3014
 
  }
3015
 
  __pyx_1 = (__pyx_v_minikind == 't');
3016
 
  if (__pyx_1) {
3017
 
    Py_INCREF(__pyx_v_19_dirstate_helpers_c__kind_tree_reference);
3018
 
    __pyx_r = __pyx_v_19_dirstate_helpers_c__kind_tree_reference;
3019
 
    goto __pyx_L0;
3020
 
    goto __pyx_L2;
3021
 
  }
3022
 
  __pyx_L2:;
3023
 
 
3024
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":950 */
3025
 
  (__pyx_v__minikind[0]) = __pyx_v_minikind;
3026
 
 
3027
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":951 */
3028
 
  __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_KeyError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; goto __pyx_L1;}
3029
 
  __pyx_3 = PyString_FromStringAndSize(__pyx_v__minikind,1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; goto __pyx_L1;}
3030
 
  __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; goto __pyx_L1;}
3031
 
  PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3);
3032
 
  __pyx_3 = 0;
3033
 
  __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; goto __pyx_L1;}
3034
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
3035
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
3036
 
  __Pyx_Raise(__pyx_3, 0, 0);
3037
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
3038
 
  {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; goto __pyx_L1;}
3039
 
 
3040
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
3041
 
  goto __pyx_L0;
3042
 
  __pyx_L1:;
3043
 
  Py_XDECREF(__pyx_2);
3044
 
  Py_XDECREF(__pyx_3);
3045
 
  Py_XDECREF(__pyx_4);
3046
 
  __Pyx_AddTraceback("_dirstate_helpers_c._minikind_to_kind");
3047
 
  __pyx_r = 0;
3048
 
  __pyx_L0:;
3049
 
  return __pyx_r;
3050
 
}
3051
 
 
3052
 
static int __pyx_f_19_dirstate_helpers_c__versioned_minikind(char __pyx_v_minikind) {
3053
 
  int __pyx_r;
3054
 
  int __pyx_1;
3055
 
  __pyx_1 = (__pyx_v_minikind == 'f');
3056
 
  if (!__pyx_1) {
3057
 
    __pyx_1 = (__pyx_v_minikind == 'd');
3058
 
    if (!__pyx_1) {
3059
 
      __pyx_1 = (__pyx_v_minikind == 'l');
3060
 
      if (!__pyx_1) {
3061
 
        __pyx_1 = (__pyx_v_minikind == 't');
3062
 
      }
3063
 
    }
3064
 
  }
3065
 
  __pyx_r = __pyx_1;
3066
 
  goto __pyx_L0;
3067
 
 
3068
 
  __pyx_r = 0;
3069
 
  __pyx_L0:;
3070
 
  return __pyx_r;
3071
 
}
3072
 
 
3073
 
static PyObject *__pyx_n_object;
3074
 
static PyObject *__pyx_n__utf8_decode;
3075
 
static PyObject *__pyx_n_set;
3076
 
static PyObject *__pyx_n_bisect_left;
3077
 
static PyObject *__pyx_n_fstat;
3078
 
static PyObject *__pyx_n_sha_file;
3079
 
 
3080
 
static int __pyx_f_19_dirstate_helpers_c_13ProcessEntryC___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
3081
 
static int __pyx_f_19_dirstate_helpers_c_13ProcessEntryC___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3082
 
  PyObject *__pyx_v_include_unchanged = 0;
3083
 
  PyObject *__pyx_v_use_filesystem_for_exec = 0;
3084
 
  PyObject *__pyx_v_search_specific_files = 0;
3085
 
  PyObject *__pyx_v_state = 0;
3086
 
  PyObject *__pyx_v_source_index = 0;
3087
 
  PyObject *__pyx_v_target_index = 0;
3088
 
  PyObject *__pyx_v_want_unversioned = 0;
3089
 
  PyObject *__pyx_v_tree = 0;
3090
 
  int __pyx_r;
3091
 
  PyObject *__pyx_1 = 0;
3092
 
  PyObject *__pyx_2 = 0;
3093
 
  int __pyx_3;
3094
 
  static char *__pyx_argnames[] = {"include_unchanged","use_filesystem_for_exec","search_specific_files","state","source_index","target_index","want_unversioned","tree",0};
3095
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OOOOOOOO", __pyx_argnames, &__pyx_v_include_unchanged, &__pyx_v_use_filesystem_for_exec, &__pyx_v_search_specific_files, &__pyx_v_state, &__pyx_v_source_index, &__pyx_v_target_index, &__pyx_v_want_unversioned, &__pyx_v_tree)) return -1;
3096
 
  Py_INCREF(__pyx_v_self);
3097
 
  Py_INCREF(__pyx_v_include_unchanged);
3098
 
  Py_INCREF(__pyx_v_use_filesystem_for_exec);
3099
 
  Py_INCREF(__pyx_v_search_specific_files);
3100
 
  Py_INCREF(__pyx_v_state);
3101
 
  Py_INCREF(__pyx_v_source_index);
3102
 
  Py_INCREF(__pyx_v_target_index);
3103
 
  Py_INCREF(__pyx_v_want_unversioned);
3104
 
  Py_INCREF(__pyx_v_tree);
3105
 
 
3106
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1001 */
3107
 
  __pyx_1 = PyDict_New(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; goto __pyx_L1;}
3108
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->old_dirname_to_file_id);
3109
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->old_dirname_to_file_id = __pyx_1;
3110
 
  __pyx_1 = 0;
3111
 
 
3112
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1002 */
3113
 
  __pyx_1 = PyDict_New(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1002; goto __pyx_L1;}
3114
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->new_dirname_to_file_id);
3115
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->new_dirname_to_file_id = __pyx_1;
3116
 
  __pyx_1 = 0;
3117
 
 
3118
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1005 */
3119
 
  __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_object); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1005; goto __pyx_L1;}
3120
 
  __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1005; goto __pyx_L1;}
3121
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3122
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->uninteresting);
3123
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->uninteresting = __pyx_2;
3124
 
  __pyx_2 = 0;
3125
 
 
3126
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1008 */
3127
 
  __pyx_1 = PyList_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1008; goto __pyx_L1;}
3128
 
  Py_INCREF(Py_None);
3129
 
  PyList_SET_ITEM(__pyx_1, 0, Py_None);
3130
 
  Py_INCREF(Py_None);
3131
 
  PyList_SET_ITEM(__pyx_1, 1, Py_None);
3132
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->last_source_parent);
3133
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->last_source_parent = __pyx_1;
3134
 
  __pyx_1 = 0;
3135
 
 
3136
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1009 */
3137
 
  __pyx_2 = PyList_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1009; goto __pyx_L1;}
3138
 
  Py_INCREF(Py_None);
3139
 
  PyList_SET_ITEM(__pyx_2, 0, Py_None);
3140
 
  Py_INCREF(Py_None);
3141
 
  PyList_SET_ITEM(__pyx_2, 1, Py_None);
3142
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->last_target_parent);
3143
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->last_target_parent = __pyx_2;
3144
 
  __pyx_2 = 0;
3145
 
 
3146
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1010 */
3147
 
  Py_INCREF(__pyx_v_include_unchanged);
3148
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->include_unchanged);
3149
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->include_unchanged = __pyx_v_include_unchanged;
3150
 
 
3151
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1011 */
3152
 
  Py_INCREF(__pyx_v_use_filesystem_for_exec);
3153
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->use_filesystem_for_exec);
3154
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->use_filesystem_for_exec = __pyx_v_use_filesystem_for_exec;
3155
 
 
3156
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1012 */
3157
 
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_cache_utf8); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1012; goto __pyx_L1;}
3158
 
  __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n__utf8_decode); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1012; goto __pyx_L1;}
3159
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3160
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->utf8_decode);
3161
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->utf8_decode = __pyx_2;
3162
 
  __pyx_2 = 0;
3163
 
 
3164
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1017 */
3165
 
  __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_set); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1017; goto __pyx_L1;}
3166
 
  __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1017; goto __pyx_L1;}
3167
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3168
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->searched_specific_files);
3169
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->searched_specific_files = __pyx_2;
3170
 
  __pyx_2 = 0;
3171
 
 
3172
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1018 */
3173
 
  Py_INCREF(__pyx_v_search_specific_files);
3174
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->search_specific_files);
3175
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->search_specific_files = __pyx_v_search_specific_files;
3176
 
 
3177
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1019 */
3178
 
  Py_INCREF(__pyx_v_state);
3179
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->state);
3180
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->state = __pyx_v_state;
3181
 
 
3182
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1020 */
3183
 
  Py_INCREF(Py_None);
3184
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->current_root);
3185
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->current_root = Py_None;
3186
 
 
3187
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1021 */
3188
 
  Py_INCREF(Py_None);
3189
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->current_root_unicode);
3190
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->current_root_unicode = Py_None;
3191
 
 
3192
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1022 */
3193
 
  Py_INCREF(Py_None);
3194
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->root_entries);
3195
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->root_entries = Py_None;
3196
 
 
3197
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1023 */
3198
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->root_entries_pos = 0;
3199
 
 
3200
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1024 */
3201
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->root_entries_len = 0;
3202
 
 
3203
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1025 */
3204
 
  Py_INCREF(Py_None);
3205
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->root_abspath);
3206
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->root_abspath = Py_None;
3207
 
 
3208
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1026 */
3209
 
  __pyx_3 = __pyx_v_source_index == Py_None;
3210
 
  if (__pyx_3) {
3211
 
    ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->source_index = (-1);
3212
 
    goto __pyx_L2;
3213
 
  }
3214
 
  /*else*/ {
3215
 
    __pyx_3 = PyInt_AsLong(__pyx_v_source_index); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1029; goto __pyx_L1;}
3216
 
    ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->source_index = __pyx_3;
3217
 
  }
3218
 
  __pyx_L2:;
3219
 
 
3220
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1030 */
3221
 
  __pyx_3 = PyInt_AsLong(__pyx_v_target_index); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1030; goto __pyx_L1;}
3222
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->target_index = __pyx_3;
3223
 
 
3224
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1031 */
3225
 
  __pyx_3 = PyInt_AsLong(__pyx_v_want_unversioned); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; goto __pyx_L1;}
3226
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->want_unversioned = __pyx_3;
3227
 
 
3228
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1032 */
3229
 
  Py_INCREF(__pyx_v_tree);
3230
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->tree);
3231
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->tree = __pyx_v_tree;
3232
 
 
3233
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1033 */
3234
 
  Py_INCREF(Py_None);
3235
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->dir_iterator);
3236
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->dir_iterator = Py_None;
3237
 
 
3238
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1034 */
3239
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->block_index = (-1);
3240
 
 
3241
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1035 */
3242
 
  Py_INCREF(Py_None);
3243
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->current_block);
3244
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->current_block = Py_None;
3245
 
 
3246
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1036 */
3247
 
  Py_INCREF(Py_None);
3248
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->current_block_list);
3249
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->current_block_list = Py_None;
3250
 
 
3251
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1037 */
3252
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->current_block_pos = (-1);
3253
 
 
3254
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1038 */
3255
 
  Py_INCREF(Py_None);
3256
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->current_dir_info);
3257
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->current_dir_info = Py_None;
3258
 
 
3259
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1039 */
3260
 
  Py_INCREF(Py_None);
3261
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->current_dir_list);
3262
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->current_dir_list = Py_None;
3263
 
 
3264
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1040 */
3265
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->path_index = 0;
3266
 
 
3267
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1041 */
3268
 
  Py_INCREF(Py_None);
3269
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->root_dir_info);
3270
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->root_dir_info = Py_None;
3271
 
 
3272
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1042 */
3273
 
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_bisect); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1042; goto __pyx_L1;}
3274
 
  __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_bisect_left); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1042; goto __pyx_L1;}
3275
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3276
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->bisect_left);
3277
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->bisect_left = __pyx_2;
3278
 
  __pyx_2 = 0;
3279
 
 
3280
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1043 */
3281
 
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_osutils); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1043; goto __pyx_L1;}
3282
 
  __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_pathjoin); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1043; goto __pyx_L1;}
3283
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3284
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->pathjoin);
3285
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->pathjoin = __pyx_2;
3286
 
  __pyx_2 = 0;
3287
 
 
3288
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1044 */
3289
 
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1044; goto __pyx_L1;}
3290
 
  __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_fstat); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1044; goto __pyx_L1;}
3291
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3292
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->fstat);
3293
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->fstat = __pyx_2;
3294
 
  __pyx_2 = 0;
3295
 
 
3296
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1045 */
3297
 
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_osutils); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1045; goto __pyx_L1;}
3298
 
  __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_sha_file); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1045; goto __pyx_L1;}
3299
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3300
 
  Py_DECREF(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->sha_file);
3301
 
  ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->sha_file = __pyx_2;
3302
 
  __pyx_2 = 0;
3303
 
 
3304
 
  __pyx_r = 0;
3305
 
  goto __pyx_L0;
3306
 
  __pyx_L1:;
3307
 
  Py_XDECREF(__pyx_1);
3308
 
  Py_XDECREF(__pyx_2);
3309
 
  __Pyx_AddTraceback("_dirstate_helpers_c.ProcessEntryC.__init__");
3310
 
  __pyx_r = -1;
3311
 
  __pyx_L0:;
3312
 
  Py_DECREF(__pyx_v_self);
3313
 
  Py_DECREF(__pyx_v_include_unchanged);
3314
 
  Py_DECREF(__pyx_v_use_filesystem_for_exec);
3315
 
  Py_DECREF(__pyx_v_search_specific_files);
3316
 
  Py_DECREF(__pyx_v_state);
3317
 
  Py_DECREF(__pyx_v_source_index);
3318
 
  Py_DECREF(__pyx_v_target_index);
3319
 
  Py_DECREF(__pyx_v_want_unversioned);
3320
 
  Py_DECREF(__pyx_v_tree);
3321
 
  return __pyx_r;
3322
 
}
3323
 
 
3324
 
static PyObject *__pyx_n_NULL_PARENT_DETAILS;
3325
 
static PyObject *__pyx_n_is_inside_any;
3326
 
static PyObject *__pyx_n_add;
3327
 
static PyObject *__pyx_n_path;
3328
 
static PyObject *__pyx_n_split;
3329
 
static PyObject *__pyx_n__get_entry;
3330
 
static PyObject *__pyx_n_path_utf8;
3331
 
static PyObject *__pyx_n_CorruptDirstate;
3332
 
static PyObject *__pyx_n__filename;
3333
 
static PyObject *__pyx_n__sha1_provider;
3334
 
static PyObject *__pyx_n_stat_and_sha1;
3335
 
static PyObject *__pyx_n__observed_sha1;
3336
 
static PyObject *__pyx_n_bool;
3337
 
static PyObject *__pyx_n_Exception;
3338
 
static PyObject *__pyx_n_True;
3339
 
 
3340
 
static PyObject *__pyx_k59p;
3341
 
static PyObject *__pyx_k61p;
3342
 
static PyObject *__pyx_k65p;
3343
 
static PyObject *__pyx_k66p;
3344
 
static PyObject *__pyx_k69p;
3345
 
static PyObject *__pyx_k71p;
3346
 
static PyObject *__pyx_k73p;
3347
 
 
3348
 
static char __pyx_k59[] = "Unsupported target index %d";
3349
 
static char __pyx_k61[] = "entry '%s/%s' is considered renamed from %r but source does not exist\nentry: %s";
3350
 
static char __pyx_k65[] = "tree-reference";
3351
 
static char __pyx_k66[] = "unknown kind %s";
3352
 
static char __pyx_k69[] = "Could not find target parent in wt: %s\nparent of: %s";
3353
 
static char __pyx_k71[] = "We could not find the parent entry in index %d for the entry: %s";
3354
 
static char __pyx_k73[] = "don't know how to compare source_minikind=%r, target_minikind=%r";
3355
 
 
3356
 
static PyObject *__pyx_f_19_dirstate_helpers_c_13ProcessEntryC__process_entry(struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *__pyx_v_self,PyObject *__pyx_v_entry,PyObject *__pyx_v_path_info) {
3357
 
  char __pyx_v_target_minikind;
3358
 
  char __pyx_v_source_minikind;
3359
 
  PyObject *__pyx_v_file_id;
3360
 
  int __pyx_v_content_change;
3361
 
  PyObject *__pyx_v_details_list;
3362
 
  PyObject *__pyx_v_source_details;
3363
 
  PyObject *__pyx_v_target_details;
3364
 
  PyObject *__pyx_v_link_or_sha1;
3365
 
  PyObject *__pyx_v_old_dirname;
3366
 
  PyObject *__pyx_v_old_basename;
3367
 
  PyObject *__pyx_v_old_path;
3368
 
  PyObject *__pyx_v_path;
3369
 
  PyObject *__pyx_v_old_entry;
3370
 
  PyObject *__pyx_v_target_kind;
3371
 
  PyObject *__pyx_v_target_exec;
3372
 
  PyObject *__pyx_v_statvalue;
3373
 
  PyObject *__pyx_v_source_parent_id;
3374
 
  PyObject *__pyx_v_source_parent_entry;
3375
 
  PyObject *__pyx_v_new_dirname;
3376
 
  PyObject *__pyx_v_target_parent_id;
3377
 
  PyObject *__pyx_v_target_parent_entry;
3378
 
  PyObject *__pyx_v_source_exec;
3379
 
  PyObject *__pyx_v_old_path_u;
3380
 
  PyObject *__pyx_v_path_u;
3381
 
  PyObject *__pyx_v_source_kind;
3382
 
  PyObject *__pyx_v_parent_entry;
3383
 
  PyObject *__pyx_v_parent_id;
3384
 
  PyObject *__pyx_r;
3385
 
  PyObject *__pyx_1 = 0;
3386
 
  PyObject *__pyx_2 = 0;
3387
 
  int __pyx_3;
3388
 
  PyObject *__pyx_4 = 0;
3389
 
  int __pyx_5;
3390
 
  PyObject *__pyx_6 = 0;
3391
 
  PyObject *__pyx_7 = 0;
3392
 
  PyObject *__pyx_8 = 0;
3393
 
  PyObject *__pyx_9 = 0;
3394
 
  PyObject *__pyx_10 = 0;
3395
 
  PyObject *__pyx_11 = 0;
3396
 
  Py_INCREF(__pyx_v_self);
3397
 
  Py_INCREF(__pyx_v_entry);
3398
 
  Py_INCREF(__pyx_v_path_info);
3399
 
  __pyx_v_file_id = Py_None; Py_INCREF(Py_None);
3400
 
  __pyx_v_details_list = Py_None; Py_INCREF(Py_None);
3401
 
  __pyx_v_source_details = Py_None; Py_INCREF(Py_None);
3402
 
  __pyx_v_target_details = Py_None; Py_INCREF(Py_None);
3403
 
  __pyx_v_link_or_sha1 = Py_None; Py_INCREF(Py_None);
3404
 
  __pyx_v_old_dirname = Py_None; Py_INCREF(Py_None);
3405
 
  __pyx_v_old_basename = Py_None; Py_INCREF(Py_None);
3406
 
  __pyx_v_old_path = Py_None; Py_INCREF(Py_None);
3407
 
  __pyx_v_path = Py_None; Py_INCREF(Py_None);
3408
 
  __pyx_v_old_entry = Py_None; Py_INCREF(Py_None);
3409
 
  __pyx_v_target_kind = Py_None; Py_INCREF(Py_None);
3410
 
  __pyx_v_target_exec = Py_None; Py_INCREF(Py_None);
3411
 
  __pyx_v_statvalue = Py_None; Py_INCREF(Py_None);
3412
 
  __pyx_v_source_parent_id = Py_None; Py_INCREF(Py_None);
3413
 
  __pyx_v_source_parent_entry = Py_None; Py_INCREF(Py_None);
3414
 
  __pyx_v_new_dirname = Py_None; Py_INCREF(Py_None);
3415
 
  __pyx_v_target_parent_id = Py_None; Py_INCREF(Py_None);
3416
 
  __pyx_v_target_parent_entry = Py_None; Py_INCREF(Py_None);
3417
 
  __pyx_v_source_exec = Py_None; Py_INCREF(Py_None);
3418
 
  __pyx_v_old_path_u = Py_None; Py_INCREF(Py_None);
3419
 
  __pyx_v_path_u = Py_None; Py_INCREF(Py_None);
3420
 
  __pyx_v_source_kind = Py_None; Py_INCREF(Py_None);
3421
 
  __pyx_v_parent_entry = Py_None; Py_INCREF(Py_None);
3422
 
  __pyx_v_parent_id = Py_None; Py_INCREF(Py_None);
3423
 
 
3424
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1066 */
3425
 
  Py_INCREF(Py_None);
3426
 
  Py_DECREF(__pyx_v_file_id);
3427
 
  __pyx_v_file_id = Py_None;
3428
 
 
3429
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1067 */
3430
 
  __pyx_1 = PyInt_FromLong(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1067; goto __pyx_L1;}
3431
 
  __pyx_2 = PyObject_GetItem(__pyx_v_entry, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1067; goto __pyx_L1;}
3432
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3433
 
  Py_DECREF(__pyx_v_details_list);
3434
 
  __pyx_v_details_list = __pyx_2;
3435
 
  __pyx_2 = 0;
3436
 
 
3437
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1068 */
3438
 
  __pyx_3 = ((-1) == __pyx_v_self->source_index);
3439
 
  if (__pyx_3) {
3440
 
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_DirState); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1069; goto __pyx_L1;}
3441
 
    __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_NULL_PARENT_DETAILS); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1069; goto __pyx_L1;}
3442
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
3443
 
    Py_DECREF(__pyx_v_source_details);
3444
 
    __pyx_v_source_details = __pyx_2;
3445
 
    __pyx_2 = 0;
3446
 
    goto __pyx_L2;
3447
 
  }
3448
 
  /*else*/ {
3449
 
    __pyx_1 = PyInt_FromLong(__pyx_v_self->source_index); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; goto __pyx_L1;}
3450
 
    __pyx_2 = PyObject_GetItem(__pyx_v_details_list, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; goto __pyx_L1;}
3451
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
3452
 
    Py_DECREF(__pyx_v_source_details);
3453
 
    __pyx_v_source_details = __pyx_2;
3454
 
    __pyx_2 = 0;
3455
 
  }
3456
 
  __pyx_L2:;
3457
 
 
3458
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1072 */
3459
 
  __pyx_1 = PyInt_FromLong(__pyx_v_self->target_index); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1072; goto __pyx_L1;}
3460
 
  __pyx_2 = PyObject_GetItem(__pyx_v_details_list, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1072; goto __pyx_L1;}
3461
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3462
 
  Py_DECREF(__pyx_v_target_details);
3463
 
  __pyx_v_target_details = __pyx_2;
3464
 
  __pyx_2 = 0;
3465
 
 
3466
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1073 */
3467
 
  __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1073; goto __pyx_L1;}
3468
 
  __pyx_2 = PyObject_GetItem(__pyx_v_target_details, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1073; goto __pyx_L1;}
3469
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3470
 
  __pyx_v_target_minikind = __pyx_f_19_dirstate_helpers_c__minikind_from_string(__pyx_2);
3471
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
3472
 
 
3473
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1074 */
3474
 
  __pyx_3 = __pyx_v_path_info != Py_None;
3475
 
  if (__pyx_3) {
3476
 
    __pyx_3 = __pyx_f_19_dirstate_helpers_c__versioned_minikind(__pyx_v_target_minikind);
3477
 
  }
3478
 
  if (__pyx_3) {
3479
 
 
3480
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1075 */
3481
 
    __pyx_3 = (__pyx_v_self->target_index != 0);
3482
 
    if (__pyx_3) {
3483
 
      __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_AssertionError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; goto __pyx_L1;}
3484
 
      __pyx_2 = PyInt_FromLong(__pyx_v_self->target_index); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1077; goto __pyx_L1;}
3485
 
      __pyx_4 = PyNumber_Remainder(__pyx_k59p, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; goto __pyx_L1;}
3486
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
3487
 
      __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; goto __pyx_L1;}
3488
 
      PyTuple_SET_ITEM(__pyx_2, 0, __pyx_4);
3489
 
      __pyx_4 = 0;
3490
 
      __pyx_4 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; goto __pyx_L1;}
3491
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
3492
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
3493
 
      __Pyx_Raise(__pyx_4, 0, 0);
3494
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
3495
 
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; goto __pyx_L1;}
3496
 
      goto __pyx_L4;
3497
 
    }
3498
 
    __pyx_L4:;
3499
 
 
3500
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1078 */
3501
 
    __pyx_1 = PyInt_FromLong(4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1078; goto __pyx_L1;}
3502
 
    __pyx_2 = PyObject_GetItem(__pyx_v_path_info, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1078; goto __pyx_L1;}
3503
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
3504
 
    __pyx_4 = PyInt_FromLong(3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1078; goto __pyx_L1;}
3505
 
    __pyx_1 = PyObject_GetItem(__pyx_v_path_info, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1078; goto __pyx_L1;}
3506
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
3507
 
    __pyx_4 = __pyx_f_19_dirstate_helpers_c__update_entry(__pyx_v_self->state,__pyx_v_entry,__pyx_2,__pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1078; goto __pyx_L1;}
3508
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
3509
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
3510
 
    Py_DECREF(__pyx_v_link_or_sha1);
3511
 
    __pyx_v_link_or_sha1 = __pyx_4;
3512
 
    __pyx_4 = 0;
3513
 
 
3514
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1080 */
3515
 
    __pyx_2 = PyInt_FromLong(__pyx_v_self->target_index); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1080; goto __pyx_L1;}
3516
 
    __pyx_1 = PyObject_GetItem(__pyx_v_details_list, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1080; goto __pyx_L1;}
3517
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
3518
 
    Py_DECREF(__pyx_v_target_details);
3519
 
    __pyx_v_target_details = __pyx_1;
3520
 
    __pyx_1 = 0;
3521
 
 
3522
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1081 */
3523
 
    __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1081; goto __pyx_L1;}
3524
 
    __pyx_2 = PyObject_GetItem(__pyx_v_target_details, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1081; goto __pyx_L1;}
3525
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
3526
 
    __pyx_v_target_minikind = __pyx_f_19_dirstate_helpers_c__minikind_from_string(__pyx_2);
3527
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
3528
 
    goto __pyx_L3;
3529
 
  }
3530
 
  /*else*/ {
3531
 
    Py_INCREF(Py_None);
3532
 
    Py_DECREF(__pyx_v_link_or_sha1);
3533
 
    __pyx_v_link_or_sha1 = Py_None;
3534
 
  }
3535
 
  __pyx_L3:;
3536
 
 
3537
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1086 */
3538
 
  __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1086; goto __pyx_L1;}
3539
 
  __pyx_4 = PyObject_GetItem(__pyx_v_source_details, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1086; goto __pyx_L1;}
3540
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3541
 
  __pyx_v_source_minikind = __pyx_f_19_dirstate_helpers_c__minikind_from_string(__pyx_4);
3542
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
3543
 
 
3544
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1087 */
3545
 
  __pyx_3 = __pyx_f_19_dirstate_helpers_c__versioned_minikind(__pyx_v_source_minikind);
3546
 
  if (!__pyx_3) {
3547
 
    __pyx_3 = (__pyx_v_source_minikind == 'r');
3548
 
  }
3549
 
  if (__pyx_3) {
3550
 
    __pyx_3 = __pyx_f_19_dirstate_helpers_c__versioned_minikind(__pyx_v_target_minikind);
3551
 
  }
3552
 
  if (__pyx_3) {
3553
 
 
3554
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1094 */
3555
 
    __pyx_3 = (__pyx_v_source_minikind != 'r');
3556
 
    if (__pyx_3) {
3557
 
 
3558
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1095 */
3559
 
      __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1095; goto __pyx_L1;}
3560
 
      __pyx_1 = PyObject_GetItem(__pyx_v_entry, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1095; goto __pyx_L1;}
3561
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
3562
 
      __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1095; goto __pyx_L1;}
3563
 
      __pyx_2 = PyObject_GetItem(__pyx_1, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1095; goto __pyx_L1;}
3564
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
3565
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
3566
 
      Py_DECREF(__pyx_v_old_dirname);
3567
 
      __pyx_v_old_dirname = __pyx_2;
3568
 
      __pyx_2 = 0;
3569
 
 
3570
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1096 */
3571
 
      __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1096; goto __pyx_L1;}
3572
 
      __pyx_4 = PyObject_GetItem(__pyx_v_entry, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1096; goto __pyx_L1;}
3573
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
3574
 
      __pyx_2 = PyInt_FromLong(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1096; goto __pyx_L1;}
3575
 
      __pyx_1 = PyObject_GetItem(__pyx_4, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1096; goto __pyx_L1;}
3576
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
3577
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
3578
 
      Py_DECREF(__pyx_v_old_basename);
3579
 
      __pyx_v_old_basename = __pyx_1;
3580
 
      __pyx_1 = 0;
3581
 
 
3582
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1097 */
3583
 
      Py_INCREF(Py_None);
3584
 
      Py_DECREF(__pyx_v_old_path);
3585
 
      __pyx_v_old_path = Py_None;
3586
 
      Py_INCREF(Py_None);
3587
 
      Py_DECREF(__pyx_v_path);
3588
 
      __pyx_v_path = Py_None;
3589
 
      goto __pyx_L6;
3590
 
    }
3591
 
    /*else*/ {
3592
 
 
3593
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1101 */
3594
 
      __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_osutils); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1101; goto __pyx_L1;}
3595
 
      __pyx_2 = PyObject_GetAttr(__pyx_4, __pyx_n_is_inside_any); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1101; goto __pyx_L1;}
3596
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
3597
 
      __pyx_1 = PyInt_FromLong(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1102; goto __pyx_L1;}
3598
 
      __pyx_4 = PyObject_GetItem(__pyx_v_source_details, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1102; goto __pyx_L1;}
3599
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
3600
 
      __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1101; goto __pyx_L1;}
3601
 
      Py_INCREF(__pyx_v_self->searched_specific_files);
3602
 
      PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self->searched_specific_files);
3603
 
      PyTuple_SET_ITEM(__pyx_1, 1, __pyx_4);
3604
 
      __pyx_4 = 0;
3605
 
      __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1101; goto __pyx_L1;}
3606
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
3607
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
3608
 
      __pyx_3 = PyObject_IsTrue(__pyx_4); if (__pyx_3 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1101; goto __pyx_L1;}
3609
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
3610
 
      __pyx_5 = (!__pyx_3);
3611
 
      if (__pyx_5) {
3612
 
        __pyx_2 = PyObject_GetAttr(__pyx_v_self->search_specific_files, __pyx_n_add); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1103; goto __pyx_L1;}
3613
 
        __pyx_1 = PyInt_FromLong(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1103; goto __pyx_L1;}
3614
 
        __pyx_4 = PyObject_GetItem(__pyx_v_source_details, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1103; goto __pyx_L1;}
3615
 
        Py_DECREF(__pyx_1); __pyx_1 = 0;
3616
 
        __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1103; goto __pyx_L1;}
3617
 
        PyTuple_SET_ITEM(__pyx_1, 0, __pyx_4);
3618
 
        __pyx_4 = 0;
3619
 
        __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1103; goto __pyx_L1;}
3620
 
        Py_DECREF(__pyx_2); __pyx_2 = 0;
3621
 
        Py_DECREF(__pyx_1); __pyx_1 = 0;
3622
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
3623
 
        goto __pyx_L7;
3624
 
      }
3625
 
      __pyx_L7:;
3626
 
 
3627
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1106 */
3628
 
      __pyx_2 = PyInt_FromLong(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1106; goto __pyx_L1;}
3629
 
      __pyx_1 = PyObject_GetItem(__pyx_v_source_details, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1106; goto __pyx_L1;}
3630
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
3631
 
      Py_DECREF(__pyx_v_old_path);
3632
 
      __pyx_v_old_path = __pyx_1;
3633
 
      __pyx_1 = 0;
3634
 
 
3635
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1107 */
3636
 
      __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1107; goto __pyx_L1;}
3637
 
      __pyx_2 = PyObject_GetAttr(__pyx_4, __pyx_n_path); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1107; goto __pyx_L1;}
3638
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
3639
 
      __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_split); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1107; goto __pyx_L1;}
3640
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
3641
 
      __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1107; goto __pyx_L1;}
3642
 
      Py_INCREF(__pyx_v_old_path);
3643
 
      PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_old_path);
3644
 
      __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1107; goto __pyx_L1;}
3645
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
3646
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
3647
 
      __pyx_1 = PyObject_GetIter(__pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1107; goto __pyx_L1;}
3648
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
3649
 
      __pyx_4 = __Pyx_UnpackItem(__pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1107; goto __pyx_L1;}
3650
 
      Py_DECREF(__pyx_v_old_dirname);
3651
 
      __pyx_v_old_dirname = __pyx_4;
3652
 
      __pyx_4 = 0;
3653
 
      __pyx_2 = __Pyx_UnpackItem(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1107; goto __pyx_L1;}
3654
 
      Py_DECREF(__pyx_v_old_basename);
3655
 
      __pyx_v_old_basename = __pyx_2;
3656
 
      __pyx_2 = 0;
3657
 
      if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1107; goto __pyx_L1;}
3658
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
3659
 
 
3660
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1108 */
3661
 
      __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1108; goto __pyx_L1;}
3662
 
      __pyx_2 = PyObject_GetItem(__pyx_v_entry, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1108; goto __pyx_L1;}
3663
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
3664
 
      __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1108; goto __pyx_L1;}
3665
 
      __pyx_4 = PyObject_GetItem(__pyx_2, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1108; goto __pyx_L1;}
3666
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
3667
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
3668
 
      __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1108; goto __pyx_L1;}
3669
 
      __pyx_1 = PyObject_GetItem(__pyx_v_entry, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1108; goto __pyx_L1;}
3670
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
3671
 
      __pyx_2 = PyInt_FromLong(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1108; goto __pyx_L1;}
3672
 
      __pyx_6 = PyObject_GetItem(__pyx_1, __pyx_2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1108; goto __pyx_L1;}
3673
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
3674
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
3675
 
      __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1108; goto __pyx_L1;}
3676
 
      PyTuple_SET_ITEM(__pyx_1, 0, __pyx_4);
3677
 
      PyTuple_SET_ITEM(__pyx_1, 1, __pyx_6);
3678
 
      __pyx_4 = 0;
3679
 
      __pyx_6 = 0;
3680
 
      __pyx_2 = PyObject_CallObject(__pyx_v_self->pathjoin, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1108; goto __pyx_L1;}
3681
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
3682
 
      Py_DECREF(__pyx_v_path);
3683
 
      __pyx_v_path = __pyx_2;
3684
 
      __pyx_2 = 0;
3685
 
 
3686
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1109 */
3687
 
      __pyx_4 = PyObject_GetAttr(__pyx_v_self->state, __pyx_n__get_entry); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1109; goto __pyx_L1;}
3688
 
      __pyx_6 = PyInt_FromLong(__pyx_v_self->source_index); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1109; goto __pyx_L1;}
3689
 
      __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1109; goto __pyx_L1;}
3690
 
      PyTuple_SET_ITEM(__pyx_1, 0, __pyx_6);
3691
 
      __pyx_6 = 0;
3692
 
      __pyx_2 = PyDict_New(); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1109; goto __pyx_L1;}
3693
 
      if (PyDict_SetItem(__pyx_2, __pyx_n_path_utf8, __pyx_v_old_path) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1109; goto __pyx_L1;}
3694
 
      __pyx_6 = PyEval_CallObjectWithKeywords(__pyx_4, __pyx_1, __pyx_2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1109; goto __pyx_L1;}
3695
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
3696
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
3697
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
3698
 
      Py_DECREF(__pyx_v_old_entry);
3699
 
      __pyx_v_old_entry = __pyx_6;
3700
 
      __pyx_6 = 0;
3701
 
 
3702
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1113 */
3703
 
      __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1113; goto __pyx_L1;}
3704
 
      Py_INCREF(Py_None);
3705
 
      PyTuple_SET_ITEM(__pyx_4, 0, Py_None);
3706
 
      Py_INCREF(Py_None);
3707
 
      PyTuple_SET_ITEM(__pyx_4, 1, Py_None);
3708
 
      if (PyObject_Cmp(__pyx_v_old_entry, __pyx_4, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1113; goto __pyx_L1;}
3709
 
      __pyx_3 = __pyx_3 == 0;
3710
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
3711
 
      if (__pyx_3) {
3712
 
        __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_errors); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1114; goto __pyx_L1;}
3713
 
        __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_CorruptDirstate); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1114; goto __pyx_L1;}
3714
 
        Py_DECREF(__pyx_1); __pyx_1 = 0;
3715
 
        __pyx_6 = PyObject_GetAttr(__pyx_v_self->state, __pyx_n__filename); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1114; goto __pyx_L1;}
3716
 
        __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1117; goto __pyx_L1;}
3717
 
        __pyx_1 = PyObject_GetItem(__pyx_v_entry, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1117; goto __pyx_L1;}
3718
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
3719
 
        __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1117; goto __pyx_L1;}
3720
 
        __pyx_7 = PyObject_GetItem(__pyx_1, __pyx_4); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1117; goto __pyx_L1;}
3721
 
        Py_DECREF(__pyx_1); __pyx_1 = 0;
3722
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
3723
 
        __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1117; goto __pyx_L1;}
3724
 
        __pyx_4 = PyObject_GetItem(__pyx_v_entry, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1117; goto __pyx_L1;}
3725
 
        Py_DECREF(__pyx_1); __pyx_1 = 0;
3726
 
        __pyx_1 = PyInt_FromLong(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1117; goto __pyx_L1;}
3727
 
        __pyx_8 = PyObject_GetItem(__pyx_4, __pyx_1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1117; goto __pyx_L1;}
3728
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
3729
 
        Py_DECREF(__pyx_1); __pyx_1 = 0;
3730
 
        __pyx_4 = PyTuple_New(4); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1117; goto __pyx_L1;}
3731
 
        PyTuple_SET_ITEM(__pyx_4, 0, __pyx_7);
3732
 
        PyTuple_SET_ITEM(__pyx_4, 1, __pyx_8);
3733
 
        Py_INCREF(__pyx_v_old_path);
3734
 
        PyTuple_SET_ITEM(__pyx_4, 2, __pyx_v_old_path);
3735
 
        Py_INCREF(__pyx_v_entry);
3736
 
        PyTuple_SET_ITEM(__pyx_4, 3, __pyx_v_entry);
3737
 
        __pyx_7 = 0;
3738
 
        __pyx_8 = 0;
3739
 
        __pyx_1 = PyNumber_Remainder(__pyx_k61p, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1117; goto __pyx_L1;}
3740
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
3741
 
        __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1114; goto __pyx_L1;}
3742
 
        PyTuple_SET_ITEM(__pyx_7, 0, __pyx_6);
3743
 
        PyTuple_SET_ITEM(__pyx_7, 1, __pyx_1);
3744
 
        __pyx_6 = 0;
3745
 
        __pyx_1 = 0;
3746
 
        __pyx_8 = PyObject_CallObject(__pyx_2, __pyx_7); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1114; goto __pyx_L1;}
3747
 
        Py_DECREF(__pyx_2); __pyx_2 = 0;
3748
 
        Py_DECREF(__pyx_7); __pyx_7 = 0;
3749
 
        __Pyx_Raise(__pyx_8, 0, 0);
3750
 
        Py_DECREF(__pyx_8); __pyx_8 = 0;
3751
 
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1114; goto __pyx_L1;}
3752
 
        goto __pyx_L8;
3753
 
      }
3754
 
      __pyx_L8:;
3755
 
 
3756
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1118 */
3757
 
      __pyx_4 = PyInt_FromLong(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1118; goto __pyx_L1;}
3758
 
      __pyx_6 = PyObject_GetItem(__pyx_v_old_entry, __pyx_4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1118; goto __pyx_L1;}
3759
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
3760
 
      __pyx_1 = PyInt_FromLong(__pyx_v_self->source_index); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1118; goto __pyx_L1;}
3761
 
      __pyx_2 = PyObject_GetItem(__pyx_6, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1118; goto __pyx_L1;}
3762
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
3763
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
3764
 
      Py_DECREF(__pyx_v_source_details);
3765
 
      __pyx_v_source_details = __pyx_2;
3766
 
      __pyx_2 = 0;
3767
 
 
3768
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1119 */
3769
 
      __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1119; goto __pyx_L1;}
3770
 
      __pyx_8 = PyObject_GetItem(__pyx_v_source_details, __pyx_7); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1119; goto __pyx_L1;}
3771
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
3772
 
      __pyx_v_source_minikind = __pyx_f_19_dirstate_helpers_c__minikind_from_string(__pyx_8);
3773
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
3774
 
    }
3775
 
    __pyx_L6:;
3776
 
 
3777
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1120 */
3778
 
    __pyx_5 = __pyx_v_path_info == Py_None;
3779
 
    if (__pyx_5) {
3780
 
 
3781
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1122 */
3782
 
      __pyx_v_content_change = 1;
3783
 
 
3784
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1123 */
3785
 
      Py_INCREF(Py_None);
3786
 
      Py_DECREF(__pyx_v_target_kind);
3787
 
      __pyx_v_target_kind = Py_None;
3788
 
 
3789
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1124 */
3790
 
      __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1124; goto __pyx_L1;}
3791
 
      Py_DECREF(__pyx_v_target_exec);
3792
 
      __pyx_v_target_exec = __pyx_4;
3793
 
      __pyx_4 = 0;
3794
 
      goto __pyx_L9;
3795
 
    }
3796
 
    /*else*/ {
3797
 
 
3798
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1127 */
3799
 
      __pyx_6 = PyInt_FromLong(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1127; goto __pyx_L1;}
3800
 
      __pyx_1 = PyObject_GetItem(__pyx_v_path_info, __pyx_6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1127; goto __pyx_L1;}
3801
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
3802
 
      Py_DECREF(__pyx_v_target_kind);
3803
 
      __pyx_v_target_kind = __pyx_1;
3804
 
      __pyx_1 = 0;
3805
 
 
3806
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1128 */
3807
 
      if (PyObject_Cmp(__pyx_v_target_kind, __pyx_n_directory, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1128; goto __pyx_L1;}
3808
 
      __pyx_3 = __pyx_3 == 0;
3809
 
      if (__pyx_3) {
3810
 
 
3811
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1129 */
3812
 
        __pyx_5 = __pyx_v_path == Py_None;
3813
 
        if (__pyx_5) {
3814
 
          __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1130; goto __pyx_L1;}
3815
 
          Py_INCREF(__pyx_v_old_dirname);
3816
 
          PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_old_dirname);
3817
 
          Py_INCREF(__pyx_v_old_basename);
3818
 
          PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_old_basename);
3819
 
          __pyx_7 = PyObject_CallObject(__pyx_v_self->pathjoin, __pyx_2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1130; goto __pyx_L1;}
3820
 
          Py_DECREF(__pyx_2); __pyx_2 = 0;
3821
 
          Py_INCREF(__pyx_7);
3822
 
          Py_DECREF(__pyx_v_old_path);
3823
 
          __pyx_v_old_path = __pyx_7;
3824
 
          Py_INCREF(__pyx_7);
3825
 
          Py_DECREF(__pyx_v_path);
3826
 
          __pyx_v_path = __pyx_7;
3827
 
          Py_DECREF(__pyx_7); __pyx_7 = 0;
3828
 
          goto __pyx_L11;
3829
 
        }
3830
 
        __pyx_L11:;
3831
 
 
3832
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1131 */
3833
 
        __pyx_8 = PyInt_FromLong(0); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1131; goto __pyx_L1;}
3834
 
        __pyx_4 = PyObject_GetItem(__pyx_v_entry, __pyx_8); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1131; goto __pyx_L1;}
3835
 
        Py_DECREF(__pyx_8); __pyx_8 = 0;
3836
 
        __pyx_6 = PyInt_FromLong(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1131; goto __pyx_L1;}
3837
 
        __pyx_1 = PyObject_GetItem(__pyx_4, __pyx_6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1131; goto __pyx_L1;}
3838
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
3839
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
3840
 
        Py_DECREF(__pyx_v_file_id);
3841
 
        __pyx_v_file_id = __pyx_1;
3842
 
        __pyx_1 = 0;
3843
 
 
3844
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1132 */
3845
 
        if (PyObject_SetItem(__pyx_v_self->new_dirname_to_file_id, __pyx_v_path, __pyx_v_file_id) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1132; goto __pyx_L1;}
3846
 
 
3847
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1133 */
3848
 
        __pyx_3 = (__pyx_v_source_minikind != 'd');
3849
 
        if (__pyx_3) {
3850
 
          __pyx_v_content_change = 1;
3851
 
          goto __pyx_L12;
3852
 
        }
3853
 
        /*else*/ {
3854
 
          __pyx_v_content_change = 0;
3855
 
        }
3856
 
        __pyx_L12:;
3857
 
 
3858
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1138 */
3859
 
        __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1138; goto __pyx_L1;}
3860
 
        Py_DECREF(__pyx_v_target_exec);
3861
 
        __pyx_v_target_exec = __pyx_2;
3862
 
        __pyx_2 = 0;
3863
 
        goto __pyx_L10;
3864
 
      }
3865
 
      if (PyObject_Cmp(__pyx_v_target_kind, __pyx_n_file, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1139; goto __pyx_L1;}
3866
 
      __pyx_5 = __pyx_5 == 0;
3867
 
      if (__pyx_5) {
3868
 
 
3869
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1140 */
3870
 
        __pyx_3 = (__pyx_v_source_minikind != 'f');
3871
 
        if (__pyx_3) {
3872
 
          __pyx_v_content_change = 1;
3873
 
          goto __pyx_L13;
3874
 
        }
3875
 
        /*else*/ {
3876
 
          __pyx_7 = PyInt_FromLong(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1144; goto __pyx_L1;}
3877
 
          __pyx_8 = PyObject_GetItem(__pyx_v_target_details, __pyx_7); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1144; goto __pyx_L1;}
3878
 
          Py_DECREF(__pyx_7); __pyx_7 = 0;
3879
 
          __pyx_4 = PyInt_FromLong(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1144; goto __pyx_L1;}
3880
 
          __pyx_6 = PyObject_GetItem(__pyx_v_source_details, __pyx_4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1144; goto __pyx_L1;}
3881
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
3882
 
          if (PyObject_Cmp(__pyx_8, __pyx_6, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1144; goto __pyx_L1;}
3883
 
          __pyx_5 = __pyx_5 == 0;
3884
 
          Py_DECREF(__pyx_8); __pyx_8 = 0;
3885
 
          Py_DECREF(__pyx_6); __pyx_6 = 0;
3886
 
          if (__pyx_5) {
3887
 
 
3888
 
            /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1145 */
3889
 
            __pyx_3 = __pyx_v_link_or_sha1 == Py_None;
3890
 
            if (__pyx_3) {
3891
 
 
3892
 
              /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1148 */
3893
 
              __pyx_1 = PyObject_GetAttr(__pyx_v_self->state, __pyx_n__sha1_provider); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1148; goto __pyx_L1;}
3894
 
              __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_stat_and_sha1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1148; goto __pyx_L1;}
3895
 
              Py_DECREF(__pyx_1); __pyx_1 = 0;
3896
 
              __pyx_7 = PyInt_FromLong(4); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; goto __pyx_L1;}
3897
 
              __pyx_4 = PyObject_GetItem(__pyx_v_path_info, __pyx_7); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; goto __pyx_L1;}
3898
 
              Py_DECREF(__pyx_7); __pyx_7 = 0;
3899
 
              __pyx_8 = PyTuple_New(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1148; goto __pyx_L1;}
3900
 
              PyTuple_SET_ITEM(__pyx_8, 0, __pyx_4);
3901
 
              __pyx_4 = 0;
3902
 
              __pyx_6 = PyObject_CallObject(__pyx_2, __pyx_8); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1148; goto __pyx_L1;}
3903
 
              Py_DECREF(__pyx_2); __pyx_2 = 0;
3904
 
              Py_DECREF(__pyx_8); __pyx_8 = 0;
3905
 
              __pyx_1 = PyObject_GetIter(__pyx_6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; goto __pyx_L1;}
3906
 
              Py_DECREF(__pyx_6); __pyx_6 = 0;
3907
 
              __pyx_7 = __Pyx_UnpackItem(__pyx_1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; goto __pyx_L1;}
3908
 
              Py_DECREF(__pyx_v_statvalue);
3909
 
              __pyx_v_statvalue = __pyx_7;
3910
 
              __pyx_7 = 0;
3911
 
              __pyx_4 = __Pyx_UnpackItem(__pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; goto __pyx_L1;}
3912
 
              Py_DECREF(__pyx_v_link_or_sha1);
3913
 
              __pyx_v_link_or_sha1 = __pyx_4;
3914
 
              __pyx_4 = 0;
3915
 
              if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; goto __pyx_L1;}
3916
 
              Py_DECREF(__pyx_1); __pyx_1 = 0;
3917
 
 
3918
 
              /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1150 */
3919
 
              __pyx_2 = PyObject_GetAttr(__pyx_v_self->state, __pyx_n__observed_sha1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1150; goto __pyx_L1;}
3920
 
              __pyx_8 = PyTuple_New(3); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1150; goto __pyx_L1;}
3921
 
              Py_INCREF(__pyx_v_entry);
3922
 
              PyTuple_SET_ITEM(__pyx_8, 0, __pyx_v_entry);
3923
 
              Py_INCREF(__pyx_v_link_or_sha1);
3924
 
              PyTuple_SET_ITEM(__pyx_8, 1, __pyx_v_link_or_sha1);
3925
 
              Py_INCREF(__pyx_v_statvalue);
3926
 
              PyTuple_SET_ITEM(__pyx_8, 2, __pyx_v_statvalue);
3927
 
              __pyx_6 = PyObject_CallObject(__pyx_2, __pyx_8); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1150; goto __pyx_L1;}
3928
 
              Py_DECREF(__pyx_2); __pyx_2 = 0;
3929
 
              Py_DECREF(__pyx_8); __pyx_8 = 0;
3930
 
              Py_DECREF(__pyx_6); __pyx_6 = 0;
3931
 
              goto __pyx_L15;
3932
 
            }
3933
 
            __pyx_L15:;
3934
 
 
3935
 
            /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1152 */
3936
 
            __pyx_7 = PyInt_FromLong(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1152; goto __pyx_L1;}
3937
 
            __pyx_4 = PyObject_GetItem(__pyx_v_source_details, __pyx_7); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1152; goto __pyx_L1;}
3938
 
            Py_DECREF(__pyx_7); __pyx_7 = 0;
3939
 
            if (PyObject_Cmp(__pyx_v_link_or_sha1, __pyx_4, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1152; goto __pyx_L1;}
3940
 
            __pyx_5 = __pyx_5 != 0;
3941
 
            Py_DECREF(__pyx_4); __pyx_4 = 0;
3942
 
            __pyx_v_content_change = __pyx_5;
3943
 
            goto __pyx_L14;
3944
 
          }
3945
 
          /*else*/ {
3946
 
            __pyx_v_content_change = 1;
3947
 
          }
3948
 
          __pyx_L14:;
3949
 
        }
3950
 
        __pyx_L13:;
3951
 
 
3952
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1157 */
3953
 
        __pyx_3 = PyObject_IsTrue(__pyx_v_self->use_filesystem_for_exec); if (__pyx_3 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1157; goto __pyx_L1;}
3954
 
        if (__pyx_3) {
3955
 
          __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_bool); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1160; goto __pyx_L1;}
3956
 
          __pyx_2 = PyInt_FromLong(S_IXUSR); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1160; goto __pyx_L1;}
3957
 
          __pyx_8 = PyInt_FromLong(3); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1160; goto __pyx_L1;}
3958
 
          __pyx_6 = PyObject_GetItem(__pyx_v_path_info, __pyx_8); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1160; goto __pyx_L1;}
3959
 
          Py_DECREF(__pyx_8); __pyx_8 = 0;
3960
 
          __pyx_7 = PyObject_GetAttr(__pyx_6, __pyx_n_st_mode); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1160; goto __pyx_L1;}
3961
 
          Py_DECREF(__pyx_6); __pyx_6 = 0;
3962
 
          __pyx_4 = PyNumber_And(__pyx_2, __pyx_7); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1160; goto __pyx_L1;}
3963
 
          Py_DECREF(__pyx_2); __pyx_2 = 0;
3964
 
          Py_DECREF(__pyx_7); __pyx_7 = 0;
3965
 
          __pyx_8 = PyTuple_New(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1160; goto __pyx_L1;}
3966
 
          PyTuple_SET_ITEM(__pyx_8, 0, __pyx_4);
3967
 
          __pyx_4 = 0;
3968
 
          __pyx_6 = PyObject_CallObject(__pyx_1, __pyx_8); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1160; goto __pyx_L1;}
3969
 
          Py_DECREF(__pyx_1); __pyx_1 = 0;
3970
 
          Py_DECREF(__pyx_8); __pyx_8 = 0;
3971
 
          Py_DECREF(__pyx_v_target_exec);
3972
 
          __pyx_v_target_exec = __pyx_6;
3973
 
          __pyx_6 = 0;
3974
 
          goto __pyx_L16;
3975
 
        }
3976
 
        /*else*/ {
3977
 
          __pyx_2 = PyInt_FromLong(3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; goto __pyx_L1;}
3978
 
          __pyx_7 = PyObject_GetItem(__pyx_v_target_details, __pyx_2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; goto __pyx_L1;}
3979
 
          Py_DECREF(__pyx_2); __pyx_2 = 0;
3980
 
          Py_DECREF(__pyx_v_target_exec);
3981
 
          __pyx_v_target_exec = __pyx_7;
3982
 
          __pyx_7 = 0;
3983
 
        }
3984
 
        __pyx_L16:;
3985
 
        goto __pyx_L10;
3986
 
      }
3987
 
      if (PyObject_Cmp(__pyx_v_target_kind, __pyx_n_symlink, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1163; goto __pyx_L1;}
3988
 
      __pyx_5 = __pyx_5 == 0;
3989
 
      if (__pyx_5) {
3990
 
 
3991
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1164 */
3992
 
        __pyx_3 = (__pyx_v_source_minikind != 'l');
3993
 
        if (__pyx_3) {
3994
 
          __pyx_v_content_change = 1;
3995
 
          goto __pyx_L17;
3996
 
        }
3997
 
        /*else*/ {
3998
 
          __pyx_4 = PyInt_FromLong(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1167; goto __pyx_L1;}
3999
 
          __pyx_1 = PyObject_GetItem(__pyx_v_source_details, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1167; goto __pyx_L1;}
4000
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
4001
 
          if (PyObject_Cmp(__pyx_v_link_or_sha1, __pyx_1, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1167; goto __pyx_L1;}
4002
 
          __pyx_5 = __pyx_5 != 0;
4003
 
          Py_DECREF(__pyx_1); __pyx_1 = 0;
4004
 
          __pyx_v_content_change = __pyx_5;
4005
 
        }
4006
 
        __pyx_L17:;
4007
 
 
4008
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1168 */
4009
 
        __pyx_8 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1168; goto __pyx_L1;}
4010
 
        Py_DECREF(__pyx_v_target_exec);
4011
 
        __pyx_v_target_exec = __pyx_8;
4012
 
        __pyx_8 = 0;
4013
 
        goto __pyx_L10;
4014
 
      }
4015
 
      if (PyObject_Cmp(__pyx_v_target_kind, __pyx_k65p, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1169; goto __pyx_L1;}
4016
 
      __pyx_3 = __pyx_3 == 0;
4017
 
      if (__pyx_3) {
4018
 
 
4019
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1170 */
4020
 
        __pyx_5 = (__pyx_v_source_minikind != 't');
4021
 
        if (__pyx_5) {
4022
 
          __pyx_v_content_change = 1;
4023
 
          goto __pyx_L18;
4024
 
        }
4025
 
        /*else*/ {
4026
 
          __pyx_v_content_change = 0;
4027
 
        }
4028
 
        __pyx_L18:;
4029
 
 
4030
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1174 */
4031
 
        __pyx_6 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1174; goto __pyx_L1;}
4032
 
        Py_DECREF(__pyx_v_target_exec);
4033
 
        __pyx_v_target_exec = __pyx_6;
4034
 
        __pyx_6 = 0;
4035
 
        goto __pyx_L10;
4036
 
      }
4037
 
      /*else*/ {
4038
 
        __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_Exception); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1176; goto __pyx_L1;}
4039
 
        __pyx_7 = PyInt_FromLong(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1176; goto __pyx_L1;}
4040
 
        __pyx_4 = PyObject_GetItem(__pyx_v_path_info, __pyx_7); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1176; goto __pyx_L1;}
4041
 
        Py_DECREF(__pyx_7); __pyx_7 = 0;
4042
 
        __pyx_1 = PyNumber_Remainder(__pyx_k66p, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1176; goto __pyx_L1;}
4043
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
4044
 
        __Pyx_Raise(__pyx_2, __pyx_1, 0);
4045
 
        Py_DECREF(__pyx_2); __pyx_2 = 0;
4046
 
        Py_DECREF(__pyx_1); __pyx_1 = 0;
4047
 
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1176; goto __pyx_L1;}
4048
 
      }
4049
 
      __pyx_L10:;
4050
 
    }
4051
 
    __pyx_L9:;
4052
 
 
4053
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1177 */
4054
 
    __pyx_3 = (__pyx_v_source_minikind == 'd');
4055
 
    if (__pyx_3) {
4056
 
 
4057
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1178 */
4058
 
      __pyx_5 = __pyx_v_path == Py_None;
4059
 
      if (__pyx_5) {
4060
 
        __pyx_8 = PyTuple_New(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1179; goto __pyx_L1;}
4061
 
        Py_INCREF(__pyx_v_old_dirname);
4062
 
        PyTuple_SET_ITEM(__pyx_8, 0, __pyx_v_old_dirname);
4063
 
        Py_INCREF(__pyx_v_old_basename);
4064
 
        PyTuple_SET_ITEM(__pyx_8, 1, __pyx_v_old_basename);
4065
 
        __pyx_6 = PyObject_CallObject(__pyx_v_self->pathjoin, __pyx_8); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1179; goto __pyx_L1;}
4066
 
        Py_DECREF(__pyx_8); __pyx_8 = 0;
4067
 
        Py_INCREF(__pyx_6);
4068
 
        Py_DECREF(__pyx_v_old_path);
4069
 
        __pyx_v_old_path = __pyx_6;
4070
 
        Py_INCREF(__pyx_6);
4071
 
        Py_DECREF(__pyx_v_path);
4072
 
        __pyx_v_path = __pyx_6;
4073
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
4074
 
        goto __pyx_L20;
4075
 
      }
4076
 
      __pyx_L20:;
4077
 
 
4078
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1180 */
4079
 
      __pyx_3 = __pyx_v_file_id == Py_None;
4080
 
      if (__pyx_3) {
4081
 
        __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1181; goto __pyx_L1;}
4082
 
        __pyx_4 = PyObject_GetItem(__pyx_v_entry, __pyx_7); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1181; goto __pyx_L1;}
4083
 
        Py_DECREF(__pyx_7); __pyx_7 = 0;
4084
 
        __pyx_2 = PyInt_FromLong(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1181; goto __pyx_L1;}
4085
 
        __pyx_1 = PyObject_GetItem(__pyx_4, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1181; goto __pyx_L1;}
4086
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
4087
 
        Py_DECREF(__pyx_2); __pyx_2 = 0;
4088
 
        Py_DECREF(__pyx_v_file_id);
4089
 
        __pyx_v_file_id = __pyx_1;
4090
 
        __pyx_1 = 0;
4091
 
        goto __pyx_L21;
4092
 
      }
4093
 
      __pyx_L21:;
4094
 
 
4095
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1182 */
4096
 
      if (PyObject_SetItem(__pyx_v_self->old_dirname_to_file_id, __pyx_v_old_path, __pyx_v_file_id) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1182; goto __pyx_L1;}
4097
 
      goto __pyx_L19;
4098
 
    }
4099
 
    __pyx_L19:;
4100
 
 
4101
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1184 */
4102
 
    __pyx_8 = PyInt_FromLong(0); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1184; goto __pyx_L1;}
4103
 
    __pyx_6 = PyObject_GetItem(__pyx_v_self->last_source_parent, __pyx_8); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1184; goto __pyx_L1;}
4104
 
    Py_DECREF(__pyx_8); __pyx_8 = 0;
4105
 
    if (PyObject_Cmp(__pyx_v_old_dirname, __pyx_6, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1184; goto __pyx_L1;}
4106
 
    __pyx_5 = __pyx_5 == 0;
4107
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
4108
 
    if (__pyx_5) {
4109
 
      __pyx_7 = PyInt_FromLong(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1185; goto __pyx_L1;}
4110
 
      __pyx_4 = PyObject_GetItem(__pyx_v_self->last_source_parent, __pyx_7); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1185; goto __pyx_L1;}
4111
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
4112
 
      Py_DECREF(__pyx_v_source_parent_id);
4113
 
      __pyx_v_source_parent_id = __pyx_4;
4114
 
      __pyx_4 = 0;
4115
 
      goto __pyx_L22;
4116
 
    }
4117
 
    /*else*/ {
4118
 
 
4119
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1187 */
4120
 
      /*try:*/ {
4121
 
        __pyx_2 = PyObject_GetItem(__pyx_v_self->old_dirname_to_file_id, __pyx_v_old_dirname); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1188; goto __pyx_L23;}
4122
 
        Py_DECREF(__pyx_v_source_parent_id);
4123
 
        __pyx_v_source_parent_id = __pyx_2;
4124
 
        __pyx_2 = 0;
4125
 
      }
4126
 
      goto __pyx_L24;
4127
 
      __pyx_L23:;
4128
 
      Py_XDECREF(__pyx_1); __pyx_1 = 0;
4129
 
      Py_XDECREF(__pyx_8); __pyx_8 = 0;
4130
 
      Py_XDECREF(__pyx_6); __pyx_6 = 0;
4131
 
      Py_XDECREF(__pyx_7); __pyx_7 = 0;
4132
 
      Py_XDECREF(__pyx_4); __pyx_4 = 0;
4133
 
      Py_XDECREF(__pyx_2); __pyx_2 = 0;
4134
 
 
4135
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1189 */
4136
 
      __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_KeyError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1189; goto __pyx_L1;}
4137
 
      __pyx_3 = PyErr_ExceptionMatches(__pyx_1);
4138
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
4139
 
      if (__pyx_3) {
4140
 
        __Pyx_AddTraceback("_dirstate_helpers_c._process_entry");
4141
 
        if (__Pyx_GetException(&__pyx_8, &__pyx_6, &__pyx_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1189; goto __pyx_L1;}
4142
 
 
4143
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1190 */
4144
 
        __pyx_4 = PyObject_GetAttr(__pyx_v_self->state, __pyx_n__get_entry); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1190; goto __pyx_L1;}
4145
 
        __pyx_2 = PyInt_FromLong(__pyx_v_self->source_index); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1190; goto __pyx_L1;}
4146
 
        __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1190; goto __pyx_L1;}
4147
 
        PyTuple_SET_ITEM(__pyx_1, 0, __pyx_2);
4148
 
        __pyx_2 = 0;
4149
 
        __pyx_2 = PyDict_New(); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1190; goto __pyx_L1;}
4150
 
        if (PyDict_SetItem(__pyx_2, __pyx_n_path_utf8, __pyx_v_old_dirname) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1190; goto __pyx_L1;}
4151
 
        __pyx_9 = PyEval_CallObjectWithKeywords(__pyx_4, __pyx_1, __pyx_2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1190; goto __pyx_L1;}
4152
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
4153
 
        Py_DECREF(__pyx_1); __pyx_1 = 0;
4154
 
        Py_DECREF(__pyx_2); __pyx_2 = 0;
4155
 
        Py_DECREF(__pyx_v_source_parent_entry);
4156
 
        __pyx_v_source_parent_entry = __pyx_9;
4157
 
        __pyx_9 = 0;
4158
 
 
4159
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1192 */
4160
 
        __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1192; goto __pyx_L1;}
4161
 
        __pyx_1 = PyObject_GetItem(__pyx_v_source_parent_entry, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1192; goto __pyx_L1;}
4162
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
4163
 
        __pyx_2 = PyInt_FromLong(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1192; goto __pyx_L1;}
4164
 
        __pyx_9 = PyObject_GetItem(__pyx_1, __pyx_2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1192; goto __pyx_L1;}
4165
 
        Py_DECREF(__pyx_1); __pyx_1 = 0;
4166
 
        Py_DECREF(__pyx_2); __pyx_2 = 0;
4167
 
        Py_DECREF(__pyx_v_source_parent_id);
4168
 
        __pyx_v_source_parent_id = __pyx_9;
4169
 
        __pyx_9 = 0;
4170
 
        Py_DECREF(__pyx_8); __pyx_8 = 0;
4171
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
4172
 
        Py_DECREF(__pyx_7); __pyx_7 = 0;
4173
 
        goto __pyx_L24;
4174
 
      }
4175
 
      goto __pyx_L1;
4176
 
      __pyx_L24:;
4177
 
 
4178
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1193 */
4179
 
      __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1193; goto __pyx_L1;}
4180
 
      __pyx_1 = PyObject_GetItem(__pyx_v_entry, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1193; goto __pyx_L1;}
4181
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
4182
 
      __pyx_2 = PyInt_FromLong(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1193; goto __pyx_L1;}
4183
 
      __pyx_9 = PyObject_GetItem(__pyx_1, __pyx_2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1193; goto __pyx_L1;}
4184
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
4185
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
4186
 
      if (PyObject_Cmp(__pyx_v_source_parent_id, __pyx_9, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1193; goto __pyx_L1;}
4187
 
      __pyx_5 = __pyx_5 == 0;
4188
 
      Py_DECREF(__pyx_9); __pyx_9 = 0;
4189
 
      if (__pyx_5) {
4190
 
        Py_INCREF(Py_None);
4191
 
        Py_DECREF(__pyx_v_source_parent_id);
4192
 
        __pyx_v_source_parent_id = Py_None;
4193
 
        goto __pyx_L25;
4194
 
      }
4195
 
      /*else*/ {
4196
 
 
4197
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1197 */
4198
 
        __pyx_8 = PyInt_FromLong(0); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1197; goto __pyx_L1;}
4199
 
        if (PyObject_SetItem(__pyx_v_self->last_source_parent, __pyx_8, __pyx_v_old_dirname) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1197; goto __pyx_L1;}
4200
 
        Py_DECREF(__pyx_8); __pyx_8 = 0;
4201
 
 
4202
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1198 */
4203
 
        __pyx_6 = PyInt_FromLong(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1198; goto __pyx_L1;}
4204
 
        if (PyObject_SetItem(__pyx_v_self->last_source_parent, __pyx_6, __pyx_v_source_parent_id) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1198; goto __pyx_L1;}
4205
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
4206
 
      }
4207
 
      __pyx_L25:;
4208
 
    }
4209
 
    __pyx_L22:;
4210
 
 
4211
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1199 */
4212
 
    __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1199; goto __pyx_L1;}
4213
 
    __pyx_4 = PyObject_GetItem(__pyx_v_entry, __pyx_7); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1199; goto __pyx_L1;}
4214
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
4215
 
    __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1199; goto __pyx_L1;}
4216
 
    __pyx_2 = PyObject_GetItem(__pyx_4, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1199; goto __pyx_L1;}
4217
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
4218
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
4219
 
    Py_DECREF(__pyx_v_new_dirname);
4220
 
    __pyx_v_new_dirname = __pyx_2;
4221
 
    __pyx_2 = 0;
4222
 
 
4223
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1200 */
4224
 
    __pyx_9 = PyInt_FromLong(0); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1200; goto __pyx_L1;}
4225
 
    __pyx_8 = PyObject_GetItem(__pyx_v_self->last_target_parent, __pyx_9); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1200; goto __pyx_L1;}
4226
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
4227
 
    if (PyObject_Cmp(__pyx_v_new_dirname, __pyx_8, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1200; goto __pyx_L1;}
4228
 
    __pyx_3 = __pyx_3 == 0;
4229
 
    Py_DECREF(__pyx_8); __pyx_8 = 0;
4230
 
    if (__pyx_3) {
4231
 
      __pyx_6 = PyInt_FromLong(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1201; goto __pyx_L1;}
4232
 
      __pyx_7 = PyObject_GetItem(__pyx_v_self->last_target_parent, __pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1201; goto __pyx_L1;}
4233
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
4234
 
      Py_DECREF(__pyx_v_target_parent_id);
4235
 
      __pyx_v_target_parent_id = __pyx_7;
4236
 
      __pyx_7 = 0;
4237
 
      goto __pyx_L26;
4238
 
    }
4239
 
    /*else*/ {
4240
 
 
4241
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1203 */
4242
 
      /*try:*/ {
4243
 
        __pyx_4 = PyObject_GetItem(__pyx_v_self->new_dirname_to_file_id, __pyx_v_new_dirname); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1204; goto __pyx_L27;}
4244
 
        Py_DECREF(__pyx_v_target_parent_id);
4245
 
        __pyx_v_target_parent_id = __pyx_4;
4246
 
        __pyx_4 = 0;
4247
 
      }
4248
 
      goto __pyx_L28;
4249
 
      __pyx_L27:;
4250
 
      Py_XDECREF(__pyx_1); __pyx_1 = 0;
4251
 
      Py_XDECREF(__pyx_2); __pyx_2 = 0;
4252
 
      Py_XDECREF(__pyx_9); __pyx_9 = 0;
4253
 
      Py_XDECREF(__pyx_8); __pyx_8 = 0;
4254
 
      Py_XDECREF(__pyx_6); __pyx_6 = 0;
4255
 
      Py_XDECREF(__pyx_7); __pyx_7 = 0;
4256
 
      Py_XDECREF(__pyx_4); __pyx_4 = 0;
4257
 
 
4258
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1205 */
4259
 
      __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_KeyError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1205; goto __pyx_L1;}
4260
 
      __pyx_5 = PyErr_ExceptionMatches(__pyx_1);
4261
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
4262
 
      if (__pyx_5) {
4263
 
        __Pyx_AddTraceback("_dirstate_helpers_c._process_entry");
4264
 
        if (__Pyx_GetException(&__pyx_2, &__pyx_9, &__pyx_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1205; goto __pyx_L1;}
4265
 
 
4266
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1208 */
4267
 
        __pyx_6 = PyObject_GetAttr(__pyx_v_self->state, __pyx_n__get_entry); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1208; goto __pyx_L1;}
4268
 
        __pyx_7 = PyInt_FromLong(__pyx_v_self->target_index); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1208; goto __pyx_L1;}
4269
 
        __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1208; goto __pyx_L1;}
4270
 
        PyTuple_SET_ITEM(__pyx_4, 0, __pyx_7);
4271
 
        __pyx_7 = 0;
4272
 
        __pyx_1 = PyDict_New(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1208; goto __pyx_L1;}
4273
 
        if (PyDict_SetItem(__pyx_1, __pyx_n_path_utf8, __pyx_v_new_dirname) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1208; goto __pyx_L1;}
4274
 
        __pyx_7 = PyEval_CallObjectWithKeywords(__pyx_6, __pyx_4, __pyx_1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1208; goto __pyx_L1;}
4275
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
4276
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
4277
 
        Py_DECREF(__pyx_1); __pyx_1 = 0;
4278
 
        Py_DECREF(__pyx_v_target_parent_entry);
4279
 
        __pyx_v_target_parent_entry = __pyx_7;
4280
 
        __pyx_7 = 0;
4281
 
 
4282
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1210 */
4283
 
        __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1210; goto __pyx_L1;}
4284
 
        Py_INCREF(Py_None);
4285
 
        PyTuple_SET_ITEM(__pyx_6, 0, Py_None);
4286
 
        Py_INCREF(Py_None);
4287
 
        PyTuple_SET_ITEM(__pyx_6, 1, Py_None);
4288
 
        if (PyObject_Cmp(__pyx_v_target_parent_entry, __pyx_6, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1210; goto __pyx_L1;}
4289
 
        __pyx_3 = __pyx_3 == 0;
4290
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
4291
 
        if (__pyx_3) {
4292
 
          __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_AssertionError); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1211; goto __pyx_L1;}
4293
 
          __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1213; goto __pyx_L1;}
4294
 
          Py_INCREF(__pyx_v_new_dirname);
4295
 
          PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_new_dirname);
4296
 
          Py_INCREF(__pyx_v_entry);
4297
 
          PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_entry);
4298
 
          __pyx_7 = PyNumber_Remainder(__pyx_k69p, __pyx_1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1213; goto __pyx_L1;}
4299
 
          Py_DECREF(__pyx_1); __pyx_1 = 0;
4300
 
          __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1211; goto __pyx_L1;}
4301
 
          PyTuple_SET_ITEM(__pyx_6, 0, __pyx_7);
4302
 
          __pyx_7 = 0;
4303
 
          __pyx_1 = PyObject_CallObject(__pyx_4, __pyx_6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1211; goto __pyx_L1;}
4304
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
4305
 
          Py_DECREF(__pyx_6); __pyx_6 = 0;
4306
 
          __Pyx_Raise(__pyx_1, 0, 0);
4307
 
          Py_DECREF(__pyx_1); __pyx_1 = 0;
4308
 
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1211; goto __pyx_L1;}
4309
 
          goto __pyx_L29;
4310
 
        }
4311
 
        __pyx_L29:;
4312
 
 
4313
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1214 */
4314
 
        __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1214; goto __pyx_L1;}
4315
 
        __pyx_4 = PyObject_GetItem(__pyx_v_target_parent_entry, __pyx_7); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1214; goto __pyx_L1;}
4316
 
        Py_DECREF(__pyx_7); __pyx_7 = 0;
4317
 
        __pyx_6 = PyInt_FromLong(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1214; goto __pyx_L1;}
4318
 
        __pyx_1 = PyObject_GetItem(__pyx_4, __pyx_6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1214; goto __pyx_L1;}
4319
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
4320
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
4321
 
        Py_DECREF(__pyx_v_target_parent_id);
4322
 
        __pyx_v_target_parent_id = __pyx_1;
4323
 
        __pyx_1 = 0;
4324
 
        Py_DECREF(__pyx_2); __pyx_2 = 0;
4325
 
        Py_DECREF(__pyx_9); __pyx_9 = 0;
4326
 
        Py_DECREF(__pyx_8); __pyx_8 = 0;
4327
 
        goto __pyx_L28;
4328
 
      }
4329
 
      goto __pyx_L1;
4330
 
      __pyx_L28:;
4331
 
 
4332
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1215 */
4333
 
      __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1215; goto __pyx_L1;}
4334
 
      __pyx_4 = PyObject_GetItem(__pyx_v_entry, __pyx_7); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1215; goto __pyx_L1;}
4335
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
4336
 
      __pyx_6 = PyInt_FromLong(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1215; goto __pyx_L1;}
4337
 
      __pyx_1 = PyObject_GetItem(__pyx_4, __pyx_6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1215; goto __pyx_L1;}
4338
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
4339
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
4340
 
      if (PyObject_Cmp(__pyx_v_target_parent_id, __pyx_1, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1215; goto __pyx_L1;}
4341
 
      __pyx_5 = __pyx_5 == 0;
4342
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
4343
 
      if (__pyx_5) {
4344
 
        Py_INCREF(Py_None);
4345
 
        Py_DECREF(__pyx_v_target_parent_id);
4346
 
        __pyx_v_target_parent_id = Py_None;
4347
 
        goto __pyx_L30;
4348
 
      }
4349
 
      /*else*/ {
4350
 
 
4351
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1219 */
4352
 
        __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1219; goto __pyx_L1;}
4353
 
        if (PyObject_SetItem(__pyx_v_self->last_target_parent, __pyx_2, __pyx_v_new_dirname) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1219; goto __pyx_L1;}
4354
 
        Py_DECREF(__pyx_2); __pyx_2 = 0;
4355
 
 
4356
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1220 */
4357
 
        __pyx_9 = PyInt_FromLong(1); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1220; goto __pyx_L1;}
4358
 
        if (PyObject_SetItem(__pyx_v_self->last_target_parent, __pyx_9, __pyx_v_target_parent_id) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1220; goto __pyx_L1;}
4359
 
        Py_DECREF(__pyx_9); __pyx_9 = 0;
4360
 
      }
4361
 
      __pyx_L30:;
4362
 
    }
4363
 
    __pyx_L26:;
4364
 
 
4365
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1222 */
4366
 
    __pyx_8 = PyInt_FromLong(3); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1222; goto __pyx_L1;}
4367
 
    __pyx_7 = PyObject_GetItem(__pyx_v_source_details, __pyx_8); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1222; goto __pyx_L1;}
4368
 
    Py_DECREF(__pyx_8); __pyx_8 = 0;
4369
 
    Py_DECREF(__pyx_v_source_exec);
4370
 
    __pyx_v_source_exec = __pyx_7;
4371
 
    __pyx_7 = 0;
4372
 
 
4373
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1223 */
4374
 
    __pyx_4 = __pyx_v_self->include_unchanged;
4375
 
    Py_INCREF(__pyx_4);
4376
 
    __pyx_3 = PyObject_IsTrue(__pyx_4); if (__pyx_3 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1224; goto __pyx_L1;}
4377
 
    if (!__pyx_3) {
4378
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
4379
 
      __pyx_5 = __pyx_v_content_change;
4380
 
      if (!__pyx_5) {
4381
 
        if (PyObject_Cmp(__pyx_v_source_parent_id, __pyx_v_target_parent_id, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1225; goto __pyx_L1;}
4382
 
        __pyx_5 = __pyx_5 != 0;
4383
 
        if (!__pyx_5) {
4384
 
          __pyx_6 = PyInt_FromLong(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1226; goto __pyx_L1;}
4385
 
          __pyx_1 = PyObject_GetItem(__pyx_v_entry, __pyx_6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1226; goto __pyx_L1;}
4386
 
          Py_DECREF(__pyx_6); __pyx_6 = 0;
4387
 
          __pyx_2 = PyInt_FromLong(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1226; goto __pyx_L1;}
4388
 
          __pyx_9 = PyObject_GetItem(__pyx_1, __pyx_2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1226; goto __pyx_L1;}
4389
 
          Py_DECREF(__pyx_1); __pyx_1 = 0;
4390
 
          Py_DECREF(__pyx_2); __pyx_2 = 0;
4391
 
          if (PyObject_Cmp(__pyx_v_old_basename, __pyx_9, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1226; goto __pyx_L1;}
4392
 
          __pyx_5 = __pyx_5 != 0;
4393
 
          Py_DECREF(__pyx_9); __pyx_9 = 0;
4394
 
          if (!__pyx_5) {
4395
 
            if (PyObject_Cmp(__pyx_v_source_exec, __pyx_v_target_exec, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1227; goto __pyx_L1;}
4396
 
            __pyx_5 = __pyx_5 != 0;
4397
 
          }
4398
 
        }
4399
 
      }
4400
 
      __pyx_4 = PyInt_FromLong(__pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1225; goto __pyx_L1;}
4401
 
    }
4402
 
    __pyx_3 = PyObject_IsTrue(__pyx_4); if (__pyx_3 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1224; goto __pyx_L1;}
4403
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
4404
 
    if (__pyx_3) {
4405
 
 
4406
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1229 */
4407
 
      __pyx_5 = __pyx_v_old_path == Py_None;
4408
 
      if (__pyx_5) {
4409
 
 
4410
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1230 */
4411
 
        __pyx_8 = PyTuple_New(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1230; goto __pyx_L1;}
4412
 
        Py_INCREF(__pyx_v_old_dirname);
4413
 
        PyTuple_SET_ITEM(__pyx_8, 0, __pyx_v_old_dirname);
4414
 
        Py_INCREF(__pyx_v_old_basename);
4415
 
        PyTuple_SET_ITEM(__pyx_8, 1, __pyx_v_old_basename);
4416
 
        __pyx_7 = PyObject_CallObject(__pyx_v_self->pathjoin, __pyx_8); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1230; goto __pyx_L1;}
4417
 
        Py_DECREF(__pyx_8); __pyx_8 = 0;
4418
 
        Py_DECREF(__pyx_v_path);
4419
 
        __pyx_v_path = __pyx_7;
4420
 
        __pyx_7 = 0;
4421
 
 
4422
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1231 */
4423
 
        Py_INCREF(__pyx_v_path);
4424
 
        Py_DECREF(__pyx_v_old_path);
4425
 
        __pyx_v_old_path = __pyx_v_path;
4426
 
 
4427
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1232 */
4428
 
        __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1232; goto __pyx_L1;}
4429
 
        Py_INCREF(__pyx_v_old_path);
4430
 
        PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_old_path);
4431
 
        __pyx_1 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1232; goto __pyx_L1;}
4432
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
4433
 
        __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1232; goto __pyx_L1;}
4434
 
        __pyx_9 = PyObject_GetItem(__pyx_1, __pyx_2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1232; goto __pyx_L1;}
4435
 
        Py_DECREF(__pyx_1); __pyx_1 = 0;
4436
 
        Py_DECREF(__pyx_2); __pyx_2 = 0;
4437
 
        Py_DECREF(__pyx_v_old_path_u);
4438
 
        __pyx_v_old_path_u = __pyx_9;
4439
 
        __pyx_9 = 0;
4440
 
 
4441
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1233 */
4442
 
        Py_INCREF(__pyx_v_old_path_u);
4443
 
        Py_DECREF(__pyx_v_path_u);
4444
 
        __pyx_v_path_u = __pyx_v_old_path_u;
4445
 
        goto __pyx_L32;
4446
 
      }
4447
 
      /*else*/ {
4448
 
 
4449
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1235 */
4450
 
        __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1235; goto __pyx_L1;}
4451
 
        Py_INCREF(__pyx_v_old_path);
4452
 
        PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_old_path);
4453
 
        __pyx_8 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_4); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1235; goto __pyx_L1;}
4454
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
4455
 
        __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1235; goto __pyx_L1;}
4456
 
        __pyx_6 = PyObject_GetItem(__pyx_8, __pyx_7); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1235; goto __pyx_L1;}
4457
 
        Py_DECREF(__pyx_8); __pyx_8 = 0;
4458
 
        Py_DECREF(__pyx_7); __pyx_7 = 0;
4459
 
        Py_DECREF(__pyx_v_old_path_u);
4460
 
        __pyx_v_old_path_u = __pyx_6;
4461
 
        __pyx_6 = 0;
4462
 
 
4463
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1236 */
4464
 
        if (PyObject_Cmp(__pyx_v_old_path, __pyx_v_path, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1236; goto __pyx_L1;}
4465
 
        __pyx_3 = __pyx_3 == 0;
4466
 
        if (__pyx_3) {
4467
 
          Py_INCREF(__pyx_v_old_path_u);
4468
 
          Py_DECREF(__pyx_v_path_u);
4469
 
          __pyx_v_path_u = __pyx_v_old_path_u;
4470
 
          goto __pyx_L33;
4471
 
        }
4472
 
        /*else*/ {
4473
 
          __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1239; goto __pyx_L1;}
4474
 
          Py_INCREF(__pyx_v_path);
4475
 
          PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_path);
4476
 
          __pyx_2 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1239; goto __pyx_L1;}
4477
 
          Py_DECREF(__pyx_1); __pyx_1 = 0;
4478
 
          __pyx_9 = PyInt_FromLong(0); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1239; goto __pyx_L1;}
4479
 
          __pyx_4 = PyObject_GetItem(__pyx_2, __pyx_9); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1239; goto __pyx_L1;}
4480
 
          Py_DECREF(__pyx_2); __pyx_2 = 0;
4481
 
          Py_DECREF(__pyx_9); __pyx_9 = 0;
4482
 
          Py_DECREF(__pyx_v_path_u);
4483
 
          __pyx_v_path_u = __pyx_4;
4484
 
          __pyx_4 = 0;
4485
 
        }
4486
 
        __pyx_L33:;
4487
 
      }
4488
 
      __pyx_L32:;
4489
 
 
4490
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1240 */
4491
 
      __pyx_8 = __pyx_f_19_dirstate_helpers_c__minikind_to_kind(__pyx_v_source_minikind); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; goto __pyx_L1;}
4492
 
      Py_DECREF(__pyx_v_source_kind);
4493
 
      __pyx_v_source_kind = __pyx_8;
4494
 
      __pyx_8 = 0;
4495
 
 
4496
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1241 */
4497
 
      __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1241; goto __pyx_L1;}
4498
 
      __pyx_6 = PyObject_GetItem(__pyx_v_entry, __pyx_7); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1241; goto __pyx_L1;}
4499
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
4500
 
      __pyx_1 = PyInt_FromLong(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1241; goto __pyx_L1;}
4501
 
      __pyx_2 = PyObject_GetItem(__pyx_6, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1241; goto __pyx_L1;}
4502
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
4503
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
4504
 
      __pyx_9 = PyTuple_New(2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1242; goto __pyx_L1;}
4505
 
      Py_INCREF(__pyx_v_old_path_u);
4506
 
      PyTuple_SET_ITEM(__pyx_9, 0, __pyx_v_old_path_u);
4507
 
      Py_INCREF(__pyx_v_path_u);
4508
 
      PyTuple_SET_ITEM(__pyx_9, 1, __pyx_v_path_u);
4509
 
      __pyx_4 = PyInt_FromLong(__pyx_v_content_change); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1243; goto __pyx_L1;}
4510
 
      __pyx_8 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1244; goto __pyx_L1;}
4511
 
      __pyx_7 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1244; goto __pyx_L1;}
4512
 
      __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1244; goto __pyx_L1;}
4513
 
      PyTuple_SET_ITEM(__pyx_6, 0, __pyx_8);
4514
 
      PyTuple_SET_ITEM(__pyx_6, 1, __pyx_7);
4515
 
      __pyx_8 = 0;
4516
 
      __pyx_7 = 0;
4517
 
      __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1245; goto __pyx_L1;}
4518
 
      Py_INCREF(__pyx_v_source_parent_id);
4519
 
      PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_source_parent_id);
4520
 
      Py_INCREF(__pyx_v_target_parent_id);
4521
 
      PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_target_parent_id);
4522
 
      __pyx_8 = PyTuple_New(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1246; goto __pyx_L1;}
4523
 
      Py_INCREF(__pyx_v_old_basename);
4524
 
      PyTuple_SET_ITEM(__pyx_8, 0, __pyx_v_old_basename);
4525
 
      __pyx_7 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_8); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1246; goto __pyx_L1;}
4526
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
4527
 
      __pyx_8 = PyInt_FromLong(0); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1246; goto __pyx_L1;}
4528
 
      __pyx_10 = PyObject_GetItem(__pyx_7, __pyx_8); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1246; goto __pyx_L1;}
4529
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
4530
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
4531
 
      __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1246; goto __pyx_L1;}
4532
 
      __pyx_8 = PyObject_GetItem(__pyx_v_entry, __pyx_7); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1246; goto __pyx_L1;}
4533
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
4534
 
      __pyx_7 = PyInt_FromLong(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1246; goto __pyx_L1;}
4535
 
      __pyx_11 = PyObject_GetItem(__pyx_8, __pyx_7); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1246; goto __pyx_L1;}
4536
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
4537
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
4538
 
      __pyx_8 = PyTuple_New(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1246; goto __pyx_L1;}
4539
 
      PyTuple_SET_ITEM(__pyx_8, 0, __pyx_11);
4540
 
      __pyx_11 = 0;
4541
 
      __pyx_7 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_8); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1246; goto __pyx_L1;}
4542
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
4543
 
      __pyx_11 = PyInt_FromLong(0); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1246; goto __pyx_L1;}
4544
 
      __pyx_8 = PyObject_GetItem(__pyx_7, __pyx_11); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1246; goto __pyx_L1;}
4545
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
4546
 
      Py_DECREF(__pyx_11); __pyx_11 = 0;
4547
 
      __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1246; goto __pyx_L1;}
4548
 
      PyTuple_SET_ITEM(__pyx_7, 0, __pyx_10);
4549
 
      PyTuple_SET_ITEM(__pyx_7, 1, __pyx_8);
4550
 
      __pyx_10 = 0;
4551
 
      __pyx_8 = 0;
4552
 
      __pyx_11 = PyTuple_New(2); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; goto __pyx_L1;}
4553
 
      Py_INCREF(__pyx_v_source_kind);
4554
 
      PyTuple_SET_ITEM(__pyx_11, 0, __pyx_v_source_kind);
4555
 
      Py_INCREF(__pyx_v_target_kind);
4556
 
      PyTuple_SET_ITEM(__pyx_11, 1, __pyx_v_target_kind);
4557
 
      __pyx_10 = PyTuple_New(2); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1248; goto __pyx_L1;}
4558
 
      Py_INCREF(__pyx_v_source_exec);
4559
 
      PyTuple_SET_ITEM(__pyx_10, 0, __pyx_v_source_exec);
4560
 
      Py_INCREF(__pyx_v_target_exec);
4561
 
      PyTuple_SET_ITEM(__pyx_10, 1, __pyx_v_target_exec);
4562
 
      __pyx_8 = PyTuple_New(8); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1241; goto __pyx_L1;}
4563
 
      PyTuple_SET_ITEM(__pyx_8, 0, __pyx_2);
4564
 
      PyTuple_SET_ITEM(__pyx_8, 1, __pyx_9);
4565
 
      PyTuple_SET_ITEM(__pyx_8, 2, __pyx_4);
4566
 
      PyTuple_SET_ITEM(__pyx_8, 3, __pyx_6);
4567
 
      PyTuple_SET_ITEM(__pyx_8, 4, __pyx_1);
4568
 
      PyTuple_SET_ITEM(__pyx_8, 5, __pyx_7);
4569
 
      PyTuple_SET_ITEM(__pyx_8, 6, __pyx_11);
4570
 
      PyTuple_SET_ITEM(__pyx_8, 7, __pyx_10);
4571
 
      __pyx_2 = 0;
4572
 
      __pyx_9 = 0;
4573
 
      __pyx_4 = 0;
4574
 
      __pyx_6 = 0;
4575
 
      __pyx_1 = 0;
4576
 
      __pyx_7 = 0;
4577
 
      __pyx_11 = 0;
4578
 
      __pyx_10 = 0;
4579
 
      __pyx_r = __pyx_8;
4580
 
      __pyx_8 = 0;
4581
 
      goto __pyx_L0;
4582
 
      goto __pyx_L31;
4583
 
    }
4584
 
    /*else*/ {
4585
 
      Py_INCREF(__pyx_v_self->uninteresting);
4586
 
      __pyx_r = __pyx_v_self->uninteresting;
4587
 
      goto __pyx_L0;
4588
 
    }
4589
 
    __pyx_L31:;
4590
 
    goto __pyx_L5;
4591
 
  }
4592
 
  __pyx_5 = (__pyx_v_source_minikind == 'a');
4593
 
  if (__pyx_5) {
4594
 
    __pyx_5 = __pyx_f_19_dirstate_helpers_c__versioned_minikind(__pyx_v_target_minikind);
4595
 
  }
4596
 
  if (__pyx_5) {
4597
 
 
4598
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1253 */
4599
 
    __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1253; goto __pyx_L1;}
4600
 
    __pyx_9 = PyObject_GetItem(__pyx_v_entry, __pyx_2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1253; goto __pyx_L1;}
4601
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
4602
 
    __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1253; goto __pyx_L1;}
4603
 
    __pyx_6 = PyObject_GetItem(__pyx_9, __pyx_4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1253; goto __pyx_L1;}
4604
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
4605
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
4606
 
    __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1253; goto __pyx_L1;}
4607
 
    __pyx_7 = PyObject_GetItem(__pyx_v_entry, __pyx_1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1253; goto __pyx_L1;}
4608
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
4609
 
    __pyx_11 = PyInt_FromLong(1); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1253; goto __pyx_L1;}
4610
 
    __pyx_10 = PyObject_GetItem(__pyx_7, __pyx_11); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1253; goto __pyx_L1;}
4611
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
4612
 
    Py_DECREF(__pyx_11); __pyx_11 = 0;
4613
 
    __pyx_8 = PyTuple_New(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1253; goto __pyx_L1;}
4614
 
    PyTuple_SET_ITEM(__pyx_8, 0, __pyx_6);
4615
 
    PyTuple_SET_ITEM(__pyx_8, 1, __pyx_10);
4616
 
    __pyx_6 = 0;
4617
 
    __pyx_10 = 0;
4618
 
    __pyx_2 = PyObject_CallObject(__pyx_v_self->pathjoin, __pyx_8); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1253; goto __pyx_L1;}
4619
 
    Py_DECREF(__pyx_8); __pyx_8 = 0;
4620
 
    Py_DECREF(__pyx_v_path);
4621
 
    __pyx_v_path = __pyx_2;
4622
 
    __pyx_2 = 0;
4623
 
 
4624
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1256 */
4625
 
    __pyx_9 = PyObject_GetAttr(__pyx_v_self->state, __pyx_n__get_entry); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1256; goto __pyx_L1;}
4626
 
    __pyx_4 = PyInt_FromLong(__pyx_v_self->target_index); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1256; goto __pyx_L1;}
4627
 
    __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1256; goto __pyx_L1;}
4628
 
    PyTuple_SET_ITEM(__pyx_1, 0, __pyx_4);
4629
 
    __pyx_4 = 0;
4630
 
    __pyx_7 = PyDict_New(); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1256; goto __pyx_L1;}
4631
 
    __pyx_11 = PyInt_FromLong(0); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1257; goto __pyx_L1;}
4632
 
    __pyx_6 = PyObject_GetItem(__pyx_v_entry, __pyx_11); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1257; goto __pyx_L1;}
4633
 
    Py_DECREF(__pyx_11); __pyx_11 = 0;
4634
 
    __pyx_10 = PyInt_FromLong(0); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1257; goto __pyx_L1;}
4635
 
    __pyx_8 = PyObject_GetItem(__pyx_6, __pyx_10); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1257; goto __pyx_L1;}
4636
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
4637
 
    Py_DECREF(__pyx_10); __pyx_10 = 0;
4638
 
    if (PyDict_SetItem(__pyx_7, __pyx_n_path_utf8, __pyx_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1256; goto __pyx_L1;}
4639
 
    Py_DECREF(__pyx_8); __pyx_8 = 0;
4640
 
    __pyx_2 = PyEval_CallObjectWithKeywords(__pyx_9, __pyx_1, __pyx_7); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1256; goto __pyx_L1;}
4641
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
4642
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
4643
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
4644
 
    Py_DECREF(__pyx_v_parent_entry);
4645
 
    __pyx_v_parent_entry = __pyx_2;
4646
 
    __pyx_2 = 0;
4647
 
 
4648
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1258 */
4649
 
    __pyx_3 = __pyx_v_parent_entry == Py_None;
4650
 
    if (__pyx_3) {
4651
 
      __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_errors); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1259; goto __pyx_L1;}
4652
 
      __pyx_11 = PyObject_GetAttr(__pyx_4, __pyx_n_DirstateCorrupt); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1259; goto __pyx_L1;}
4653
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
4654
 
      __pyx_6 = PyInt_FromLong(__pyx_v_self->target_index); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1262; goto __pyx_L1;}
4655
 
      __pyx_10 = PyInt_FromLong(0); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1262; goto __pyx_L1;}
4656
 
      __pyx_8 = PyObject_GetItem(__pyx_v_entry, __pyx_10); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1262; goto __pyx_L1;}
4657
 
      Py_DECREF(__pyx_10); __pyx_10 = 0;
4658
 
      __pyx_9 = PyTuple_New(2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1262; goto __pyx_L1;}
4659
 
      PyTuple_SET_ITEM(__pyx_9, 0, __pyx_6);
4660
 
      PyTuple_SET_ITEM(__pyx_9, 1, __pyx_8);
4661
 
      __pyx_6 = 0;
4662
 
      __pyx_8 = 0;
4663
 
      __pyx_1 = PyNumber_Remainder(__pyx_k71p, __pyx_9); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1262; goto __pyx_L1;}
4664
 
      Py_DECREF(__pyx_9); __pyx_9 = 0;
4665
 
      __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1259; goto __pyx_L1;}
4666
 
      Py_INCREF(__pyx_v_self->state);
4667
 
      PyTuple_SET_ITEM(__pyx_7, 0, __pyx_v_self->state);
4668
 
      PyTuple_SET_ITEM(__pyx_7, 1, __pyx_1);
4669
 
      __pyx_1 = 0;
4670
 
      __pyx_2 = PyObject_CallObject(__pyx_11, __pyx_7); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1259; goto __pyx_L1;}
4671
 
      Py_DECREF(__pyx_11); __pyx_11 = 0;
4672
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
4673
 
      __Pyx_Raise(__pyx_2, 0, 0);
4674
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
4675
 
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1259; goto __pyx_L1;}
4676
 
      goto __pyx_L34;
4677
 
    }
4678
 
    __pyx_L34:;
4679
 
 
4680
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1263 */
4681
 
    __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1263; goto __pyx_L1;}
4682
 
    __pyx_10 = PyObject_GetItem(__pyx_v_parent_entry, __pyx_4); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1263; goto __pyx_L1;}
4683
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
4684
 
    __pyx_6 = PyInt_FromLong(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1263; goto __pyx_L1;}
4685
 
    __pyx_8 = PyObject_GetItem(__pyx_10, __pyx_6); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1263; goto __pyx_L1;}
4686
 
    Py_DECREF(__pyx_10); __pyx_10 = 0;
4687
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
4688
 
    Py_DECREF(__pyx_v_parent_id);
4689
 
    __pyx_v_parent_id = __pyx_8;
4690
 
    __pyx_8 = 0;
4691
 
 
4692
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1264 */
4693
 
    __pyx_9 = PyInt_FromLong(0); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1264; goto __pyx_L1;}
4694
 
    __pyx_1 = PyObject_GetItem(__pyx_v_entry, __pyx_9); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1264; goto __pyx_L1;}
4695
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
4696
 
    __pyx_11 = PyInt_FromLong(2); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1264; goto __pyx_L1;}
4697
 
    __pyx_7 = PyObject_GetItem(__pyx_1, __pyx_11); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1264; goto __pyx_L1;}
4698
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
4699
 
    Py_DECREF(__pyx_11); __pyx_11 = 0;
4700
 
    if (PyObject_Cmp(__pyx_v_parent_id, __pyx_7, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1264; goto __pyx_L1;}
4701
 
    __pyx_5 = __pyx_5 == 0;
4702
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
4703
 
    if (__pyx_5) {
4704
 
      Py_INCREF(Py_None);
4705
 
      Py_DECREF(__pyx_v_parent_id);
4706
 
      __pyx_v_parent_id = Py_None;
4707
 
      goto __pyx_L35;
4708
 
    }
4709
 
    __pyx_L35:;
4710
 
 
4711
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1266 */
4712
 
    __pyx_3 = __pyx_v_path_info != Py_None;
4713
 
    if (__pyx_3) {
4714
 
 
4715
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1268 */
4716
 
      __pyx_5 = PyObject_IsTrue(__pyx_v_self->use_filesystem_for_exec); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1268; goto __pyx_L1;}
4717
 
      if (__pyx_5) {
4718
 
        __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_bool); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1271; goto __pyx_L1;}
4719
 
        __pyx_10 = PyInt_FromLong(3); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1272; goto __pyx_L1;}
4720
 
        __pyx_6 = PyObject_GetItem(__pyx_v_path_info, __pyx_10); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1272; goto __pyx_L1;}
4721
 
        Py_DECREF(__pyx_10); __pyx_10 = 0;
4722
 
        __pyx_8 = PyObject_GetAttr(__pyx_6, __pyx_n_st_mode); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1272; goto __pyx_L1;}
4723
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
4724
 
        __pyx_3 = PyInt_AsLong(__pyx_8); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1272; goto __pyx_L1;}
4725
 
        Py_DECREF(__pyx_8); __pyx_8 = 0;
4726
 
        __pyx_4 = PyInt_FromLong(S_ISREG(__pyx_3)); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1272; goto __pyx_L1;}
4727
 
        __pyx_5 = PyObject_IsTrue(__pyx_4); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1273; goto __pyx_L1;}
4728
 
        if (__pyx_5) {
4729
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
4730
 
          __pyx_9 = PyInt_FromLong(S_IXUSR); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1273; goto __pyx_L1;}
4731
 
          __pyx_1 = PyInt_FromLong(3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1273; goto __pyx_L1;}
4732
 
          __pyx_11 = PyObject_GetItem(__pyx_v_path_info, __pyx_1); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1273; goto __pyx_L1;}
4733
 
          Py_DECREF(__pyx_1); __pyx_1 = 0;
4734
 
          __pyx_7 = PyObject_GetAttr(__pyx_11, __pyx_n_st_mode); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1273; goto __pyx_L1;}
4735
 
          Py_DECREF(__pyx_11); __pyx_11 = 0;
4736
 
          __pyx_4 = PyNumber_And(__pyx_9, __pyx_7); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1273; goto __pyx_L1;}
4737
 
          Py_DECREF(__pyx_9); __pyx_9 = 0;
4738
 
          Py_DECREF(__pyx_7); __pyx_7 = 0;
4739
 
        }
4740
 
        __pyx_10 = PyTuple_New(1); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1271; goto __pyx_L1;}
4741
 
        PyTuple_SET_ITEM(__pyx_10, 0, __pyx_4);
4742
 
        __pyx_4 = 0;
4743
 
        __pyx_6 = PyObject_CallObject(__pyx_2, __pyx_10); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1271; goto __pyx_L1;}
4744
 
        Py_DECREF(__pyx_2); __pyx_2 = 0;
4745
 
        Py_DECREF(__pyx_10); __pyx_10 = 0;
4746
 
        Py_DECREF(__pyx_v_target_exec);
4747
 
        __pyx_v_target_exec = __pyx_6;
4748
 
        __pyx_6 = 0;
4749
 
        goto __pyx_L37;
4750
 
      }
4751
 
      /*else*/ {
4752
 
        __pyx_8 = PyInt_FromLong(3); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1275; goto __pyx_L1;}
4753
 
        __pyx_1 = PyObject_GetItem(__pyx_v_target_details, __pyx_8); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1275; goto __pyx_L1;}
4754
 
        Py_DECREF(__pyx_8); __pyx_8 = 0;
4755
 
        Py_DECREF(__pyx_v_target_exec);
4756
 
        __pyx_v_target_exec = __pyx_1;
4757
 
        __pyx_1 = 0;
4758
 
      }
4759
 
      __pyx_L37:;
4760
 
 
4761
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1276 */
4762
 
      __pyx_11 = PyInt_FromLong(0); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1276; goto __pyx_L1;}
4763
 
      __pyx_9 = PyObject_GetItem(__pyx_v_entry, __pyx_11); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1276; goto __pyx_L1;}
4764
 
      Py_DECREF(__pyx_11); __pyx_11 = 0;
4765
 
      __pyx_7 = PyInt_FromLong(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1276; goto __pyx_L1;}
4766
 
      __pyx_4 = PyObject_GetItem(__pyx_9, __pyx_7); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1276; goto __pyx_L1;}
4767
 
      Py_DECREF(__pyx_9); __pyx_9 = 0;
4768
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
4769
 
      __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1277; goto __pyx_L1;}
4770
 
      Py_INCREF(__pyx_v_path);
4771
 
      PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_path);
4772
 
      __pyx_10 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_2); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1277; goto __pyx_L1;}
4773
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
4774
 
      __pyx_6 = PyInt_FromLong(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1277; goto __pyx_L1;}
4775
 
      __pyx_8 = PyObject_GetItem(__pyx_10, __pyx_6); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1277; goto __pyx_L1;}
4776
 
      Py_DECREF(__pyx_10); __pyx_10 = 0;
4777
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
4778
 
      __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1277; goto __pyx_L1;}
4779
 
      Py_INCREF(Py_None);
4780
 
      PyTuple_SET_ITEM(__pyx_1, 0, Py_None);
4781
 
      PyTuple_SET_ITEM(__pyx_1, 1, __pyx_8);
4782
 
      __pyx_8 = 0;
4783
 
      __pyx_11 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1278; goto __pyx_L1;}
4784
 
      __pyx_9 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1279; goto __pyx_L1;}
4785
 
      __pyx_7 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1279; goto __pyx_L1;}
4786
 
      __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1279; goto __pyx_L1;}
4787
 
      PyTuple_SET_ITEM(__pyx_2, 0, __pyx_9);
4788
 
      PyTuple_SET_ITEM(__pyx_2, 1, __pyx_7);
4789
 
      __pyx_9 = 0;
4790
 
      __pyx_7 = 0;
4791
 
      __pyx_10 = PyTuple_New(2); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1280; goto __pyx_L1;}
4792
 
      Py_INCREF(Py_None);
4793
 
      PyTuple_SET_ITEM(__pyx_10, 0, Py_None);
4794
 
      Py_INCREF(__pyx_v_parent_id);
4795
 
      PyTuple_SET_ITEM(__pyx_10, 1, __pyx_v_parent_id);
4796
 
      __pyx_6 = PyInt_FromLong(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; goto __pyx_L1;}
4797
 
      __pyx_8 = PyObject_GetItem(__pyx_v_entry, __pyx_6); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; goto __pyx_L1;}
4798
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
4799
 
      __pyx_9 = PyInt_FromLong(1); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; goto __pyx_L1;}
4800
 
      __pyx_7 = PyObject_GetItem(__pyx_8, __pyx_9); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; goto __pyx_L1;}
4801
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
4802
 
      Py_DECREF(__pyx_9); __pyx_9 = 0;
4803
 
      __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; goto __pyx_L1;}
4804
 
      PyTuple_SET_ITEM(__pyx_6, 0, __pyx_7);
4805
 
      __pyx_7 = 0;
4806
 
      __pyx_8 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_6); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; goto __pyx_L1;}
4807
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
4808
 
      __pyx_9 = PyInt_FromLong(0); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; goto __pyx_L1;}
4809
 
      __pyx_7 = PyObject_GetItem(__pyx_8, __pyx_9); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; goto __pyx_L1;}
4810
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
4811
 
      Py_DECREF(__pyx_9); __pyx_9 = 0;
4812
 
      __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; goto __pyx_L1;}
4813
 
      Py_INCREF(Py_None);
4814
 
      PyTuple_SET_ITEM(__pyx_6, 0, Py_None);
4815
 
      PyTuple_SET_ITEM(__pyx_6, 1, __pyx_7);
4816
 
      __pyx_7 = 0;
4817
 
      __pyx_8 = PyInt_FromLong(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1282; goto __pyx_L1;}
4818
 
      __pyx_9 = PyObject_GetItem(__pyx_v_path_info, __pyx_8); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1282; goto __pyx_L1;}
4819
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
4820
 
      __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1282; goto __pyx_L1;}
4821
 
      Py_INCREF(Py_None);
4822
 
      PyTuple_SET_ITEM(__pyx_7, 0, Py_None);
4823
 
      PyTuple_SET_ITEM(__pyx_7, 1, __pyx_9);
4824
 
      __pyx_9 = 0;
4825
 
      __pyx_8 = PyTuple_New(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1283; goto __pyx_L1;}
4826
 
      Py_INCREF(Py_None);
4827
 
      PyTuple_SET_ITEM(__pyx_8, 0, Py_None);
4828
 
      Py_INCREF(__pyx_v_target_exec);
4829
 
      PyTuple_SET_ITEM(__pyx_8, 1, __pyx_v_target_exec);
4830
 
      __pyx_9 = PyTuple_New(8); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1276; goto __pyx_L1;}
4831
 
      PyTuple_SET_ITEM(__pyx_9, 0, __pyx_4);
4832
 
      PyTuple_SET_ITEM(__pyx_9, 1, __pyx_1);
4833
 
      PyTuple_SET_ITEM(__pyx_9, 2, __pyx_11);
4834
 
      PyTuple_SET_ITEM(__pyx_9, 3, __pyx_2);
4835
 
      PyTuple_SET_ITEM(__pyx_9, 4, __pyx_10);
4836
 
      PyTuple_SET_ITEM(__pyx_9, 5, __pyx_6);
4837
 
      PyTuple_SET_ITEM(__pyx_9, 6, __pyx_7);
4838
 
      PyTuple_SET_ITEM(__pyx_9, 7, __pyx_8);
4839
 
      __pyx_4 = 0;
4840
 
      __pyx_1 = 0;
4841
 
      __pyx_11 = 0;
4842
 
      __pyx_2 = 0;
4843
 
      __pyx_10 = 0;
4844
 
      __pyx_6 = 0;
4845
 
      __pyx_7 = 0;
4846
 
      __pyx_8 = 0;
4847
 
      __pyx_r = __pyx_9;
4848
 
      __pyx_9 = 0;
4849
 
      goto __pyx_L0;
4850
 
      goto __pyx_L36;
4851
 
    }
4852
 
    /*else*/ {
4853
 
      __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1286; goto __pyx_L1;}
4854
 
      __pyx_1 = PyObject_GetItem(__pyx_v_entry, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1286; goto __pyx_L1;}
4855
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
4856
 
      __pyx_11 = PyInt_FromLong(2); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1286; goto __pyx_L1;}
4857
 
      __pyx_2 = PyObject_GetItem(__pyx_1, __pyx_11); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1286; goto __pyx_L1;}
4858
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
4859
 
      Py_DECREF(__pyx_11); __pyx_11 = 0;
4860
 
      __pyx_10 = PyTuple_New(1); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1287; goto __pyx_L1;}
4861
 
      Py_INCREF(__pyx_v_path);
4862
 
      PyTuple_SET_ITEM(__pyx_10, 0, __pyx_v_path);
4863
 
      __pyx_6 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_10); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1287; goto __pyx_L1;}
4864
 
      Py_DECREF(__pyx_10); __pyx_10 = 0;
4865
 
      __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1287; goto __pyx_L1;}
4866
 
      __pyx_8 = PyObject_GetItem(__pyx_6, __pyx_7); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1287; goto __pyx_L1;}
4867
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
4868
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
4869
 
      __pyx_9 = PyTuple_New(2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1287; goto __pyx_L1;}
4870
 
      Py_INCREF(Py_None);
4871
 
      PyTuple_SET_ITEM(__pyx_9, 0, Py_None);
4872
 
      PyTuple_SET_ITEM(__pyx_9, 1, __pyx_8);
4873
 
      __pyx_8 = 0;
4874
 
      __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1288; goto __pyx_L1;}
4875
 
      __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1289; goto __pyx_L1;}
4876
 
      __pyx_11 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1289; goto __pyx_L1;}
4877
 
      __pyx_10 = PyTuple_New(2); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1289; goto __pyx_L1;}
4878
 
      PyTuple_SET_ITEM(__pyx_10, 0, __pyx_1);
4879
 
      PyTuple_SET_ITEM(__pyx_10, 1, __pyx_11);
4880
 
      __pyx_1 = 0;
4881
 
      __pyx_11 = 0;
4882
 
      __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1290; goto __pyx_L1;}
4883
 
      Py_INCREF(Py_None);
4884
 
      PyTuple_SET_ITEM(__pyx_6, 0, Py_None);
4885
 
      Py_INCREF(__pyx_v_parent_id);
4886
 
      PyTuple_SET_ITEM(__pyx_6, 1, __pyx_v_parent_id);
4887
 
      __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; goto __pyx_L1;}
4888
 
      __pyx_8 = PyObject_GetItem(__pyx_v_entry, __pyx_7); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; goto __pyx_L1;}
4889
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
4890
 
      __pyx_1 = PyInt_FromLong(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; goto __pyx_L1;}
4891
 
      __pyx_11 = PyObject_GetItem(__pyx_8, __pyx_1); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; goto __pyx_L1;}
4892
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
4893
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
4894
 
      __pyx_7 = PyTuple_New(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; goto __pyx_L1;}
4895
 
      PyTuple_SET_ITEM(__pyx_7, 0, __pyx_11);
4896
 
      __pyx_11 = 0;
4897
 
      __pyx_8 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_7); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; goto __pyx_L1;}
4898
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
4899
 
      __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; goto __pyx_L1;}
4900
 
      __pyx_11 = PyObject_GetItem(__pyx_8, __pyx_1); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; goto __pyx_L1;}
4901
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
4902
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
4903
 
      __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; goto __pyx_L1;}
4904
 
      Py_INCREF(Py_None);
4905
 
      PyTuple_SET_ITEM(__pyx_7, 0, Py_None);
4906
 
      PyTuple_SET_ITEM(__pyx_7, 1, __pyx_11);
4907
 
      __pyx_11 = 0;
4908
 
      __pyx_8 = PyTuple_New(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1292; goto __pyx_L1;}
4909
 
      Py_INCREF(Py_None);
4910
 
      PyTuple_SET_ITEM(__pyx_8, 0, Py_None);
4911
 
      Py_INCREF(Py_None);
4912
 
      PyTuple_SET_ITEM(__pyx_8, 1, Py_None);
4913
 
      __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1293; goto __pyx_L1;}
4914
 
      __pyx_11 = PyTuple_New(2); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1293; goto __pyx_L1;}
4915
 
      Py_INCREF(Py_None);
4916
 
      PyTuple_SET_ITEM(__pyx_11, 0, Py_None);
4917
 
      PyTuple_SET_ITEM(__pyx_11, 1, __pyx_1);
4918
 
      __pyx_1 = 0;
4919
 
      __pyx_1 = PyTuple_New(8); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1286; goto __pyx_L1;}
4920
 
      PyTuple_SET_ITEM(__pyx_1, 0, __pyx_2);
4921
 
      PyTuple_SET_ITEM(__pyx_1, 1, __pyx_9);
4922
 
      PyTuple_SET_ITEM(__pyx_1, 2, __pyx_4);
4923
 
      PyTuple_SET_ITEM(__pyx_1, 3, __pyx_10);
4924
 
      PyTuple_SET_ITEM(__pyx_1, 4, __pyx_6);
4925
 
      PyTuple_SET_ITEM(__pyx_1, 5, __pyx_7);
4926
 
      PyTuple_SET_ITEM(__pyx_1, 6, __pyx_8);
4927
 
      PyTuple_SET_ITEM(__pyx_1, 7, __pyx_11);
4928
 
      __pyx_2 = 0;
4929
 
      __pyx_9 = 0;
4930
 
      __pyx_4 = 0;
4931
 
      __pyx_10 = 0;
4932
 
      __pyx_6 = 0;
4933
 
      __pyx_7 = 0;
4934
 
      __pyx_8 = 0;
4935
 
      __pyx_11 = 0;
4936
 
      __pyx_r = __pyx_1;
4937
 
      __pyx_1 = 0;
4938
 
      goto __pyx_L0;
4939
 
    }
4940
 
    __pyx_L36:;
4941
 
    goto __pyx_L5;
4942
 
  }
4943
 
  __pyx_3 = __pyx_f_19_dirstate_helpers_c__versioned_minikind(__pyx_v_source_minikind);
4944
 
  if (__pyx_3) {
4945
 
    __pyx_3 = (__pyx_v_target_minikind == 'a');
4946
 
  }
4947
 
  if (__pyx_3) {
4948
 
 
4949
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1299 */
4950
 
    __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1299; goto __pyx_L1;}
4951
 
    __pyx_9 = PyObject_GetItem(__pyx_v_entry, __pyx_2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1299; goto __pyx_L1;}
4952
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
4953
 
    __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1299; goto __pyx_L1;}
4954
 
    __pyx_10 = PyObject_GetItem(__pyx_9, __pyx_4); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1299; goto __pyx_L1;}
4955
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
4956
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
4957
 
    __pyx_6 = PyInt_FromLong(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1299; goto __pyx_L1;}
4958
 
    __pyx_7 = PyObject_GetItem(__pyx_v_entry, __pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1299; goto __pyx_L1;}
4959
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
4960
 
    __pyx_8 = PyInt_FromLong(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1299; goto __pyx_L1;}
4961
 
    __pyx_11 = PyObject_GetItem(__pyx_7, __pyx_8); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1299; goto __pyx_L1;}
4962
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
4963
 
    Py_DECREF(__pyx_8); __pyx_8 = 0;
4964
 
    __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1299; goto __pyx_L1;}
4965
 
    PyTuple_SET_ITEM(__pyx_1, 0, __pyx_10);
4966
 
    PyTuple_SET_ITEM(__pyx_1, 1, __pyx_11);
4967
 
    __pyx_10 = 0;
4968
 
    __pyx_11 = 0;
4969
 
    __pyx_2 = PyObject_CallObject(__pyx_v_self->pathjoin, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1299; goto __pyx_L1;}
4970
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
4971
 
    Py_DECREF(__pyx_v_old_path);
4972
 
    __pyx_v_old_path = __pyx_2;
4973
 
    __pyx_2 = 0;
4974
 
 
4975
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1301 */
4976
 
    __pyx_9 = PyObject_GetAttr(__pyx_v_self->state, __pyx_n__get_entry); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;}
4977
 
    __pyx_4 = PyInt_FromLong(__pyx_v_self->source_index); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;}
4978
 
    __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;}
4979
 
    PyTuple_SET_ITEM(__pyx_6, 0, __pyx_4);
4980
 
    __pyx_4 = 0;
4981
 
    __pyx_7 = PyDict_New(); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;}
4982
 
    __pyx_8 = PyInt_FromLong(0); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;}
4983
 
    __pyx_10 = PyObject_GetItem(__pyx_v_entry, __pyx_8); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;}
4984
 
    Py_DECREF(__pyx_8); __pyx_8 = 0;
4985
 
    __pyx_11 = PyInt_FromLong(0); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;}
4986
 
    __pyx_1 = PyObject_GetItem(__pyx_10, __pyx_11); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;}
4987
 
    Py_DECREF(__pyx_10); __pyx_10 = 0;
4988
 
    Py_DECREF(__pyx_11); __pyx_11 = 0;
4989
 
    if (PyDict_SetItem(__pyx_7, __pyx_n_path_utf8, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;}
4990
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
4991
 
    __pyx_2 = PyEval_CallObjectWithKeywords(__pyx_9, __pyx_6, __pyx_7); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;}
4992
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
4993
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
4994
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
4995
 
    __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;}
4996
 
    __pyx_8 = PyObject_GetItem(__pyx_2, __pyx_4); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;}
4997
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
4998
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
4999
 
    __pyx_10 = PyInt_FromLong(2); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;}
5000
 
    __pyx_11 = PyObject_GetItem(__pyx_8, __pyx_10); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;}
5001
 
    Py_DECREF(__pyx_8); __pyx_8 = 0;
5002
 
    Py_DECREF(__pyx_10); __pyx_10 = 0;
5003
 
    Py_DECREF(__pyx_v_parent_id);
5004
 
    __pyx_v_parent_id = __pyx_11;
5005
 
    __pyx_11 = 0;
5006
 
 
5007
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1302 */
5008
 
    __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1302; goto __pyx_L1;}
5009
 
    __pyx_9 = PyObject_GetItem(__pyx_v_entry, __pyx_1); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1302; goto __pyx_L1;}
5010
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
5011
 
    __pyx_6 = PyInt_FromLong(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1302; goto __pyx_L1;}
5012
 
    __pyx_7 = PyObject_GetItem(__pyx_9, __pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1302; goto __pyx_L1;}
5013
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
5014
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
5015
 
    if (PyObject_Cmp(__pyx_v_parent_id, __pyx_7, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1302; goto __pyx_L1;}
5016
 
    __pyx_5 = __pyx_5 == 0;
5017
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
5018
 
    if (__pyx_5) {
5019
 
      Py_INCREF(Py_None);
5020
 
      Py_DECREF(__pyx_v_parent_id);
5021
 
      __pyx_v_parent_id = Py_None;
5022
 
      goto __pyx_L38;
5023
 
    }
5024
 
    __pyx_L38:;
5025
 
 
5026
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1304 */
5027
 
    __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1304; goto __pyx_L1;}
5028
 
    __pyx_4 = PyObject_GetItem(__pyx_v_entry, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1304; goto __pyx_L1;}
5029
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
5030
 
    __pyx_8 = PyInt_FromLong(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1304; goto __pyx_L1;}
5031
 
    __pyx_10 = PyObject_GetItem(__pyx_4, __pyx_8); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1304; goto __pyx_L1;}
5032
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
5033
 
    Py_DECREF(__pyx_8); __pyx_8 = 0;
5034
 
    __pyx_11 = PyTuple_New(1); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1305; goto __pyx_L1;}
5035
 
    Py_INCREF(__pyx_v_old_path);
5036
 
    PyTuple_SET_ITEM(__pyx_11, 0, __pyx_v_old_path);
5037
 
    __pyx_1 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_11); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1305; goto __pyx_L1;}
5038
 
    Py_DECREF(__pyx_11); __pyx_11 = 0;
5039
 
    __pyx_9 = PyInt_FromLong(0); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1305; goto __pyx_L1;}
5040
 
    __pyx_6 = PyObject_GetItem(__pyx_1, __pyx_9); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1305; goto __pyx_L1;}
5041
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
5042
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
5043
 
    __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1305; goto __pyx_L1;}
5044
 
    PyTuple_SET_ITEM(__pyx_7, 0, __pyx_6);
5045
 
    Py_INCREF(Py_None);
5046
 
    PyTuple_SET_ITEM(__pyx_7, 1, Py_None);
5047
 
    __pyx_6 = 0;
5048
 
    __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1306; goto __pyx_L1;}
5049
 
    __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1307; goto __pyx_L1;}
5050
 
    __pyx_8 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1307; goto __pyx_L1;}
5051
 
    __pyx_11 = PyTuple_New(2); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1307; goto __pyx_L1;}
5052
 
    PyTuple_SET_ITEM(__pyx_11, 0, __pyx_4);
5053
 
    PyTuple_SET_ITEM(__pyx_11, 1, __pyx_8);
5054
 
    __pyx_4 = 0;
5055
 
    __pyx_8 = 0;
5056
 
    __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1308; goto __pyx_L1;}
5057
 
    Py_INCREF(__pyx_v_parent_id);
5058
 
    PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_parent_id);
5059
 
    Py_INCREF(Py_None);
5060
 
    PyTuple_SET_ITEM(__pyx_1, 1, Py_None);
5061
 
    __pyx_9 = PyInt_FromLong(0); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1309; goto __pyx_L1;}
5062
 
    __pyx_6 = PyObject_GetItem(__pyx_v_entry, __pyx_9); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1309; goto __pyx_L1;}
5063
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
5064
 
    __pyx_4 = PyInt_FromLong(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1309; goto __pyx_L1;}
5065
 
    __pyx_8 = PyObject_GetItem(__pyx_6, __pyx_4); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1309; goto __pyx_L1;}
5066
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
5067
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
5068
 
    __pyx_9 = PyTuple_New(1); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1309; goto __pyx_L1;}
5069
 
    PyTuple_SET_ITEM(__pyx_9, 0, __pyx_8);
5070
 
    __pyx_8 = 0;
5071
 
    __pyx_6 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_9); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1309; goto __pyx_L1;}
5072
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
5073
 
    __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1309; goto __pyx_L1;}
5074
 
    __pyx_8 = PyObject_GetItem(__pyx_6, __pyx_4); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1309; goto __pyx_L1;}
5075
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
5076
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
5077
 
    __pyx_9 = PyTuple_New(2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1309; goto __pyx_L1;}
5078
 
    PyTuple_SET_ITEM(__pyx_9, 0, __pyx_8);
5079
 
    Py_INCREF(Py_None);
5080
 
    PyTuple_SET_ITEM(__pyx_9, 1, Py_None);
5081
 
    __pyx_8 = 0;
5082
 
    __pyx_6 = __pyx_f_19_dirstate_helpers_c__minikind_to_kind(__pyx_v_source_minikind); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1310; goto __pyx_L1;}
5083
 
    __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1310; goto __pyx_L1;}
5084
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_6);
5085
 
    Py_INCREF(Py_None);
5086
 
    PyTuple_SET_ITEM(__pyx_4, 1, Py_None);
5087
 
    __pyx_6 = 0;
5088
 
    __pyx_8 = PyInt_FromLong(3); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1311; goto __pyx_L1;}
5089
 
    __pyx_6 = PyObject_GetItem(__pyx_v_source_details, __pyx_8); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1311; goto __pyx_L1;}
5090
 
    Py_DECREF(__pyx_8); __pyx_8 = 0;
5091
 
    __pyx_8 = PyTuple_New(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1311; goto __pyx_L1;}
5092
 
    PyTuple_SET_ITEM(__pyx_8, 0, __pyx_6);
5093
 
    Py_INCREF(Py_None);
5094
 
    PyTuple_SET_ITEM(__pyx_8, 1, Py_None);
5095
 
    __pyx_6 = 0;
5096
 
    __pyx_6 = PyTuple_New(8); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1304; goto __pyx_L1;}
5097
 
    PyTuple_SET_ITEM(__pyx_6, 0, __pyx_10);
5098
 
    PyTuple_SET_ITEM(__pyx_6, 1, __pyx_7);
5099
 
    PyTuple_SET_ITEM(__pyx_6, 2, __pyx_2);
5100
 
    PyTuple_SET_ITEM(__pyx_6, 3, __pyx_11);
5101
 
    PyTuple_SET_ITEM(__pyx_6, 4, __pyx_1);
5102
 
    PyTuple_SET_ITEM(__pyx_6, 5, __pyx_9);
5103
 
    PyTuple_SET_ITEM(__pyx_6, 6, __pyx_4);
5104
 
    PyTuple_SET_ITEM(__pyx_6, 7, __pyx_8);
5105
 
    __pyx_10 = 0;
5106
 
    __pyx_7 = 0;
5107
 
    __pyx_2 = 0;
5108
 
    __pyx_11 = 0;
5109
 
    __pyx_1 = 0;
5110
 
    __pyx_9 = 0;
5111
 
    __pyx_4 = 0;
5112
 
    __pyx_8 = 0;
5113
 
    __pyx_r = __pyx_6;
5114
 
    __pyx_6 = 0;
5115
 
    goto __pyx_L0;
5116
 
    goto __pyx_L5;
5117
 
  }
5118
 
  __pyx_3 = __pyx_f_19_dirstate_helpers_c__versioned_minikind(__pyx_v_source_minikind);
5119
 
  if (__pyx_3) {
5120
 
    __pyx_3 = (__pyx_v_target_minikind == 'r');
5121
 
  }
5122
 
  if (__pyx_3) {
5123
 
    __pyx_10 = __Pyx_GetName(__pyx_m, __pyx_n_osutils); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1317; goto __pyx_L1;}
5124
 
    __pyx_7 = PyObject_GetAttr(__pyx_10, __pyx_n_is_inside_any); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1317; goto __pyx_L1;}
5125
 
    Py_DECREF(__pyx_10); __pyx_10 = 0;
5126
 
    __pyx_2 = PyInt_FromLong(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1317; goto __pyx_L1;}
5127
 
    __pyx_11 = PyObject_GetItem(__pyx_v_target_details, __pyx_2); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1317; goto __pyx_L1;}
5128
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
5129
 
    __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1317; goto __pyx_L1;}
5130
 
    Py_INCREF(__pyx_v_self->searched_specific_files);
5131
 
    PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self->searched_specific_files);
5132
 
    PyTuple_SET_ITEM(__pyx_1, 1, __pyx_11);
5133
 
    __pyx_11 = 0;
5134
 
    __pyx_9 = PyObject_CallObject(__pyx_7, __pyx_1); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1317; goto __pyx_L1;}
5135
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
5136
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
5137
 
    __pyx_5 = PyObject_IsTrue(__pyx_9); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1317; goto __pyx_L1;}
5138
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
5139
 
    __pyx_3 = (!__pyx_5);
5140
 
    if (__pyx_3) {
5141
 
      __pyx_4 = PyObject_GetAttr(__pyx_v_self->search_specific_files, __pyx_n_add); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1318; goto __pyx_L1;}
5142
 
      __pyx_8 = PyInt_FromLong(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1318; goto __pyx_L1;}
5143
 
      __pyx_6 = PyObject_GetItem(__pyx_v_target_details, __pyx_8); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1318; goto __pyx_L1;}
5144
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
5145
 
      __pyx_10 = PyTuple_New(1); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1318; goto __pyx_L1;}
5146
 
      PyTuple_SET_ITEM(__pyx_10, 0, __pyx_6);
5147
 
      __pyx_6 = 0;
5148
 
      __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_10); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1318; goto __pyx_L1;}
5149
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
5150
 
      Py_DECREF(__pyx_10); __pyx_10 = 0;
5151
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
5152
 
      goto __pyx_L39;
5153
 
    }
5154
 
    __pyx_L39:;
5155
 
    goto __pyx_L5;
5156
 
  }
5157
 
  __pyx_5 = (__pyx_v_source_minikind == 'r');
5158
 
  if (!__pyx_5) {
5159
 
    __pyx_5 = (__pyx_v_source_minikind == 'a');
5160
 
  }
5161
 
  if (__pyx_5) {
5162
 
    __pyx_5 = (__pyx_v_target_minikind == 'r');
5163
 
    if (!__pyx_5) {
5164
 
      __pyx_5 = (__pyx_v_target_minikind == 'a');
5165
 
    }
5166
 
  }
5167
 
  if (__pyx_5) {
5168
 
    goto __pyx_L5;
5169
 
  }
5170
 
  /*else*/ {
5171
 
    __pyx_11 = __Pyx_GetName(__pyx_b, __pyx_n_AssertionError); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1326; goto __pyx_L1;}
5172
 
    __pyx_7 = PyInt_FromLong(__pyx_v_source_minikind); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1328; goto __pyx_L1;}
5173
 
    __pyx_1 = PyInt_FromLong(__pyx_v_target_minikind); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1328; goto __pyx_L1;}
5174
 
    __pyx_9 = PyTuple_New(2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1328; goto __pyx_L1;}
5175
 
    PyTuple_SET_ITEM(__pyx_9, 0, __pyx_7);
5176
 
    PyTuple_SET_ITEM(__pyx_9, 1, __pyx_1);
5177
 
    __pyx_7 = 0;
5178
 
    __pyx_1 = 0;
5179
 
    __pyx_8 = PyNumber_Remainder(__pyx_k73p, __pyx_9); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1328; goto __pyx_L1;}
5180
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
5181
 
    __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1326; goto __pyx_L1;}
5182
 
    PyTuple_SET_ITEM(__pyx_6, 0, __pyx_8);
5183
 
    __pyx_8 = 0;
5184
 
    __pyx_4 = PyObject_CallObject(__pyx_11, __pyx_6); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1326; goto __pyx_L1;}
5185
 
    Py_DECREF(__pyx_11); __pyx_11 = 0;
5186
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
5187
 
    __Pyx_Raise(__pyx_4, 0, 0);
5188
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
5189
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1326; goto __pyx_L1;}
5190
 
  }
5191
 
  __pyx_L5:;
5192
 
 
5193
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1330 */
5194
 
  Py_INCREF(Py_None);
5195
 
  __pyx_r = Py_None;
5196
 
  goto __pyx_L0;
5197
 
 
5198
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
5199
 
  goto __pyx_L0;
5200
 
  __pyx_L1:;
5201
 
  Py_XDECREF(__pyx_1);
5202
 
  Py_XDECREF(__pyx_2);
5203
 
  Py_XDECREF(__pyx_4);
5204
 
  Py_XDECREF(__pyx_6);
5205
 
  Py_XDECREF(__pyx_7);
5206
 
  Py_XDECREF(__pyx_8);
5207
 
  Py_XDECREF(__pyx_9);
5208
 
  Py_XDECREF(__pyx_10);
5209
 
  Py_XDECREF(__pyx_11);
5210
 
  __Pyx_AddTraceback("_dirstate_helpers_c.ProcessEntryC._process_entry");
5211
 
  __pyx_r = 0;
5212
 
  __pyx_L0:;
5213
 
  Py_DECREF(__pyx_v_file_id);
5214
 
  Py_DECREF(__pyx_v_details_list);
5215
 
  Py_DECREF(__pyx_v_source_details);
5216
 
  Py_DECREF(__pyx_v_target_details);
5217
 
  Py_DECREF(__pyx_v_link_or_sha1);
5218
 
  Py_DECREF(__pyx_v_old_dirname);
5219
 
  Py_DECREF(__pyx_v_old_basename);
5220
 
  Py_DECREF(__pyx_v_old_path);
5221
 
  Py_DECREF(__pyx_v_path);
5222
 
  Py_DECREF(__pyx_v_old_entry);
5223
 
  Py_DECREF(__pyx_v_target_kind);
5224
 
  Py_DECREF(__pyx_v_target_exec);
5225
 
  Py_DECREF(__pyx_v_statvalue);
5226
 
  Py_DECREF(__pyx_v_source_parent_id);
5227
 
  Py_DECREF(__pyx_v_source_parent_entry);
5228
 
  Py_DECREF(__pyx_v_new_dirname);
5229
 
  Py_DECREF(__pyx_v_target_parent_id);
5230
 
  Py_DECREF(__pyx_v_target_parent_entry);
5231
 
  Py_DECREF(__pyx_v_source_exec);
5232
 
  Py_DECREF(__pyx_v_old_path_u);
5233
 
  Py_DECREF(__pyx_v_path_u);
5234
 
  Py_DECREF(__pyx_v_source_kind);
5235
 
  Py_DECREF(__pyx_v_parent_entry);
5236
 
  Py_DECREF(__pyx_v_parent_id);
5237
 
  Py_DECREF(__pyx_v_self);
5238
 
  Py_DECREF(__pyx_v_entry);
5239
 
  Py_DECREF(__pyx_v_path_info);
5240
 
  return __pyx_r;
5241
 
}
5242
 
 
5243
 
static PyObject *__pyx_f_19_dirstate_helpers_c_13ProcessEntryC___iter__(PyObject *__pyx_v_self); /*proto*/
5244
 
static PyObject *__pyx_f_19_dirstate_helpers_c_13ProcessEntryC___iter__(PyObject *__pyx_v_self) {
5245
 
  PyObject *__pyx_r;
5246
 
  Py_INCREF(__pyx_v_self);
5247
 
  Py_INCREF(__pyx_v_self);
5248
 
  __pyx_r = __pyx_v_self;
5249
 
  goto __pyx_L0;
5250
 
 
5251
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
5252
 
  __pyx_L0:;
5253
 
  Py_DECREF(__pyx_v_self);
5254
 
  return __pyx_r;
5255
 
}
5256
 
 
5257
 
static PyObject *__pyx_f_19_dirstate_helpers_c_13ProcessEntryC_iter_changes(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
5258
 
static PyObject *__pyx_f_19_dirstate_helpers_c_13ProcessEntryC_iter_changes(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5259
 
  PyObject *__pyx_r;
5260
 
  static char *__pyx_argnames[] = {0};
5261
 
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
5262
 
  Py_INCREF(__pyx_v_self);
5263
 
  Py_INCREF(__pyx_v_self);
5264
 
  __pyx_r = __pyx_v_self;
5265
 
  goto __pyx_L0;
5266
 
 
5267
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
5268
 
  __pyx_L0:;
5269
 
  Py_DECREF(__pyx_v_self);
5270
 
  return __pyx_r;
5271
 
}
5272
 
 
5273
 
static PyObject *__pyx_n_is_inside;
5274
 
 
5275
 
static void __pyx_f_19_dirstate_helpers_c_13ProcessEntryC__update_current_block(struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *__pyx_v_self) {
5276
 
  PyObject *__pyx_1 = 0;
5277
 
  PyObject *__pyx_2 = 0;
5278
 
  Py_ssize_t __pyx_3;
5279
 
  int __pyx_4;
5280
 
  PyObject *__pyx_5 = 0;
5281
 
  PyObject *__pyx_6 = 0;
5282
 
  PyObject *__pyx_7 = 0;
5283
 
  Py_INCREF(__pyx_v_self);
5284
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_self->state, __pyx_n__dirblocks); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1339; goto __pyx_L1;}
5285
 
  __pyx_3 = PyObject_Length(__pyx_2); if (__pyx_3 == -1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1339; goto __pyx_L1;}
5286
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
5287
 
  __pyx_1 = PyInt_FromLong((__pyx_v_self->block_index < __pyx_3)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1339; goto __pyx_L1;}
5288
 
  __pyx_4 = PyObject_IsTrue(__pyx_1); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1339; goto __pyx_L1;}
5289
 
  if (__pyx_4) {
5290
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
5291
 
    __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_osutils); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1340; goto __pyx_L1;}
5292
 
    __pyx_5 = PyObject_GetAttr(__pyx_2, __pyx_n_is_inside); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1340; goto __pyx_L1;}
5293
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
5294
 
    __pyx_2 = PyObject_GetAttr(__pyx_v_self->state, __pyx_n__dirblocks); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1340; goto __pyx_L1;}
5295
 
    __pyx_6 = PyInt_FromLong(__pyx_v_self->block_index); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1340; goto __pyx_L1;}
5296
 
    __pyx_7 = PyObject_GetItem(__pyx_2, __pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1340; goto __pyx_L1;}
5297
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
5298
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
5299
 
    __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1340; goto __pyx_L1;}
5300
 
    __pyx_6 = PyObject_GetItem(__pyx_7, __pyx_2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1340; goto __pyx_L1;}
5301
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
5302
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
5303
 
    __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1340; goto __pyx_L1;}
5304
 
    Py_INCREF(__pyx_v_self->current_root);
5305
 
    PyTuple_SET_ITEM(__pyx_7, 0, __pyx_v_self->current_root);
5306
 
    PyTuple_SET_ITEM(__pyx_7, 1, __pyx_6);
5307
 
    __pyx_6 = 0;
5308
 
    __pyx_1 = PyObject_CallObject(__pyx_5, __pyx_7); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1340; goto __pyx_L1;}
5309
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
5310
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
5311
 
  }
5312
 
  __pyx_4 = PyObject_IsTrue(__pyx_1); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1339; goto __pyx_L1;}
5313
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
5314
 
  if (__pyx_4) {
5315
 
 
5316
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1341 */
5317
 
    __pyx_2 = PyObject_GetAttr(__pyx_v_self->state, __pyx_n__dirblocks); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1341; goto __pyx_L1;}
5318
 
    __pyx_6 = PyInt_FromLong(__pyx_v_self->block_index); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1341; goto __pyx_L1;}
5319
 
    __pyx_5 = PyObject_GetItem(__pyx_2, __pyx_6); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1341; goto __pyx_L1;}
5320
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
5321
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
5322
 
    Py_DECREF(__pyx_v_self->current_block);
5323
 
    __pyx_v_self->current_block = __pyx_5;
5324
 
    __pyx_5 = 0;
5325
 
 
5326
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1342 */
5327
 
    __pyx_7 = PyInt_FromLong(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1342; goto __pyx_L1;}
5328
 
    __pyx_1 = PyObject_GetItem(__pyx_v_self->current_block, __pyx_7); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1342; goto __pyx_L1;}
5329
 
    Py_DECREF(__pyx_7); __pyx_7 = 0;
5330
 
    Py_DECREF(__pyx_v_self->current_block_list);
5331
 
    __pyx_v_self->current_block_list = __pyx_1;
5332
 
    __pyx_1 = 0;
5333
 
 
5334
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1343 */
5335
 
    __pyx_v_self->current_block_pos = 0;
5336
 
    goto __pyx_L2;
5337
 
  }
5338
 
  /*else*/ {
5339
 
 
5340
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1345 */
5341
 
    Py_INCREF(Py_None);
5342
 
    Py_DECREF(__pyx_v_self->current_block);
5343
 
    __pyx_v_self->current_block = Py_None;
5344
 
 
5345
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1346 */
5346
 
    Py_INCREF(Py_None);
5347
 
    Py_DECREF(__pyx_v_self->current_block_list);
5348
 
    __pyx_v_self->current_block_list = Py_None;
5349
 
  }
5350
 
  __pyx_L2:;
5351
 
 
5352
 
  goto __pyx_L0;
5353
 
  __pyx_L1:;
5354
 
  Py_XDECREF(__pyx_1);
5355
 
  Py_XDECREF(__pyx_2);
5356
 
  Py_XDECREF(__pyx_5);
5357
 
  Py_XDECREF(__pyx_6);
5358
 
  Py_XDECREF(__pyx_7);
5359
 
  __Pyx_WriteUnraisable("_dirstate_helpers_c.ProcessEntryC._update_current_block");
5360
 
  __pyx_L0:;
5361
 
  Py_DECREF(__pyx_v_self);
5362
 
}
5363
 
 
5364
 
static PyObject *__pyx_f_19_dirstate_helpers_c_13ProcessEntryC___next__(PyObject *__pyx_v_self); /*proto*/
5365
 
static PyObject *__pyx_f_19_dirstate_helpers_c_13ProcessEntryC___next__(PyObject *__pyx_v_self) {
5366
 
  PyObject *__pyx_r;
5367
 
  PyObject *__pyx_1 = 0;
5368
 
  Py_INCREF(__pyx_v_self);
5369
 
  __pyx_1 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *)((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)->__pyx_vtab)->_iter_next(((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1350; goto __pyx_L1;}
5370
 
  __pyx_r = __pyx_1;
5371
 
  __pyx_1 = 0;
5372
 
  goto __pyx_L0;
5373
 
 
5374
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
5375
 
  goto __pyx_L0;
5376
 
  __pyx_L1:;
5377
 
  Py_XDECREF(__pyx_1);
5378
 
  __Pyx_AddTraceback("_dirstate_helpers_c.ProcessEntryC.__next__");
5379
 
  __pyx_r = 0;
5380
 
  __pyx_L0:;
5381
 
  Py_DECREF(__pyx_v_self);
5382
 
  return __pyx_r;
5383
 
}
5384
 
 
5385
 
static PyObject *__pyx_n_pop;
5386
 
static PyObject *__pyx_n_StopIteration;
5387
 
static PyObject *__pyx_n_decode;
5388
 
static PyObject *__pyx_n_utf8;
5389
 
static PyObject *__pyx_n__entries_for_path;
5390
 
static PyObject *__pyx_n_abspath;
5391
 
static PyObject *__pyx_n_lstat;
5392
 
static PyObject *__pyx_n_OSError;
5393
 
static PyObject *__pyx_n_ENOENT;
5394
 
static PyObject *__pyx_n_file_kind_from_stat_mode;
5395
 
static PyObject *__pyx_n__directory_is_tree_reference;
5396
 
static PyObject *__pyx_n_S_ISREG;
5397
 
static PyObject *__pyx_n_S_IEXEC;
5398
 
static PyObject *__pyx_n__walkdirs_utf8;
5399
 
static PyObject *__pyx_n_prefix;
5400
 
static PyObject *__pyx_n_next;
5401
 
static PyObject *__pyx_n_ENOTDIR;
5402
 
static PyObject *__pyx_n_EINVAL;
5403
 
static PyObject *__pyx_n_platform;
5404
 
static PyObject *__pyx_n_win32;
5405
 
static PyObject *__pyx_n_winerror;
5406
 
static PyObject *__pyx_n_AttributeError;
5407
 
static PyObject *__pyx_n__find_block_index_from_key;
5408
 
 
5409
 
static PyObject *__pyx_k75p;
5410
 
static PyObject *__pyx_k77p;
5411
 
static PyObject *__pyx_k78p;
5412
 
static PyObject *__pyx_k81p;
5413
 
static PyObject *__pyx_k82p;
5414
 
static PyObject *__pyx_k83p;
5415
 
static PyObject *__pyx_k84p;
5416
 
static PyObject *__pyx_k85p;
5417
 
static PyObject *__pyx_k87p;
5418
 
static PyObject *__pyx_k89p;
5419
 
 
5420
 
static char __pyx_k75[] = "";
5421
 
static char __pyx_k77[] = "tree-reference";
5422
 
static char __pyx_k78[] = "tree-reference";
5423
 
static char __pyx_k81[] = "";
5424
 
static char __pyx_k82[] = ".bzr";
5425
 
static char __pyx_k83[] = ".bzr";
5426
 
static char __pyx_k84[] = "";
5427
 
static char __pyx_k85[] = "";
5428
 
static char __pyx_k87[] = "tree-reference";
5429
 
static char __pyx_k89[] = "tree-reference";
5430
 
 
5431
 
static PyObject *__pyx_f_19_dirstate_helpers_c_13ProcessEntryC__iter_next(struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *__pyx_v_self) {
5432
 
  PyObject *__pyx_v_current_dirname;
5433
 
  PyObject *__pyx_v_current_blockname;
5434
 
  char *__pyx_v_current_dirname_c;
5435
 
  char *__pyx_v_current_blockname_c;
5436
 
  int __pyx_v_path_handled;
5437
 
  PyObject *__pyx_v_uninteresting;
5438
 
  PyObject *__pyx_v_searched_specific_files;
5439
 
  PyObject *__pyx_v_entry;
5440
 
  PyObject *__pyx_v_result;
5441
 
  PyObject *__pyx_v_root_stat;
5442
 
  PyObject *__pyx_v_e;
5443
 
  PyObject *__pyx_v_new_executable;
5444
 
  PyObject *__pyx_v_e_winerror;
5445
 
  PyObject *__pyx_v_win_errors;
5446
 
  PyObject *__pyx_v_bzr_index;
5447
 
  PyObject *__pyx_v_initial_key;
5448
 
  PyObject *__pyx_v__;
5449
 
  PyObject *__pyx_v_current_path_info;
5450
 
  PyObject *__pyx_v_current_entry;
5451
 
  PyObject *__pyx_r;
5452
 
  int __pyx_1;
5453
 
  PyObject *__pyx_2 = 0;
5454
 
  PyObject *__pyx_3 = 0;
5455
 
  PyObject *__pyx_4 = 0;
5456
 
  PyObject *__pyx_5 = 0;
5457
 
  PyObject *__pyx_6 = 0;
5458
 
  Py_ssize_t __pyx_7;
5459
 
  PyObject *__pyx_8 = 0;
5460
 
  int __pyx_9;
5461
 
  PyObject *__pyx_10 = 0;
5462
 
  PyObject *__pyx_11 = 0;
5463
 
  Py_INCREF(__pyx_v_self);
5464
 
  __pyx_v_current_dirname = Py_None; Py_INCREF(Py_None);
5465
 
  __pyx_v_current_blockname = Py_None; Py_INCREF(Py_None);
5466
 
  __pyx_v_uninteresting = Py_None; Py_INCREF(Py_None);
5467
 
  __pyx_v_searched_specific_files = Py_None; Py_INCREF(Py_None);
5468
 
  __pyx_v_entry = Py_None; Py_INCREF(Py_None);
5469
 
  __pyx_v_result = Py_None; Py_INCREF(Py_None);
5470
 
  __pyx_v_root_stat = Py_None; Py_INCREF(Py_None);
5471
 
  __pyx_v_e = Py_None; Py_INCREF(Py_None);
5472
 
  __pyx_v_new_executable = Py_None; Py_INCREF(Py_None);
5473
 
  __pyx_v_e_winerror = Py_None; Py_INCREF(Py_None);
5474
 
  __pyx_v_win_errors = Py_None; Py_INCREF(Py_None);
5475
 
  __pyx_v_bzr_index = Py_None; Py_INCREF(Py_None);
5476
 
  __pyx_v_initial_key = Py_None; Py_INCREF(Py_None);
5477
 
  __pyx_v__ = Py_None; Py_INCREF(Py_None);
5478
 
  __pyx_v_current_path_info = Py_None; Py_INCREF(Py_None);
5479
 
  __pyx_v_current_entry = Py_None; Py_INCREF(Py_None);
5480
 
 
5481
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1404 */
5482
 
  Py_INCREF(__pyx_v_self->uninteresting);
5483
 
  Py_DECREF(__pyx_v_uninteresting);
5484
 
  __pyx_v_uninteresting = __pyx_v_self->uninteresting;
5485
 
 
5486
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1405 */
5487
 
  Py_INCREF(__pyx_v_self->searched_specific_files);
5488
 
  Py_DECREF(__pyx_v_searched_specific_files);
5489
 
  __pyx_v_searched_specific_files = __pyx_v_self->searched_specific_files;
5490
 
 
5491
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1407 */
5492
 
  while (1) {
5493
 
    __pyx_1 = (__pyx_v_self->root_entries_pos < __pyx_v_self->root_entries_len);
5494
 
    if (!__pyx_1) break;
5495
 
 
5496
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1408 */
5497
 
    __pyx_2 = PyInt_FromLong(__pyx_v_self->root_entries_pos); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1408; goto __pyx_L1;}
5498
 
    __pyx_3 = PyObject_GetItem(__pyx_v_self->root_entries, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1408; goto __pyx_L1;}
5499
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
5500
 
    Py_DECREF(__pyx_v_entry);
5501
 
    __pyx_v_entry = __pyx_3;
5502
 
    __pyx_3 = 0;
5503
 
 
5504
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1409 */
5505
 
    __pyx_v_self->root_entries_pos = (__pyx_v_self->root_entries_pos + 1);
5506
 
 
5507
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1410 */
5508
 
    __pyx_2 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self->__pyx_vtab)->_process_entry(__pyx_v_self,__pyx_v_entry,__pyx_v_self->root_dir_info); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1410; goto __pyx_L1;}
5509
 
    Py_DECREF(__pyx_v_result);
5510
 
    __pyx_v_result = __pyx_2;
5511
 
    __pyx_2 = 0;
5512
 
 
5513
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1411 */
5514
 
    __pyx_1 = __pyx_v_result != Py_None;
5515
 
    if (__pyx_1) {
5516
 
      __pyx_1 = __pyx_v_result != __pyx_v_self->uninteresting;
5517
 
    }
5518
 
    if (__pyx_1) {
5519
 
      Py_INCREF(__pyx_v_result);
5520
 
      __pyx_r = __pyx_v_result;
5521
 
      goto __pyx_L0;
5522
 
      goto __pyx_L4;
5523
 
    }
5524
 
    __pyx_L4:;
5525
 
  }
5526
 
 
5527
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1414 */
5528
 
  __pyx_1 = __pyx_v_self->current_root == Py_None;
5529
 
  if (__pyx_1) {
5530
 
 
5531
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1417 */
5532
 
    /*try:*/ {
5533
 
      __pyx_3 = PyObject_GetAttr(__pyx_v_self->search_specific_files, __pyx_n_pop); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1418; goto __pyx_L6;}
5534
 
      __pyx_2 = PyObject_CallObject(__pyx_3, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1418; goto __pyx_L6;}
5535
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
5536
 
      Py_DECREF(__pyx_v_self->current_root);
5537
 
      __pyx_v_self->current_root = __pyx_2;
5538
 
      __pyx_2 = 0;
5539
 
    }
5540
 
    goto __pyx_L7;
5541
 
    __pyx_L6:;
5542
 
    Py_XDECREF(__pyx_3); __pyx_3 = 0;
5543
 
    Py_XDECREF(__pyx_2); __pyx_2 = 0;
5544
 
 
5545
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1419 */
5546
 
    __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_KeyError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1419; goto __pyx_L1;}
5547
 
    __pyx_1 = PyErr_ExceptionMatches(__pyx_3);
5548
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
5549
 
    if (__pyx_1) {
5550
 
      __Pyx_AddTraceback("_dirstate_helpers_c._iter_next");
5551
 
      if (__Pyx_GetException(&__pyx_2, &__pyx_3, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1419; goto __pyx_L1;}
5552
 
      __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_StopIteration); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1420; goto __pyx_L1;}
5553
 
      __pyx_6 = PyObject_CallObject(__pyx_5, 0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1420; goto __pyx_L1;}
5554
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
5555
 
      __Pyx_Raise(__pyx_6, 0, 0);
5556
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
5557
 
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1420; goto __pyx_L1;}
5558
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
5559
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
5560
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
5561
 
      goto __pyx_L7;
5562
 
    }
5563
 
    goto __pyx_L1;
5564
 
    __pyx_L7:;
5565
 
 
5566
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1421 */
5567
 
    __pyx_5 = PyObject_GetAttr(__pyx_v_self->current_root, __pyx_n_decode); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1421; goto __pyx_L1;}
5568
 
    __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1421; goto __pyx_L1;}
5569
 
    Py_INCREF(__pyx_n_utf8);
5570
 
    PyTuple_SET_ITEM(__pyx_6, 0, __pyx_n_utf8);
5571
 
    __pyx_2 = PyObject_CallObject(__pyx_5, __pyx_6); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1421; goto __pyx_L1;}
5572
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
5573
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
5574
 
    Py_DECREF(__pyx_v_self->current_root_unicode);
5575
 
    __pyx_v_self->current_root_unicode = __pyx_2;
5576
 
    __pyx_2 = 0;
5577
 
 
5578
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1422 */
5579
 
    __pyx_3 = PyObject_GetAttr(__pyx_v_self->searched_specific_files, __pyx_n_add); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1422; goto __pyx_L1;}
5580
 
    __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1422; goto __pyx_L1;}
5581
 
    Py_INCREF(__pyx_v_self->current_root);
5582
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_self->current_root);
5583
 
    __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1422; goto __pyx_L1;}
5584
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
5585
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
5586
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
5587
 
 
5588
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1425 */
5589
 
    __pyx_6 = PyObject_GetAttr(__pyx_v_self->state, __pyx_n__entries_for_path); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1425; goto __pyx_L1;}
5590
 
    __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1425; goto __pyx_L1;}
5591
 
    Py_INCREF(__pyx_v_self->current_root);
5592
 
    PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_self->current_root);
5593
 
    __pyx_3 = PyObject_CallObject(__pyx_6, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1425; goto __pyx_L1;}
5594
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
5595
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
5596
 
    Py_DECREF(__pyx_v_self->root_entries);
5597
 
    __pyx_v_self->root_entries = __pyx_3;
5598
 
    __pyx_3 = 0;
5599
 
 
5600
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1426 */
5601
 
    __pyx_7 = PyObject_Length(__pyx_v_self->root_entries); if (__pyx_7 == -1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1426; goto __pyx_L1;}
5602
 
    __pyx_v_self->root_entries_len = __pyx_7;
5603
 
 
5604
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1427 */
5605
 
    __pyx_4 = PyObject_GetAttr(__pyx_v_self->tree, __pyx_n_abspath); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1427; goto __pyx_L1;}
5606
 
    __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1427; goto __pyx_L1;}
5607
 
    Py_INCREF(__pyx_v_self->current_root_unicode);
5608
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_self->current_root_unicode);
5609
 
    __pyx_6 = PyObject_CallObject(__pyx_4, __pyx_5); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1427; goto __pyx_L1;}
5610
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
5611
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
5612
 
    Py_DECREF(__pyx_v_self->root_abspath);
5613
 
    __pyx_v_self->root_abspath = __pyx_6;
5614
 
    __pyx_6 = 0;
5615
 
 
5616
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1428 */
5617
 
    /*try:*/ {
5618
 
      __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1429; goto __pyx_L8;}
5619
 
      __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_lstat); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1429; goto __pyx_L8;}
5620
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
5621
 
      __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1429; goto __pyx_L8;}
5622
 
      Py_INCREF(__pyx_v_self->root_abspath);
5623
 
      PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_self->root_abspath);
5624
 
      __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1429; goto __pyx_L8;}
5625
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
5626
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
5627
 
      Py_DECREF(__pyx_v_root_stat);
5628
 
      __pyx_v_root_stat = __pyx_5;
5629
 
      __pyx_5 = 0;
5630
 
    }
5631
 
    /*else:*/ {
5632
 
 
5633
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1438 */
5634
 
      __pyx_6 = __Pyx_GetName(__pyx_m, __pyx_n_osutils); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1439; goto __pyx_L1;}
5635
 
      __pyx_5 = PyObject_GetAttr(__pyx_6, __pyx_n_file_kind_from_stat_mode); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1439; goto __pyx_L1;}
5636
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
5637
 
      __pyx_8 = PyObject_GetAttr(__pyx_v_root_stat, __pyx_n_st_mode); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1439; goto __pyx_L1;}
5638
 
      __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1439; goto __pyx_L1;}
5639
 
      PyTuple_SET_ITEM(__pyx_2, 0, __pyx_8);
5640
 
      __pyx_8 = 0;
5641
 
      __pyx_3 = PyObject_CallObject(__pyx_5, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1439; goto __pyx_L1;}
5642
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
5643
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
5644
 
      __pyx_4 = PyTuple_New(5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1438; goto __pyx_L1;}
5645
 
      Py_INCREF(__pyx_k75p);
5646
 
      PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k75p);
5647
 
      Py_INCREF(__pyx_v_self->current_root);
5648
 
      PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_self->current_root);
5649
 
      PyTuple_SET_ITEM(__pyx_4, 2, __pyx_3);
5650
 
      Py_INCREF(__pyx_v_root_stat);
5651
 
      PyTuple_SET_ITEM(__pyx_4, 3, __pyx_v_root_stat);
5652
 
      Py_INCREF(__pyx_v_self->root_abspath);
5653
 
      PyTuple_SET_ITEM(__pyx_4, 4, __pyx_v_self->root_abspath);
5654
 
      __pyx_3 = 0;
5655
 
      Py_DECREF(__pyx_v_self->root_dir_info);
5656
 
      __pyx_v_self->root_dir_info = __pyx_4;
5657
 
      __pyx_4 = 0;
5658
 
 
5659
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1441 */
5660
 
      __pyx_6 = PyInt_FromLong(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1441; goto __pyx_L1;}
5661
 
      __pyx_8 = PyObject_GetItem(__pyx_v_self->root_dir_info, __pyx_6); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1441; goto __pyx_L1;}
5662
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
5663
 
      if (PyObject_Cmp(__pyx_8, __pyx_n_directory, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1441; goto __pyx_L1;}
5664
 
      __pyx_1 = __pyx_1 == 0;
5665
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
5666
 
      if (__pyx_1) {
5667
 
        __pyx_5 = PyObject_GetAttr(__pyx_v_self->tree, __pyx_n__directory_is_tree_reference); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1442; goto __pyx_L1;}
5668
 
        __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1442; goto __pyx_L1;}
5669
 
        Py_INCREF(__pyx_v_self->current_root_unicode);
5670
 
        PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_self->current_root_unicode);
5671
 
        __pyx_3 = PyObject_CallObject(__pyx_5, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1442; goto __pyx_L1;}
5672
 
        Py_DECREF(__pyx_5); __pyx_5 = 0;
5673
 
        Py_DECREF(__pyx_2); __pyx_2 = 0;
5674
 
        __pyx_1 = PyObject_IsTrue(__pyx_3); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1442; goto __pyx_L1;}
5675
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
5676
 
        if (__pyx_1) {
5677
 
          __pyx_4 = PySequence_GetSlice(__pyx_v_self->root_dir_info, 0, 2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1444; goto __pyx_L1;}
5678
 
          __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1445; goto __pyx_L1;}
5679
 
          Py_INCREF(__pyx_k77p);
5680
 
          PyTuple_SET_ITEM(__pyx_6, 0, __pyx_k77p);
5681
 
          __pyx_8 = PyNumber_Add(__pyx_4, __pyx_6); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1444; goto __pyx_L1;}
5682
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
5683
 
          Py_DECREF(__pyx_6); __pyx_6 = 0;
5684
 
          __pyx_5 = PySequence_GetSlice(__pyx_v_self->root_dir_info, 3, PY_SSIZE_T_MAX); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1445; goto __pyx_L1;}
5685
 
          __pyx_2 = PyNumber_Add(__pyx_8, __pyx_5); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1445; goto __pyx_L1;}
5686
 
          Py_DECREF(__pyx_8); __pyx_8 = 0;
5687
 
          Py_DECREF(__pyx_5); __pyx_5 = 0;
5688
 
          Py_DECREF(__pyx_v_self->root_dir_info);
5689
 
          __pyx_v_self->root_dir_info = __pyx_2;
5690
 
          __pyx_2 = 0;
5691
 
          goto __pyx_L11;
5692
 
        }
5693
 
        __pyx_L11:;
5694
 
        goto __pyx_L10;
5695
 
      }
5696
 
      __pyx_L10:;
5697
 
    }
5698
 
    goto __pyx_L9;
5699
 
    __pyx_L8:;
5700
 
    Py_XDECREF(__pyx_6); __pyx_6 = 0;
5701
 
    Py_XDECREF(__pyx_2); __pyx_2 = 0;
5702
 
    Py_XDECREF(__pyx_3); __pyx_3 = 0;
5703
 
    Py_XDECREF(__pyx_4); __pyx_4 = 0;
5704
 
    Py_XDECREF(__pyx_5); __pyx_5 = 0;
5705
 
 
5706
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1430 */
5707
 
    __pyx_6 = __Pyx_GetName(__pyx_b, __pyx_n_OSError); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1430; goto __pyx_L1;}
5708
 
    __pyx_1 = PyErr_ExceptionMatches(__pyx_6);
5709
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
5710
 
    if (__pyx_1) {
5711
 
      __Pyx_AddTraceback("_dirstate_helpers_c._iter_next");
5712
 
      if (__Pyx_GetException(&__pyx_2, &__pyx_3, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1430; goto __pyx_L1;}
5713
 
      Py_INCREF(__pyx_3);
5714
 
      Py_DECREF(__pyx_v_e);
5715
 
      __pyx_v_e = __pyx_3;
5716
 
      __pyx_5 = PyObject_GetAttr(__pyx_v_e, __pyx_n_errno); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1431; goto __pyx_L1;}
5717
 
      __pyx_6 = __Pyx_GetName(__pyx_m, __pyx_n_errno); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1431; goto __pyx_L1;}
5718
 
      __pyx_8 = PyObject_GetAttr(__pyx_6, __pyx_n_ENOENT); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1431; goto __pyx_L1;}
5719
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
5720
 
      if (PyObject_Cmp(__pyx_5, __pyx_8, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1431; goto __pyx_L1;}
5721
 
      __pyx_1 = __pyx_1 == 0;
5722
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
5723
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
5724
 
      if (__pyx_1) {
5725
 
        Py_INCREF(Py_None);
5726
 
        Py_DECREF(__pyx_v_self->root_dir_info);
5727
 
        __pyx_v_self->root_dir_info = Py_None;
5728
 
        goto __pyx_L12;
5729
 
      }
5730
 
      /*else*/ {
5731
 
        __Pyx_Raise(__pyx_2, __pyx_3, __pyx_4);
5732
 
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1436; goto __pyx_L1;}
5733
 
      }
5734
 
      __pyx_L12:;
5735
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
5736
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
5737
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
5738
 
      goto __pyx_L9;
5739
 
    }
5740
 
    goto __pyx_L1;
5741
 
    __pyx_L9:;
5742
 
 
5743
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1446 */
5744
 
    __pyx_9 = PyObject_IsTrue(__pyx_v_self->root_entries); if (__pyx_9 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1446; goto __pyx_L1;}
5745
 
    __pyx_1 = (!__pyx_9);
5746
 
    if (__pyx_1) {
5747
 
      __pyx_9 = PyObject_IsTrue(__pyx_v_self->root_dir_info); if (__pyx_9 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1446; goto __pyx_L1;}
5748
 
      __pyx_1 = (!__pyx_9);
5749
 
    }
5750
 
    if (__pyx_1) {
5751
 
      __pyx_3 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self->__pyx_vtab)->_iter_next(__pyx_v_self); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1450; goto __pyx_L1;}
5752
 
      __pyx_r = __pyx_3;
5753
 
      __pyx_3 = 0;
5754
 
      goto __pyx_L0;
5755
 
      goto __pyx_L13;
5756
 
    }
5757
 
    __pyx_L13:;
5758
 
 
5759
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1451 */
5760
 
    __pyx_v_path_handled = 0;
5761
 
 
5762
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1452 */
5763
 
    __pyx_v_self->root_entries_pos = 0;
5764
 
 
5765
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1457 */
5766
 
    while (1) {
5767
 
      __pyx_9 = (__pyx_v_self->root_entries_pos < __pyx_v_self->root_entries_len);
5768
 
      if (!__pyx_9) break;
5769
 
 
5770
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1458 */
5771
 
      __pyx_4 = PyInt_FromLong(__pyx_v_self->root_entries_pos); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1458; goto __pyx_L1;}
5772
 
      __pyx_6 = PyObject_GetItem(__pyx_v_self->root_entries, __pyx_4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1458; goto __pyx_L1;}
5773
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
5774
 
      Py_DECREF(__pyx_v_entry);
5775
 
      __pyx_v_entry = __pyx_6;
5776
 
      __pyx_6 = 0;
5777
 
 
5778
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1459 */
5779
 
      __pyx_v_self->root_entries_pos = (__pyx_v_self->root_entries_pos + 1);
5780
 
 
5781
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1460 */
5782
 
      __pyx_8 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self->__pyx_vtab)->_process_entry(__pyx_v_self,__pyx_v_entry,__pyx_v_self->root_dir_info); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1460; goto __pyx_L1;}
5783
 
      Py_DECREF(__pyx_v_result);
5784
 
      __pyx_v_result = __pyx_8;
5785
 
      __pyx_8 = 0;
5786
 
 
5787
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1461 */
5788
 
      __pyx_1 = __pyx_v_result != Py_None;
5789
 
      if (__pyx_1) {
5790
 
 
5791
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1462 */
5792
 
        __pyx_v_path_handled = (-1);
5793
 
 
5794
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1463 */
5795
 
        __pyx_9 = __pyx_v_result != __pyx_v_self->uninteresting;
5796
 
        if (__pyx_9) {
5797
 
          Py_INCREF(__pyx_v_result);
5798
 
          __pyx_r = __pyx_v_result;
5799
 
          goto __pyx_L0;
5800
 
          goto __pyx_L17;
5801
 
        }
5802
 
        __pyx_L17:;
5803
 
        goto __pyx_L16;
5804
 
      }
5805
 
      __pyx_L16:;
5806
 
    }
5807
 
 
5808
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1466 */
5809
 
    __pyx_5 = PyInt_FromLong(__pyx_v_self->want_unversioned); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1466; goto __pyx_L1;}
5810
 
    __pyx_1 = PyObject_IsTrue(__pyx_5); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1466; goto __pyx_L1;}
5811
 
    if (__pyx_1) {
5812
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
5813
 
      __pyx_5 = PyInt_FromLong((!__pyx_v_path_handled)); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1466; goto __pyx_L1;}
5814
 
      __pyx_9 = PyObject_IsTrue(__pyx_5); if (__pyx_9 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1466; goto __pyx_L1;}
5815
 
      if (__pyx_9) {
5816
 
        Py_DECREF(__pyx_5); __pyx_5 = 0;
5817
 
        __pyx_5 = __pyx_v_self->root_dir_info;
5818
 
        Py_INCREF(__pyx_5);
5819
 
      }
5820
 
    }
5821
 
    __pyx_1 = PyObject_IsTrue(__pyx_5); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1466; goto __pyx_L1;}
5822
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
5823
 
    if (__pyx_1) {
5824
 
 
5825
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1467 */
5826
 
      __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_bool); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1467; goto __pyx_L1;}
5827
 
      __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_stat); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1468; goto __pyx_L1;}
5828
 
      __pyx_6 = PyObject_GetAttr(__pyx_4, __pyx_n_S_ISREG); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1468; goto __pyx_L1;}
5829
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
5830
 
      __pyx_8 = PyInt_FromLong(3); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1468; goto __pyx_L1;}
5831
 
      __pyx_5 = PyObject_GetItem(__pyx_v_self->root_dir_info, __pyx_8); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1468; goto __pyx_L1;}
5832
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
5833
 
      __pyx_4 = PyObject_GetAttr(__pyx_5, __pyx_n_st_mode); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1468; goto __pyx_L1;}
5834
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
5835
 
      __pyx_8 = PyTuple_New(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1468; goto __pyx_L1;}
5836
 
      PyTuple_SET_ITEM(__pyx_8, 0, __pyx_4);
5837
 
      __pyx_4 = 0;
5838
 
      __pyx_3 = PyObject_CallObject(__pyx_6, __pyx_8); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1468; goto __pyx_L1;}
5839
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
5840
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
5841
 
      __pyx_9 = PyObject_IsTrue(__pyx_3); if (__pyx_9 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1469; goto __pyx_L1;}
5842
 
      if (__pyx_9) {
5843
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
5844
 
        __pyx_5 = __Pyx_GetName(__pyx_m, __pyx_n_stat); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1469; goto __pyx_L1;}
5845
 
        __pyx_4 = PyObject_GetAttr(__pyx_5, __pyx_n_S_IEXEC); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1469; goto __pyx_L1;}
5846
 
        Py_DECREF(__pyx_5); __pyx_5 = 0;
5847
 
        __pyx_6 = PyInt_FromLong(3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1469; goto __pyx_L1;}
5848
 
        __pyx_8 = PyObject_GetItem(__pyx_v_self->root_dir_info, __pyx_6); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1469; goto __pyx_L1;}
5849
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
5850
 
        __pyx_5 = PyObject_GetAttr(__pyx_8, __pyx_n_st_mode); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1469; goto __pyx_L1;}
5851
 
        Py_DECREF(__pyx_8); __pyx_8 = 0;
5852
 
        __pyx_3 = PyNumber_And(__pyx_4, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1469; goto __pyx_L1;}
5853
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
5854
 
        Py_DECREF(__pyx_5); __pyx_5 = 0;
5855
 
      }
5856
 
      __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1467; goto __pyx_L1;}
5857
 
      PyTuple_SET_ITEM(__pyx_6, 0, __pyx_3);
5858
 
      __pyx_3 = 0;
5859
 
      __pyx_8 = PyObject_CallObject(__pyx_2, __pyx_6); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1467; goto __pyx_L1;}
5860
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
5861
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
5862
 
      Py_DECREF(__pyx_v_new_executable);
5863
 
      __pyx_v_new_executable = __pyx_8;
5864
 
      __pyx_8 = 0;
5865
 
 
5866
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1470 */
5867
 
      __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1471; goto __pyx_L1;}
5868
 
      Py_INCREF(Py_None);
5869
 
      PyTuple_SET_ITEM(__pyx_4, 0, Py_None);
5870
 
      Py_INCREF(__pyx_v_self->current_root_unicode);
5871
 
      PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_self->current_root_unicode);
5872
 
      __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1472; goto __pyx_L1;}
5873
 
      __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1473; goto __pyx_L1;}
5874
 
      __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1473; goto __pyx_L1;}
5875
 
      __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1473; goto __pyx_L1;}
5876
 
      PyTuple_SET_ITEM(__pyx_6, 0, __pyx_3);
5877
 
      PyTuple_SET_ITEM(__pyx_6, 1, __pyx_2);
5878
 
      __pyx_3 = 0;
5879
 
      __pyx_2 = 0;
5880
 
      __pyx_8 = PyTuple_New(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1474; goto __pyx_L1;}
5881
 
      Py_INCREF(Py_None);
5882
 
      PyTuple_SET_ITEM(__pyx_8, 0, Py_None);
5883
 
      Py_INCREF(Py_None);
5884
 
      PyTuple_SET_ITEM(__pyx_8, 1, Py_None);
5885
 
      __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_splitpath); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1475; goto __pyx_L1;}
5886
 
      __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1475; goto __pyx_L1;}
5887
 
      Py_INCREF(__pyx_v_self->current_root_unicode);
5888
 
      PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_self->current_root_unicode);
5889
 
      __pyx_10 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1475; goto __pyx_L1;}
5890
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
5891
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
5892
 
      __pyx_3 = PyInt_FromLong((-1)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1475; goto __pyx_L1;}
5893
 
      __pyx_2 = PyObject_GetItem(__pyx_10, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1475; goto __pyx_L1;}
5894
 
      Py_DECREF(__pyx_10); __pyx_10 = 0;
5895
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
5896
 
      __pyx_10 = PyTuple_New(2); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1475; goto __pyx_L1;}
5897
 
      Py_INCREF(Py_None);
5898
 
      PyTuple_SET_ITEM(__pyx_10, 0, Py_None);
5899
 
      PyTuple_SET_ITEM(__pyx_10, 1, __pyx_2);
5900
 
      __pyx_2 = 0;
5901
 
      __pyx_3 = PyInt_FromLong(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1476; goto __pyx_L1;}
5902
 
      __pyx_2 = PyObject_GetItem(__pyx_v_self->root_dir_info, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1476; goto __pyx_L1;}
5903
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
5904
 
      __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1476; goto __pyx_L1;}
5905
 
      Py_INCREF(Py_None);
5906
 
      PyTuple_SET_ITEM(__pyx_3, 0, Py_None);
5907
 
      PyTuple_SET_ITEM(__pyx_3, 1, __pyx_2);
5908
 
      __pyx_2 = 0;
5909
 
      __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1477; goto __pyx_L1;}
5910
 
      Py_INCREF(Py_None);
5911
 
      PyTuple_SET_ITEM(__pyx_2, 0, Py_None);
5912
 
      Py_INCREF(__pyx_v_new_executable);
5913
 
      PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_new_executable);
5914
 
      __pyx_11 = PyTuple_New(8); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1470; goto __pyx_L1;}
5915
 
      Py_INCREF(Py_None);
5916
 
      PyTuple_SET_ITEM(__pyx_11, 0, Py_None);
5917
 
      PyTuple_SET_ITEM(__pyx_11, 1, __pyx_4);
5918
 
      PyTuple_SET_ITEM(__pyx_11, 2, __pyx_5);
5919
 
      PyTuple_SET_ITEM(__pyx_11, 3, __pyx_6);
5920
 
      PyTuple_SET_ITEM(__pyx_11, 4, __pyx_8);
5921
 
      PyTuple_SET_ITEM(__pyx_11, 5, __pyx_10);
5922
 
      PyTuple_SET_ITEM(__pyx_11, 6, __pyx_3);
5923
 
      PyTuple_SET_ITEM(__pyx_11, 7, __pyx_2);
5924
 
      __pyx_4 = 0;
5925
 
      __pyx_5 = 0;
5926
 
      __pyx_6 = 0;
5927
 
      __pyx_8 = 0;
5928
 
      __pyx_10 = 0;
5929
 
      __pyx_3 = 0;
5930
 
      __pyx_2 = 0;
5931
 
      __pyx_r = __pyx_11;
5932
 
      __pyx_11 = 0;
5933
 
      goto __pyx_L0;
5934
 
      goto __pyx_L18;
5935
 
    }
5936
 
    __pyx_L18:;
5937
 
    goto __pyx_L5;
5938
 
  }
5939
 
  __pyx_L5:;
5940
 
 
5941
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1481 */
5942
 
  __pyx_1 = __pyx_v_self->current_dir_info == Py_None;
5943
 
  if (__pyx_1) {
5944
 
    __pyx_1 = __pyx_v_self->current_block == Py_None;
5945
 
  }
5946
 
  if (__pyx_1) {
5947
 
 
5948
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1483 */
5949
 
    Py_INCREF(Py_None);
5950
 
    Py_DECREF(__pyx_v_self->current_dir_list);
5951
 
    __pyx_v_self->current_dir_list = Py_None;
5952
 
 
5953
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1484 */
5954
 
    __pyx_4 = __pyx_v_self->root_dir_info;
5955
 
    Py_INCREF(__pyx_4);
5956
 
    __pyx_9 = PyObject_IsTrue(__pyx_4); if (__pyx_9 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1484; goto __pyx_L1;}
5957
 
    if (__pyx_9) {
5958
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
5959
 
      __pyx_5 = PyInt_FromLong(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1484; goto __pyx_L1;}
5960
 
      __pyx_6 = PyObject_GetItem(__pyx_v_self->root_dir_info, __pyx_5); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1484; goto __pyx_L1;}
5961
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
5962
 
      if (PyObject_Cmp(__pyx_6, __pyx_k78p, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1484; goto __pyx_L1;}
5963
 
      __pyx_1 = __pyx_1 == 0;
5964
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
5965
 
      __pyx_4 = PyInt_FromLong(__pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1484; goto __pyx_L1;}
5966
 
    }
5967
 
    __pyx_9 = PyObject_IsTrue(__pyx_4); if (__pyx_9 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1484; goto __pyx_L1;}
5968
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
5969
 
    if (__pyx_9) {
5970
 
      Py_INCREF(Py_None);
5971
 
      Py_DECREF(__pyx_v_self->current_dir_info);
5972
 
      __pyx_v_self->current_dir_info = Py_None;
5973
 
      goto __pyx_L20;
5974
 
    }
5975
 
    /*else*/ {
5976
 
 
5977
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1487 */
5978
 
      __pyx_8 = __Pyx_GetName(__pyx_m, __pyx_n_osutils); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1487; goto __pyx_L1;}
5979
 
      __pyx_10 = PyObject_GetAttr(__pyx_8, __pyx_n__walkdirs_utf8); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1487; goto __pyx_L1;}
5980
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
5981
 
      __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1487; goto __pyx_L1;}
5982
 
      Py_INCREF(__pyx_v_self->root_abspath);
5983
 
      PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_self->root_abspath);
5984
 
      __pyx_2 = PyDict_New(); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1487; goto __pyx_L1;}
5985
 
      if (PyDict_SetItem(__pyx_2, __pyx_n_prefix, __pyx_v_self->current_root) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1487; goto __pyx_L1;}
5986
 
      __pyx_11 = PyEval_CallObjectWithKeywords(__pyx_10, __pyx_3, __pyx_2); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1487; goto __pyx_L1;}
5987
 
      Py_DECREF(__pyx_10); __pyx_10 = 0;
5988
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
5989
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
5990
 
      Py_DECREF(__pyx_v_self->dir_iterator);
5991
 
      __pyx_v_self->dir_iterator = __pyx_11;
5992
 
      __pyx_11 = 0;
5993
 
 
5994
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1489 */
5995
 
      __pyx_v_self->path_index = 0;
5996
 
 
5997
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1490 */
5998
 
      /*try:*/ {
5999
 
 
6000
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1491 */
6001
 
        __pyx_5 = PyObject_GetAttr(__pyx_v_self->dir_iterator, __pyx_n_next); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1491; goto __pyx_L21;}
6002
 
        __pyx_6 = PyObject_CallObject(__pyx_5, 0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1491; goto __pyx_L21;}
6003
 
        Py_DECREF(__pyx_5); __pyx_5 = 0;
6004
 
        Py_DECREF(__pyx_v_self->current_dir_info);
6005
 
        __pyx_v_self->current_dir_info = __pyx_6;
6006
 
        __pyx_6 = 0;
6007
 
 
6008
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1492 */
6009
 
        __pyx_4 = PyInt_FromLong(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1492; goto __pyx_L21;}
6010
 
        __pyx_8 = PyObject_GetItem(__pyx_v_self->current_dir_info, __pyx_4); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1492; goto __pyx_L21;}
6011
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
6012
 
        Py_DECREF(__pyx_v_self->current_dir_list);
6013
 
        __pyx_v_self->current_dir_list = __pyx_8;
6014
 
        __pyx_8 = 0;
6015
 
      }
6016
 
      /*else:*/ {
6017
 
        __pyx_10 = PyInt_FromLong(0); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1516; goto __pyx_L1;}
6018
 
        __pyx_8 = PyObject_GetItem(__pyx_v_self->current_dir_info, __pyx_10); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1516; goto __pyx_L1;}
6019
 
        Py_DECREF(__pyx_10); __pyx_10 = 0;
6020
 
        __pyx_5 = PyInt_FromLong(0); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1516; goto __pyx_L1;}
6021
 
        __pyx_6 = PyObject_GetItem(__pyx_8, __pyx_5); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1516; goto __pyx_L1;}
6022
 
        Py_DECREF(__pyx_8); __pyx_8 = 0;
6023
 
        Py_DECREF(__pyx_5); __pyx_5 = 0;
6024
 
        if (PyObject_Cmp(__pyx_6, __pyx_k81p, &__pyx_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1516; goto __pyx_L1;}
6025
 
        __pyx_9 = __pyx_9 == 0;
6026
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
6027
 
        if (__pyx_9) {
6028
 
 
6029
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1518 */
6030
 
          __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1518; goto __pyx_L1;}
6031
 
          Py_INCREF(__pyx_k82p);
6032
 
          PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k82p);
6033
 
          __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1518; goto __pyx_L1;}
6034
 
          Py_INCREF(__pyx_v_self->current_dir_list);
6035
 
          PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_self->current_dir_list);
6036
 
          PyTuple_SET_ITEM(__pyx_3, 1, __pyx_4);
6037
 
          __pyx_4 = 0;
6038
 
          __pyx_2 = PyObject_CallObject(__pyx_v_self->bisect_left, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1518; goto __pyx_L1;}
6039
 
          Py_DECREF(__pyx_3); __pyx_3 = 0;
6040
 
          Py_DECREF(__pyx_v_bzr_index);
6041
 
          __pyx_v_bzr_index = __pyx_2;
6042
 
          __pyx_2 = 0;
6043
 
 
6044
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1519 */
6045
 
          __pyx_11 = PyObject_GetItem(__pyx_v_self->current_dir_list, __pyx_v_bzr_index); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1519; goto __pyx_L1;}
6046
 
          __pyx_10 = PyInt_FromLong(0); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1519; goto __pyx_L1;}
6047
 
          __pyx_8 = PyObject_GetItem(__pyx_11, __pyx_10); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1519; goto __pyx_L1;}
6048
 
          Py_DECREF(__pyx_11); __pyx_11 = 0;
6049
 
          Py_DECREF(__pyx_10); __pyx_10 = 0;
6050
 
          if (PyObject_Cmp(__pyx_8, __pyx_k83p, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1519; goto __pyx_L1;}
6051
 
          __pyx_1 = __pyx_1 != 0;
6052
 
          Py_DECREF(__pyx_8); __pyx_8 = 0;
6053
 
          if (__pyx_1) {
6054
 
            __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_AssertionError); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1520; goto __pyx_L1;}
6055
 
            __pyx_6 = PyObject_CallObject(__pyx_5, 0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1520; goto __pyx_L1;}
6056
 
            Py_DECREF(__pyx_5); __pyx_5 = 0;
6057
 
            __Pyx_Raise(__pyx_6, 0, 0);
6058
 
            Py_DECREF(__pyx_6); __pyx_6 = 0;
6059
 
            {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1520; goto __pyx_L1;}
6060
 
            goto __pyx_L24;
6061
 
          }
6062
 
          __pyx_L24:;
6063
 
 
6064
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1521 */
6065
 
          if (PyObject_DelItem(__pyx_v_self->current_dir_list, __pyx_v_bzr_index) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1521; goto __pyx_L1;}
6066
 
          goto __pyx_L23;
6067
 
        }
6068
 
        __pyx_L23:;
6069
 
      }
6070
 
      goto __pyx_L22;
6071
 
      __pyx_L21:;
6072
 
      Py_XDECREF(__pyx_10); __pyx_10 = 0;
6073
 
      Py_XDECREF(__pyx_3); __pyx_3 = 0;
6074
 
      Py_XDECREF(__pyx_2); __pyx_2 = 0;
6075
 
      Py_XDECREF(__pyx_11); __pyx_11 = 0;
6076
 
      Py_XDECREF(__pyx_5); __pyx_5 = 0;
6077
 
      Py_XDECREF(__pyx_6); __pyx_6 = 0;
6078
 
      Py_XDECREF(__pyx_4); __pyx_4 = 0;
6079
 
      Py_XDECREF(__pyx_8); __pyx_8 = 0;
6080
 
 
6081
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1493 */
6082
 
      __pyx_10 = __Pyx_GetName(__pyx_b, __pyx_n_OSError); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1493; goto __pyx_L1;}
6083
 
      __pyx_1 = PyErr_ExceptionMatches(__pyx_10);
6084
 
      Py_DECREF(__pyx_10); __pyx_10 = 0;
6085
 
      if (__pyx_1) {
6086
 
        __Pyx_AddTraceback("_dirstate_helpers_c._iter_next");
6087
 
        if (__Pyx_GetException(&__pyx_3, &__pyx_2, &__pyx_11) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1493; goto __pyx_L1;}
6088
 
        Py_INCREF(__pyx_2);
6089
 
        Py_DECREF(__pyx_v_e);
6090
 
        __pyx_v_e = __pyx_2;
6091
 
        __pyx_5 = PyObject_GetAttr(__pyx_v_e, __pyx_n_errno); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1497; goto __pyx_L1;}
6092
 
        __pyx_6 = __Pyx_GetName(__pyx_m, __pyx_n_errno); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1497; goto __pyx_L1;}
6093
 
        __pyx_4 = PyObject_GetAttr(__pyx_6, __pyx_n_ENOENT); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1497; goto __pyx_L1;}
6094
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
6095
 
        __pyx_8 = __Pyx_GetName(__pyx_m, __pyx_n_errno); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1497; goto __pyx_L1;}
6096
 
        __pyx_10 = PyObject_GetAttr(__pyx_8, __pyx_n_ENOTDIR); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1497; goto __pyx_L1;}
6097
 
        Py_DECREF(__pyx_8); __pyx_8 = 0;
6098
 
        __pyx_6 = __Pyx_GetName(__pyx_m, __pyx_n_errno); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1497; goto __pyx_L1;}
6099
 
        __pyx_8 = PyObject_GetAttr(__pyx_6, __pyx_n_EINVAL); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1497; goto __pyx_L1;}
6100
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
6101
 
        __pyx_6 = PyTuple_New(3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1497; goto __pyx_L1;}
6102
 
        PyTuple_SET_ITEM(__pyx_6, 0, __pyx_4);
6103
 
        PyTuple_SET_ITEM(__pyx_6, 1, __pyx_10);
6104
 
        PyTuple_SET_ITEM(__pyx_6, 2, __pyx_8);
6105
 
        __pyx_4 = 0;
6106
 
        __pyx_10 = 0;
6107
 
        __pyx_8 = 0;
6108
 
        __pyx_9 = PySequence_Contains(__pyx_6, __pyx_5); if (__pyx_9 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1497; goto __pyx_L1;}
6109
 
        Py_DECREF(__pyx_5); __pyx_5 = 0;
6110
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
6111
 
        if (__pyx_9) {
6112
 
          Py_INCREF(Py_None);
6113
 
          Py_DECREF(__pyx_v_self->current_dir_info);
6114
 
          __pyx_v_self->current_dir_info = Py_None;
6115
 
          goto __pyx_L25;
6116
 
        }
6117
 
        __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_sys); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1499; goto __pyx_L1;}
6118
 
        __pyx_10 = PyObject_GetAttr(__pyx_4, __pyx_n_platform); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1499; goto __pyx_L1;}
6119
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
6120
 
        if (PyObject_Cmp(__pyx_10, __pyx_n_win32, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1499; goto __pyx_L1;}
6121
 
        __pyx_1 = __pyx_1 == 0;
6122
 
        Py_DECREF(__pyx_10); __pyx_10 = 0;
6123
 
        if (__pyx_1) {
6124
 
 
6125
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1503 */
6126
 
          /*try:*/ {
6127
 
            __pyx_8 = PyObject_GetAttr(__pyx_v_e, __pyx_n_winerror); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1504; goto __pyx_L26;}
6128
 
            Py_DECREF(__pyx_v_e_winerror);
6129
 
            __pyx_v_e_winerror = __pyx_8;
6130
 
            __pyx_8 = 0;
6131
 
          }
6132
 
          goto __pyx_L27;
6133
 
          __pyx_L26:;
6134
 
          Py_XDECREF(__pyx_5); __pyx_5 = 0;
6135
 
          Py_XDECREF(__pyx_6); __pyx_6 = 0;
6136
 
          Py_XDECREF(__pyx_4); __pyx_4 = 0;
6137
 
          Py_XDECREF(__pyx_10); __pyx_10 = 0;
6138
 
          Py_XDECREF(__pyx_8); __pyx_8 = 0;
6139
 
 
6140
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1505 */
6141
 
          __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_AttributeError); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1505; goto __pyx_L1;}
6142
 
          __pyx_9 = PyErr_ExceptionMatches(__pyx_5);
6143
 
          Py_DECREF(__pyx_5); __pyx_5 = 0;
6144
 
          if (__pyx_9) {
6145
 
            __Pyx_AddTraceback("_dirstate_helpers_c._iter_next");
6146
 
            if (__Pyx_GetException(&__pyx_6, &__pyx_4, &__pyx_10) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1505; goto __pyx_L1;}
6147
 
            Py_INCREF(Py_None);
6148
 
            Py_DECREF(__pyx_v_e_winerror);
6149
 
            __pyx_v_e_winerror = Py_None;
6150
 
            Py_DECREF(__pyx_6); __pyx_6 = 0;
6151
 
            Py_DECREF(__pyx_4); __pyx_4 = 0;
6152
 
            Py_DECREF(__pyx_10); __pyx_10 = 0;
6153
 
            goto __pyx_L27;
6154
 
          }
6155
 
          goto __pyx_L1;
6156
 
          __pyx_L27:;
6157
 
 
6158
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1507 */
6159
 
          __pyx_8 = PyInt_FromLong(__pyx_v_19_dirstate_helpers_c_ERROR_DIRECTORY); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1507; goto __pyx_L1;}
6160
 
          __pyx_5 = PyInt_FromLong(__pyx_v_19_dirstate_helpers_c_ERROR_PATH_NOT_FOUND); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1507; goto __pyx_L1;}
6161
 
          __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1507; goto __pyx_L1;}
6162
 
          PyTuple_SET_ITEM(__pyx_6, 0, __pyx_8);
6163
 
          PyTuple_SET_ITEM(__pyx_6, 1, __pyx_5);
6164
 
          __pyx_8 = 0;
6165
 
          __pyx_5 = 0;
6166
 
          Py_DECREF(__pyx_v_win_errors);
6167
 
          __pyx_v_win_errors = __pyx_6;
6168
 
          __pyx_6 = 0;
6169
 
 
6170
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1508 */
6171
 
          __pyx_4 = PyObject_GetAttr(__pyx_v_e, __pyx_n_errno); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1508; goto __pyx_L1;}
6172
 
          __pyx_1 = PySequence_Contains(__pyx_v_win_errors, __pyx_4); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1508; goto __pyx_L1;}
6173
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
6174
 
          if (!__pyx_1) {
6175
 
            __pyx_1 = PySequence_Contains(__pyx_v_win_errors, __pyx_v_e_winerror); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1508; goto __pyx_L1;}
6176
 
          }
6177
 
          if (__pyx_1) {
6178
 
            Py_INCREF(Py_None);
6179
 
            Py_DECREF(__pyx_v_self->current_dir_info);
6180
 
            __pyx_v_self->current_dir_info = Py_None;
6181
 
            goto __pyx_L28;
6182
 
          }
6183
 
          /*else*/ {
6184
 
            __Pyx_Raise(__pyx_3, __pyx_2, __pyx_11);
6185
 
            {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1512; goto __pyx_L1;}
6186
 
          }
6187
 
          __pyx_L28:;
6188
 
          goto __pyx_L25;
6189
 
        }
6190
 
        /*else*/ {
6191
 
          __Pyx_Raise(__pyx_3, __pyx_2, __pyx_11);
6192
 
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1514; goto __pyx_L1;}
6193
 
        }
6194
 
        __pyx_L25:;
6195
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
6196
 
        Py_DECREF(__pyx_2); __pyx_2 = 0;
6197
 
        Py_DECREF(__pyx_11); __pyx_11 = 0;
6198
 
        goto __pyx_L22;
6199
 
      }
6200
 
      goto __pyx_L1;
6201
 
      __pyx_L22:;
6202
 
    }
6203
 
    __pyx_L20:;
6204
 
 
6205
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1522 */
6206
 
    __pyx_4 = PyTuple_New(3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1522; goto __pyx_L1;}
6207
 
    Py_INCREF(__pyx_v_self->current_root);
6208
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_self->current_root);
6209
 
    Py_INCREF(__pyx_k84p);
6210
 
    PyTuple_SET_ITEM(__pyx_4, 1, __pyx_k84p);
6211
 
    Py_INCREF(__pyx_k85p);
6212
 
    PyTuple_SET_ITEM(__pyx_4, 2, __pyx_k85p);
6213
 
    Py_DECREF(__pyx_v_initial_key);
6214
 
    __pyx_v_initial_key = __pyx_4;
6215
 
    __pyx_4 = 0;
6216
 
 
6217
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1523 */
6218
 
    __pyx_3 = PyObject_GetAttr(__pyx_v_self->state, __pyx_n__find_block_index_from_key); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1523; goto __pyx_L1;}
6219
 
    __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1523; goto __pyx_L1;}
6220
 
    Py_INCREF(__pyx_v_initial_key);
6221
 
    PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_initial_key);
6222
 
    __pyx_11 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1523; goto __pyx_L1;}
6223
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
6224
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
6225
 
    __pyx_10 = PyObject_GetIter(__pyx_11); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1523; goto __pyx_L1;}
6226
 
    Py_DECREF(__pyx_11); __pyx_11 = 0;
6227
 
    __pyx_8 = __Pyx_UnpackItem(__pyx_10); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1523; goto __pyx_L1;}
6228
 
    __pyx_9 = PyInt_AsLong(__pyx_8); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1523; goto __pyx_L1;}
6229
 
    Py_DECREF(__pyx_8); __pyx_8 = 0;
6230
 
    __pyx_v_self->block_index = __pyx_9;
6231
 
    __pyx_5 = __Pyx_UnpackItem(__pyx_10); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1523; goto __pyx_L1;}
6232
 
    Py_DECREF(__pyx_v__);
6233
 
    __pyx_v__ = __pyx_5;
6234
 
    __pyx_5 = 0;
6235
 
    if (__Pyx_EndUnpack(__pyx_10) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1523; goto __pyx_L1;}
6236
 
    Py_DECREF(__pyx_10); __pyx_10 = 0;
6237
 
 
6238
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1524 */
6239
 
    __pyx_1 = (__pyx_v_self->block_index == 0);
6240
 
    if (__pyx_1) {
6241
 
      __pyx_v_self->block_index = (__pyx_v_self->block_index + 1);
6242
 
      goto __pyx_L29;
6243
 
    }
6244
 
    __pyx_L29:;
6245
 
 
6246
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1528 */
6247
 
    ((struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self->__pyx_vtab)->_update_current_block(__pyx_v_self);
6248
 
    goto __pyx_L19;
6249
 
  }
6250
 
  __pyx_L19:;
6251
 
 
6252
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1531 */
6253
 
  while (1) {
6254
 
    __pyx_9 = __pyx_v_self->current_dir_info != Py_None;
6255
 
    if (!__pyx_9) {
6256
 
      __pyx_9 = __pyx_v_self->current_block != Py_None;
6257
 
    }
6258
 
    if (!__pyx_9) break;
6259
 
 
6260
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1534 */
6261
 
    __pyx_6 = __pyx_v_self->current_dir_info;
6262
 
    Py_INCREF(__pyx_6);
6263
 
    __pyx_1 = PyObject_IsTrue(__pyx_6); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1534; goto __pyx_L1;}
6264
 
    if (__pyx_1) {
6265
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
6266
 
      __pyx_6 = __pyx_v_self->current_block;
6267
 
      Py_INCREF(__pyx_6);
6268
 
      __pyx_9 = PyObject_IsTrue(__pyx_6); if (__pyx_9 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1535; goto __pyx_L1;}
6269
 
      if (__pyx_9) {
6270
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
6271
 
        __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1535; goto __pyx_L1;}
6272
 
        __pyx_3 = PyObject_GetItem(__pyx_v_self->current_dir_info, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1535; goto __pyx_L1;}
6273
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
6274
 
        __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1535; goto __pyx_L1;}
6275
 
        __pyx_11 = PyObject_GetItem(__pyx_3, __pyx_2); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1535; goto __pyx_L1;}
6276
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
6277
 
        Py_DECREF(__pyx_2); __pyx_2 = 0;
6278
 
        __pyx_8 = PyInt_FromLong(0); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1535; goto __pyx_L1;}
6279
 
        __pyx_5 = PyObject_GetItem(__pyx_v_self->current_block, __pyx_8); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1535; goto __pyx_L1;}
6280
 
        Py_DECREF(__pyx_8); __pyx_8 = 0;
6281
 
        if (PyObject_Cmp(__pyx_11, __pyx_5, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1535; goto __pyx_L1;}
6282
 
        __pyx_1 = __pyx_1 != 0;
6283
 
        Py_DECREF(__pyx_11); __pyx_11 = 0;
6284
 
        Py_DECREF(__pyx_5); __pyx_5 = 0;
6285
 
        __pyx_6 = PyInt_FromLong(__pyx_1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1535; goto __pyx_L1;}
6286
 
      }
6287
 
    }
6288
 
    __pyx_9 = PyObject_IsTrue(__pyx_6); if (__pyx_9 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1534; goto __pyx_L1;}
6289
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
6290
 
    if (__pyx_9) {
6291
 
 
6292
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1538 */
6293
 
      __pyx_10 = PyInt_FromLong(0); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1538; goto __pyx_L1;}
6294
 
      __pyx_4 = PyObject_GetItem(__pyx_v_self->current_dir_info, __pyx_10); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1538; goto __pyx_L1;}
6295
 
      Py_DECREF(__pyx_10); __pyx_10 = 0;
6296
 
      __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1538; goto __pyx_L1;}
6297
 
      __pyx_2 = PyObject_GetItem(__pyx_4, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1538; goto __pyx_L1;}
6298
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
6299
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
6300
 
      Py_DECREF(__pyx_v_current_dirname);
6301
 
      __pyx_v_current_dirname = __pyx_2;
6302
 
      __pyx_2 = 0;
6303
 
 
6304
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1539 */
6305
 
      __pyx_v_current_dirname_c = PyString_AS_STRING(((void *)__pyx_v_current_dirname));
6306
 
 
6307
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1541 */
6308
 
      __pyx_8 = PyInt_FromLong(0); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1541; goto __pyx_L1;}
6309
 
      __pyx_11 = PyObject_GetItem(__pyx_v_self->current_block, __pyx_8); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1541; goto __pyx_L1;}
6310
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
6311
 
      Py_DECREF(__pyx_v_current_blockname);
6312
 
      __pyx_v_current_blockname = __pyx_11;
6313
 
      __pyx_11 = 0;
6314
 
 
6315
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1542 */
6316
 
      __pyx_v_current_blockname_c = PyString_AS_STRING(((void *)__pyx_v_current_blockname));
6317
 
 
6318
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1548 */
6319
 
      __pyx_1 = (__pyx_f_19_dirstate_helpers_c__cmp_by_dirs(__pyx_v_current_dirname_c,PyString_Size(__pyx_v_current_dirname),__pyx_v_current_blockname_c,PyString_Size(__pyx_v_current_blockname)) < 0);
6320
 
      if (__pyx_1) {
6321
 
 
6322
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1562 */
6323
 
        while (1) {
6324
 
          __pyx_7 = PyObject_Length(__pyx_v_self->current_dir_list); if (__pyx_7 == -1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1562; goto __pyx_L1;}
6325
 
          __pyx_9 = (__pyx_v_self->path_index < __pyx_7);
6326
 
          if (!__pyx_9) break;
6327
 
 
6328
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1563 */
6329
 
          __pyx_5 = PyInt_FromLong(__pyx_v_self->path_index); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1563; goto __pyx_L1;}
6330
 
          __pyx_6 = PyObject_GetItem(__pyx_v_self->current_dir_list, __pyx_5); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1563; goto __pyx_L1;}
6331
 
          Py_DECREF(__pyx_5); __pyx_5 = 0;
6332
 
          Py_DECREF(__pyx_v_current_path_info);
6333
 
          __pyx_v_current_path_info = __pyx_6;
6334
 
          __pyx_6 = 0;
6335
 
 
6336
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1566 */
6337
 
          __pyx_10 = PyInt_FromLong(2); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1566; goto __pyx_L1;}
6338
 
          __pyx_4 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_10); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1566; goto __pyx_L1;}
6339
 
          Py_DECREF(__pyx_10); __pyx_10 = 0;
6340
 
          __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1566; goto __pyx_L1;}
6341
 
          Py_INCREF(__pyx_n_directory);
6342
 
          PyTuple_SET_ITEM(__pyx_3, 0, __pyx_n_directory);
6343
 
          Py_INCREF(__pyx_k87p);
6344
 
          PyTuple_SET_ITEM(__pyx_3, 1, __pyx_k87p);
6345
 
          __pyx_1 = PySequence_Contains(__pyx_3, __pyx_4); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1566; goto __pyx_L1;}
6346
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
6347
 
          Py_DECREF(__pyx_3); __pyx_3 = 0;
6348
 
          if (__pyx_1) {
6349
 
 
6350
 
            /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1568 */
6351
 
            __pyx_2 = PyInt_FromLong(__pyx_v_self->path_index); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1568; goto __pyx_L1;}
6352
 
            if (PyObject_DelItem(__pyx_v_self->current_dir_list, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1568; goto __pyx_L1;}
6353
 
            Py_DECREF(__pyx_2); __pyx_2 = 0;
6354
 
 
6355
 
            /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1569 */
6356
 
            __pyx_v_self->path_index = (__pyx_v_self->path_index - 1);
6357
 
            goto __pyx_L36;
6358
 
          }
6359
 
          __pyx_L36:;
6360
 
 
6361
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1570 */
6362
 
          __pyx_v_self->path_index = (__pyx_v_self->path_index + 1);
6363
 
 
6364
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1571 */
6365
 
          __pyx_9 = __pyx_v_self->want_unversioned;
6366
 
          if (__pyx_9) {
6367
 
 
6368
 
            /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1572 */
6369
 
            __pyx_8 = PyInt_FromLong(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1572; goto __pyx_L1;}
6370
 
            __pyx_11 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_8); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1572; goto __pyx_L1;}
6371
 
            Py_DECREF(__pyx_8); __pyx_8 = 0;
6372
 
            if (PyObject_Cmp(__pyx_11, __pyx_n_directory, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1572; goto __pyx_L1;}
6373
 
            __pyx_1 = __pyx_1 == 0;
6374
 
            Py_DECREF(__pyx_11); __pyx_11 = 0;
6375
 
            if (__pyx_1) {
6376
 
              __pyx_5 = PyObject_GetAttr(__pyx_v_self->tree, __pyx_n__directory_is_tree_reference); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1573; goto __pyx_L1;}
6377
 
              __pyx_6 = PyInt_FromLong(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1574; goto __pyx_L1;}
6378
 
              __pyx_10 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_6); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1574; goto __pyx_L1;}
6379
 
              Py_DECREF(__pyx_6); __pyx_6 = 0;
6380
 
              __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1574; goto __pyx_L1;}
6381
 
              PyTuple_SET_ITEM(__pyx_4, 0, __pyx_10);
6382
 
              __pyx_10 = 0;
6383
 
              __pyx_3 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1574; goto __pyx_L1;}
6384
 
              Py_DECREF(__pyx_4); __pyx_4 = 0;
6385
 
              __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1574; goto __pyx_L1;}
6386
 
              __pyx_8 = PyObject_GetItem(__pyx_3, __pyx_2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1574; goto __pyx_L1;}
6387
 
              Py_DECREF(__pyx_3); __pyx_3 = 0;
6388
 
              Py_DECREF(__pyx_2); __pyx_2 = 0;
6389
 
              __pyx_11 = PyTuple_New(1); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1573; goto __pyx_L1;}
6390
 
              PyTuple_SET_ITEM(__pyx_11, 0, __pyx_8);
6391
 
              __pyx_8 = 0;
6392
 
              __pyx_6 = PyObject_CallObject(__pyx_5, __pyx_11); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1573; goto __pyx_L1;}
6393
 
              Py_DECREF(__pyx_5); __pyx_5 = 0;
6394
 
              Py_DECREF(__pyx_11); __pyx_11 = 0;
6395
 
              __pyx_9 = PyObject_IsTrue(__pyx_6); if (__pyx_9 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1573; goto __pyx_L1;}
6396
 
              Py_DECREF(__pyx_6); __pyx_6 = 0;
6397
 
              if (__pyx_9) {
6398
 
                __pyx_10 = PySequence_GetSlice(__pyx_v_current_path_info, 0, 2); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1575; goto __pyx_L1;}
6399
 
                __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1576; goto __pyx_L1;}
6400
 
                Py_INCREF(__pyx_k89p);
6401
 
                PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k89p);
6402
 
                __pyx_3 = PyNumber_Add(__pyx_10, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1575; goto __pyx_L1;}
6403
 
                Py_DECREF(__pyx_10); __pyx_10 = 0;
6404
 
                Py_DECREF(__pyx_4); __pyx_4 = 0;
6405
 
                __pyx_2 = PySequence_GetSlice(__pyx_v_current_path_info, 3, PY_SSIZE_T_MAX); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1576; goto __pyx_L1;}
6406
 
                __pyx_8 = PyNumber_Add(__pyx_3, __pyx_2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1576; goto __pyx_L1;}
6407
 
                Py_DECREF(__pyx_3); __pyx_3 = 0;
6408
 
                Py_DECREF(__pyx_2); __pyx_2 = 0;
6409
 
                Py_DECREF(__pyx_v_current_path_info);
6410
 
                __pyx_v_current_path_info = __pyx_8;
6411
 
                __pyx_8 = 0;
6412
 
                goto __pyx_L39;
6413
 
              }
6414
 
              __pyx_L39:;
6415
 
              goto __pyx_L38;
6416
 
            }
6417
 
            __pyx_L38:;
6418
 
 
6419
 
            /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1577 */
6420
 
            __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_bool); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1577; goto __pyx_L1;}
6421
 
            __pyx_6 = __Pyx_GetName(__pyx_m, __pyx_n_stat); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1578; goto __pyx_L1;}
6422
 
            __pyx_10 = PyObject_GetAttr(__pyx_6, __pyx_n_S_ISREG); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1578; goto __pyx_L1;}
6423
 
            Py_DECREF(__pyx_6); __pyx_6 = 0;
6424
 
            __pyx_4 = PyInt_FromLong(3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1578; goto __pyx_L1;}
6425
 
            __pyx_3 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1578; goto __pyx_L1;}
6426
 
            Py_DECREF(__pyx_4); __pyx_4 = 0;
6427
 
            __pyx_2 = PyObject_GetAttr(__pyx_3, __pyx_n_st_mode); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1578; goto __pyx_L1;}
6428
 
            Py_DECREF(__pyx_3); __pyx_3 = 0;
6429
 
            __pyx_8 = PyTuple_New(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1578; goto __pyx_L1;}
6430
 
            PyTuple_SET_ITEM(__pyx_8, 0, __pyx_2);
6431
 
            __pyx_2 = 0;
6432
 
            __pyx_11 = PyObject_CallObject(__pyx_10, __pyx_8); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1578; goto __pyx_L1;}
6433
 
            Py_DECREF(__pyx_10); __pyx_10 = 0;
6434
 
            Py_DECREF(__pyx_8); __pyx_8 = 0;
6435
 
            __pyx_1 = PyObject_IsTrue(__pyx_11); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1579; goto __pyx_L1;}
6436
 
            if (__pyx_1) {
6437
 
              Py_DECREF(__pyx_11); __pyx_11 = 0;
6438
 
              __pyx_6 = __Pyx_GetName(__pyx_m, __pyx_n_stat); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1579; goto __pyx_L1;}
6439
 
              __pyx_4 = PyObject_GetAttr(__pyx_6, __pyx_n_S_IEXEC); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1579; goto __pyx_L1;}
6440
 
              Py_DECREF(__pyx_6); __pyx_6 = 0;
6441
 
              __pyx_3 = PyInt_FromLong(3); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1579; goto __pyx_L1;}
6442
 
              __pyx_2 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1579; goto __pyx_L1;}
6443
 
              Py_DECREF(__pyx_3); __pyx_3 = 0;
6444
 
              __pyx_10 = PyObject_GetAttr(__pyx_2, __pyx_n_st_mode); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1579; goto __pyx_L1;}
6445
 
              Py_DECREF(__pyx_2); __pyx_2 = 0;
6446
 
              __pyx_11 = PyNumber_And(__pyx_4, __pyx_10); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1579; goto __pyx_L1;}
6447
 
              Py_DECREF(__pyx_4); __pyx_4 = 0;
6448
 
              Py_DECREF(__pyx_10); __pyx_10 = 0;
6449
 
            }
6450
 
            __pyx_8 = PyTuple_New(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1577; goto __pyx_L1;}
6451
 
            PyTuple_SET_ITEM(__pyx_8, 0, __pyx_11);
6452
 
            __pyx_11 = 0;
6453
 
            __pyx_6 = PyObject_CallObject(__pyx_5, __pyx_8); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1577; goto __pyx_L1;}
6454
 
            Py_DECREF(__pyx_5); __pyx_5 = 0;
6455
 
            Py_DECREF(__pyx_8); __pyx_8 = 0;
6456
 
            Py_DECREF(__pyx_v_new_executable);
6457
 
            __pyx_v_new_executable = __pyx_6;
6458
 
            __pyx_6 = 0;
6459
 
 
6460
 
            /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1580 */
6461
 
            __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1581; goto __pyx_L1;}
6462
 
            __pyx_2 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1581; goto __pyx_L1;}
6463
 
            Py_DECREF(__pyx_3); __pyx_3 = 0;
6464
 
            __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1581; goto __pyx_L1;}
6465
 
            PyTuple_SET_ITEM(__pyx_4, 0, __pyx_2);
6466
 
            __pyx_2 = 0;
6467
 
            __pyx_10 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_4); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1581; goto __pyx_L1;}
6468
 
            Py_DECREF(__pyx_4); __pyx_4 = 0;
6469
 
            __pyx_11 = PyInt_FromLong(0); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1581; goto __pyx_L1;}
6470
 
            __pyx_5 = PyObject_GetItem(__pyx_10, __pyx_11); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1581; goto __pyx_L1;}
6471
 
            Py_DECREF(__pyx_10); __pyx_10 = 0;
6472
 
            Py_DECREF(__pyx_11); __pyx_11 = 0;
6473
 
            __pyx_8 = PyTuple_New(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1581; goto __pyx_L1;}
6474
 
            Py_INCREF(Py_None);
6475
 
            PyTuple_SET_ITEM(__pyx_8, 0, Py_None);
6476
 
            PyTuple_SET_ITEM(__pyx_8, 1, __pyx_5);
6477
 
            __pyx_5 = 0;
6478
 
            __pyx_6 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1582; goto __pyx_L1;}
6479
 
            __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1583; goto __pyx_L1;}
6480
 
            __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1583; goto __pyx_L1;}
6481
 
            __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1583; goto __pyx_L1;}
6482
 
            PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3);
6483
 
            PyTuple_SET_ITEM(__pyx_4, 1, __pyx_2);
6484
 
            __pyx_3 = 0;
6485
 
            __pyx_2 = 0;
6486
 
            __pyx_10 = PyTuple_New(2); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1584; goto __pyx_L1;}
6487
 
            Py_INCREF(Py_None);
6488
 
            PyTuple_SET_ITEM(__pyx_10, 0, Py_None);
6489
 
            Py_INCREF(Py_None);
6490
 
            PyTuple_SET_ITEM(__pyx_10, 1, Py_None);
6491
 
            __pyx_11 = PyInt_FromLong(1); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1585; goto __pyx_L1;}
6492
 
            __pyx_5 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_11); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1585; goto __pyx_L1;}
6493
 
            Py_DECREF(__pyx_11); __pyx_11 = 0;
6494
 
            __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1585; goto __pyx_L1;}
6495
 
            PyTuple_SET_ITEM(__pyx_3, 0, __pyx_5);
6496
 
            __pyx_5 = 0;
6497
 
            __pyx_2 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1585; goto __pyx_L1;}
6498
 
            Py_DECREF(__pyx_3); __pyx_3 = 0;
6499
 
            __pyx_11 = PyInt_FromLong(0); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1585; goto __pyx_L1;}
6500
 
            __pyx_5 = PyObject_GetItem(__pyx_2, __pyx_11); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1585; goto __pyx_L1;}
6501
 
            Py_DECREF(__pyx_2); __pyx_2 = 0;
6502
 
            Py_DECREF(__pyx_11); __pyx_11 = 0;
6503
 
            __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1585; goto __pyx_L1;}
6504
 
            Py_INCREF(Py_None);
6505
 
            PyTuple_SET_ITEM(__pyx_3, 0, Py_None);
6506
 
            PyTuple_SET_ITEM(__pyx_3, 1, __pyx_5);
6507
 
            __pyx_5 = 0;
6508
 
            __pyx_2 = PyInt_FromLong(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1586; goto __pyx_L1;}
6509
 
            __pyx_11 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_2); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1586; goto __pyx_L1;}
6510
 
            Py_DECREF(__pyx_2); __pyx_2 = 0;
6511
 
            __pyx_5 = PyTuple_New(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1586; goto __pyx_L1;}
6512
 
            Py_INCREF(Py_None);
6513
 
            PyTuple_SET_ITEM(__pyx_5, 0, Py_None);
6514
 
            PyTuple_SET_ITEM(__pyx_5, 1, __pyx_11);
6515
 
            __pyx_11 = 0;
6516
 
            __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1587; goto __pyx_L1;}
6517
 
            Py_INCREF(Py_None);
6518
 
            PyTuple_SET_ITEM(__pyx_2, 0, Py_None);
6519
 
            Py_INCREF(__pyx_v_new_executable);
6520
 
            PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_new_executable);
6521
 
            __pyx_11 = PyTuple_New(8); if (!__pyx_11) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1580; goto __pyx_L1;}
6522
 
            Py_INCREF(Py_None);
6523
 
            PyTuple_SET_ITEM(__pyx_11, 0, Py_None);
6524
 
            PyTuple_SET_ITEM(__pyx_11, 1, __pyx_8);
6525
 
            PyTuple_SET_ITEM(__pyx_11, 2, __pyx_6);
6526
 
            PyTuple_SET_ITEM(__pyx_11, 3, __pyx_4);
6527
 
            PyTuple_SET_ITEM(__pyx_11, 4, __pyx_10);
6528
 
            PyTuple_SET_ITEM(__pyx_11, 5, __pyx_3);
6529
 
            PyTuple_SET_ITEM(__pyx_11, 6, __pyx_5);
6530
 
            PyTuple_SET_ITEM(__pyx_11, 7, __pyx_2);
6531
 
            __pyx_8 = 0;
6532
 
            __pyx_6 = 0;
6533
 
            __pyx_4 = 0;
6534
 
            __pyx_10 = 0;
6535
 
            __pyx_3 = 0;
6536
 
            __pyx_5 = 0;
6537
 
            __pyx_2 = 0;
6538
 
            __pyx_r = __pyx_11;
6539
 
            __pyx_11 = 0;
6540
 
            goto __pyx_L0;
6541
 
            goto __pyx_L37;
6542
 
          }
6543
 
          __pyx_L37:;
6544
 
        }
6545
 
 
6546
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1589 */
6547
 
        __pyx_v_self->path_index = 0;
6548
 
 
6549
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1590 */
6550
 
        Py_INCREF(Py_None);
6551
 
        Py_DECREF(__pyx_v_self->current_dir_list);
6552
 
        __pyx_v_self->current_dir_list = Py_None;
6553
 
 
6554
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1591 */
6555
 
        /*try:*/ {
6556
 
 
6557
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1592 */
6558
 
          __pyx_8 = PyObject_GetAttr(__pyx_v_self->dir_iterator, __pyx_n_next); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1592; goto __pyx_L40;}
6559
 
          __pyx_6 = PyObject_CallObject(__pyx_8, 0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1592; goto __pyx_L40;}
6560
 
          Py_DECREF(__pyx_8); __pyx_8 = 0;
6561
 
          Py_DECREF(__pyx_v_self->current_dir_info);
6562
 
          __pyx_v_self->current_dir_info = __pyx_6;
6563
 
          __pyx_6 = 0;
6564
 
 
6565
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1593 */
6566
 
          __pyx_4 = PyInt_FromLong(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1593; goto __pyx_L40;}
6567
 
          __pyx_10 = PyObject_GetItem(__pyx_v_self->current_dir_info, __pyx_4); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1593; goto __pyx_L40;}
6568
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
6569
 
          Py_DECREF(__pyx_v_self->current_dir_list);
6570
 
          __pyx_v_self->current_dir_list = __pyx_10;
6571
 
          __pyx_10 = 0;
6572
 
        }
6573
 
        goto __pyx_L41;
6574
 
        __pyx_L40:;
6575
 
        Py_XDECREF(__pyx_3); __pyx_3 = 0;
6576
 
        Py_XDECREF(__pyx_5); __pyx_5 = 0;
6577
 
        Py_XDECREF(__pyx_2); __pyx_2 = 0;
6578
 
        Py_XDECREF(__pyx_11); __pyx_11 = 0;
6579
 
        Py_XDECREF(__pyx_8); __pyx_8 = 0;
6580
 
        Py_XDECREF(__pyx_6); __pyx_6 = 0;
6581
 
        Py_XDECREF(__pyx_4); __pyx_4 = 0;
6582
 
        Py_XDECREF(__pyx_10); __pyx_10 = 0;
6583
 
 
6584
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1594 */
6585
 
        __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_StopIteration); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1594; goto __pyx_L1;}
6586
 
        __pyx_9 = PyErr_ExceptionMatches(__pyx_3);
6587
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
6588
 
        if (__pyx_9) {
6589
 
          __Pyx_AddTraceback("_dirstate_helpers_c._iter_next");
6590
 
          if (__Pyx_GetException(&__pyx_5, &__pyx_2, &__pyx_11) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1594; goto __pyx_L1;}
6591
 
          Py_INCREF(Py_None);
6592
 
          Py_DECREF(__pyx_v_self->current_dir_info);
6593
 
          __pyx_v_self->current_dir_info = Py_None;
6594
 
          Py_DECREF(__pyx_5); __pyx_5 = 0;
6595
 
          Py_DECREF(__pyx_2); __pyx_2 = 0;
6596
 
          Py_DECREF(__pyx_11); __pyx_11 = 0;
6597
 
          goto __pyx_L41;
6598
 
        }
6599
 
        goto __pyx_L1;
6600
 
        __pyx_L41:;
6601
 
        goto __pyx_L33;
6602
 
      }
6603
 
      /*else*/ {
6604
 
 
6605
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1604 */
6606
 
        while (1) {
6607
 
          __pyx_7 = PyObject_Length(__pyx_v_self->current_block_list); if (__pyx_7 == -1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1604; goto __pyx_L1;}
6608
 
          __pyx_1 = (__pyx_v_self->current_block_pos < __pyx_7);
6609
 
          if (!__pyx_1) break;
6610
 
 
6611
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1605 */
6612
 
          __pyx_8 = PyInt_FromLong(__pyx_v_self->current_block_pos); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1605; goto __pyx_L1;}
6613
 
          __pyx_6 = PyObject_GetItem(__pyx_v_self->current_block_list, __pyx_8); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1605; goto __pyx_L1;}
6614
 
          Py_DECREF(__pyx_8); __pyx_8 = 0;
6615
 
          Py_DECREF(__pyx_v_current_entry);
6616
 
          __pyx_v_current_entry = __pyx_6;
6617
 
          __pyx_6 = 0;
6618
 
 
6619
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1606 */
6620
 
          __pyx_v_self->current_block_pos = (__pyx_v_self->current_block_pos + 1);
6621
 
 
6622
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1609 */
6623
 
          __pyx_4 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self->__pyx_vtab)->_process_entry(__pyx_v_self,__pyx_v_current_entry,Py_None); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1609; goto __pyx_L1;}
6624
 
          Py_DECREF(__pyx_v_result);
6625
 
          __pyx_v_result = __pyx_4;
6626
 
          __pyx_4 = 0;
6627
 
 
6628
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1610 */
6629
 
          __pyx_9 = __pyx_v_result != Py_None;
6630
 
          if (__pyx_9) {
6631
 
            __pyx_1 = __pyx_v_result != __pyx_v_self->uninteresting;
6632
 
            if (__pyx_1) {
6633
 
              Py_INCREF(__pyx_v_result);
6634
 
              __pyx_r = __pyx_v_result;
6635
 
              goto __pyx_L0;
6636
 
              goto __pyx_L45;
6637
 
            }
6638
 
            __pyx_L45:;
6639
 
            goto __pyx_L44;
6640
 
          }
6641
 
          __pyx_L44:;
6642
 
        }
6643
 
 
6644
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1613 */
6645
 
        __pyx_v_self->block_index = (__pyx_v_self->block_index + 1);
6646
 
 
6647
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1614 */
6648
 
        ((struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self->__pyx_vtab)->_update_current_block(__pyx_v_self);
6649
 
      }
6650
 
      __pyx_L33:;
6651
 
 
6652
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1615 */
6653
 
      goto __pyx_L30;
6654
 
      goto __pyx_L32;
6655
 
    }
6656
 
    __pyx_L32:;
6657
 
 
6658
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1616 */
6659
 
    __pyx_10 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self->__pyx_vtab)->_loop_one_block(__pyx_v_self); if (!__pyx_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1616; goto __pyx_L1;}
6660
 
    Py_DECREF(__pyx_v_result);
6661
 
    __pyx_v_result = __pyx_10;
6662
 
    __pyx_10 = 0;
6663
 
 
6664
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1617 */
6665
 
    __pyx_9 = __pyx_v_result != Py_None;
6666
 
    if (__pyx_9) {
6667
 
      Py_INCREF(__pyx_v_result);
6668
 
      __pyx_r = __pyx_v_result;
6669
 
      goto __pyx_L0;
6670
 
      goto __pyx_L46;
6671
 
    }
6672
 
    __pyx_L46:;
6673
 
    __pyx_L30:;
6674
 
  }
6675
 
 
6676
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1619 */
6677
 
  __pyx_7 = PyObject_Length(__pyx_v_self->search_specific_files); if (__pyx_7 == -1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1619; goto __pyx_L1;}
6678
 
  if (__pyx_7) {
6679
 
 
6680
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1621 */
6681
 
    Py_INCREF(Py_None);
6682
 
    Py_DECREF(__pyx_v_self->current_root);
6683
 
    __pyx_v_self->current_root = Py_None;
6684
 
 
6685
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1622 */
6686
 
    __pyx_3 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self->__pyx_vtab)->_iter_next(__pyx_v_self); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1622; goto __pyx_L1;}
6687
 
    __pyx_r = __pyx_3;
6688
 
    __pyx_3 = 0;
6689
 
    goto __pyx_L0;
6690
 
    goto __pyx_L47;
6691
 
  }
6692
 
  __pyx_L47:;
6693
 
 
6694
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1623 */
6695
 
  __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_StopIteration); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1623; goto __pyx_L1;}
6696
 
  __pyx_2 = PyObject_CallObject(__pyx_5, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1623; goto __pyx_L1;}
6697
 
  Py_DECREF(__pyx_5); __pyx_5 = 0;
6698
 
  __Pyx_Raise(__pyx_2, 0, 0);
6699
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
6700
 
  {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1623; goto __pyx_L1;}
6701
 
 
6702
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
6703
 
  goto __pyx_L0;
6704
 
  __pyx_L1:;
6705
 
  Py_XDECREF(__pyx_2);
6706
 
  Py_XDECREF(__pyx_3);
6707
 
  Py_XDECREF(__pyx_4);
6708
 
  Py_XDECREF(__pyx_5);
6709
 
  Py_XDECREF(__pyx_6);
6710
 
  Py_XDECREF(__pyx_8);
6711
 
  Py_XDECREF(__pyx_10);
6712
 
  Py_XDECREF(__pyx_11);
6713
 
  __Pyx_AddTraceback("_dirstate_helpers_c.ProcessEntryC._iter_next");
6714
 
  __pyx_r = 0;
6715
 
  __pyx_L0:;
6716
 
  Py_DECREF(__pyx_v_current_dirname);
6717
 
  Py_DECREF(__pyx_v_current_blockname);
6718
 
  Py_DECREF(__pyx_v_uninteresting);
6719
 
  Py_DECREF(__pyx_v_searched_specific_files);
6720
 
  Py_DECREF(__pyx_v_entry);
6721
 
  Py_DECREF(__pyx_v_result);
6722
 
  Py_DECREF(__pyx_v_root_stat);
6723
 
  Py_DECREF(__pyx_v_e);
6724
 
  Py_DECREF(__pyx_v_new_executable);
6725
 
  Py_DECREF(__pyx_v_e_winerror);
6726
 
  Py_DECREF(__pyx_v_win_errors);
6727
 
  Py_DECREF(__pyx_v_bzr_index);
6728
 
  Py_DECREF(__pyx_v_initial_key);
6729
 
  Py_DECREF(__pyx_v__);
6730
 
  Py_DECREF(__pyx_v_current_path_info);
6731
 
  Py_DECREF(__pyx_v_current_entry);
6732
 
  Py_DECREF(__pyx_v_self);
6733
 
  return __pyx_r;
6734
 
}
6735
 
 
6736
 
static PyObject *__pyx_k90p;
6737
 
 
6738
 
static char __pyx_k90[] = "tree-reference";
6739
 
 
6740
 
static PyObject *__pyx_f_19_dirstate_helpers_c_13ProcessEntryC__maybe_tree_ref(struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *__pyx_v_self,PyObject *__pyx_v_current_path_info) {
6741
 
  PyObject *__pyx_r;
6742
 
  PyObject *__pyx_1 = 0;
6743
 
  PyObject *__pyx_2 = 0;
6744
 
  PyObject *__pyx_3 = 0;
6745
 
  PyObject *__pyx_4 = 0;
6746
 
  int __pyx_5;
6747
 
  Py_INCREF(__pyx_v_self);
6748
 
  Py_INCREF(__pyx_v_current_path_info);
6749
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_self->tree, __pyx_n__directory_is_tree_reference); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1626; goto __pyx_L1;}
6750
 
  __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1627; goto __pyx_L1;}
6751
 
  __pyx_3 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1627; goto __pyx_L1;}
6752
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
6753
 
  __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1627; goto __pyx_L1;}
6754
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_3);
6755
 
  __pyx_3 = 0;
6756
 
  __pyx_3 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1627; goto __pyx_L1;}
6757
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
6758
 
  __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1627; goto __pyx_L1;}
6759
 
  __pyx_4 = PyObject_GetItem(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1627; goto __pyx_L1;}
6760
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
6761
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
6762
 
  __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1626; goto __pyx_L1;}
6763
 
  PyTuple_SET_ITEM(__pyx_3, 0, __pyx_4);
6764
 
  __pyx_4 = 0;
6765
 
  __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1626; goto __pyx_L1;}
6766
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
6767
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
6768
 
  __pyx_5 = PyObject_IsTrue(__pyx_2); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1626; goto __pyx_L1;}
6769
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
6770
 
  if (__pyx_5) {
6771
 
    __pyx_4 = PySequence_GetSlice(__pyx_v_current_path_info, 0, 2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1628; goto __pyx_L1;}
6772
 
    __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1629; goto __pyx_L1;}
6773
 
    Py_INCREF(__pyx_k90p);
6774
 
    PyTuple_SET_ITEM(__pyx_1, 0, __pyx_k90p);
6775
 
    __pyx_3 = PyNumber_Add(__pyx_4, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1628; goto __pyx_L1;}
6776
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
6777
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
6778
 
    __pyx_2 = PySequence_GetSlice(__pyx_v_current_path_info, 3, PY_SSIZE_T_MAX); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1629; goto __pyx_L1;}
6779
 
    __pyx_4 = PyNumber_Add(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1629; goto __pyx_L1;}
6780
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
6781
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
6782
 
    __pyx_r = __pyx_4;
6783
 
    __pyx_4 = 0;
6784
 
    goto __pyx_L0;
6785
 
    goto __pyx_L2;
6786
 
  }
6787
 
  /*else*/ {
6788
 
    Py_INCREF(__pyx_v_current_path_info);
6789
 
    __pyx_r = __pyx_v_current_path_info;
6790
 
    goto __pyx_L0;
6791
 
  }
6792
 
  __pyx_L2:;
6793
 
 
6794
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
6795
 
  goto __pyx_L0;
6796
 
  __pyx_L1:;
6797
 
  Py_XDECREF(__pyx_1);
6798
 
  Py_XDECREF(__pyx_2);
6799
 
  Py_XDECREF(__pyx_3);
6800
 
  Py_XDECREF(__pyx_4);
6801
 
  __Pyx_AddTraceback("_dirstate_helpers_c.ProcessEntryC._maybe_tree_ref");
6802
 
  __pyx_r = 0;
6803
 
  __pyx_L0:;
6804
 
  Py_DECREF(__pyx_v_self);
6805
 
  Py_DECREF(__pyx_v_current_path_info);
6806
 
  return __pyx_r;
6807
 
}
6808
 
 
6809
 
static PyObject *__pyx_n_cmp;
6810
 
static PyObject *__pyx_n_UnicodeDecodeError;
6811
 
static PyObject *__pyx_n_BadFilenameEncoding;
6812
 
static PyObject *__pyx_n__fs_enc;
6813
 
 
6814
 
static PyObject *__pyx_k92p;
6815
 
static PyObject *__pyx_k94p;
6816
 
 
6817
 
static char __pyx_k92[] = "result is not None: %r";
6818
 
static char __pyx_k94[] = "tree-reference";
6819
 
 
6820
 
static PyObject *__pyx_f_19_dirstate_helpers_c_13ProcessEntryC__loop_one_block(struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *__pyx_v_self) {
6821
 
  PyObject *__pyx_v_current_entry;
6822
 
  PyObject *__pyx_v_current_path_info;
6823
 
  int __pyx_v_path_handled;
6824
 
  char __pyx_v_minikind;
6825
 
  int __pyx_v_cmp_result;
6826
 
  PyObject *__pyx_v_disk_kind;
6827
 
  PyObject *__pyx_v_advance_entry;
6828
 
  PyObject *__pyx_v_advance_path;
6829
 
  PyObject *__pyx_v_result;
6830
 
  PyObject *__pyx_v_new_executable;
6831
 
  PyObject *__pyx_v_relpath_unicode;
6832
 
  PyObject *__pyx_r;
6833
 
  int __pyx_1;
6834
 
  PyObject *__pyx_2 = 0;
6835
 
  PyObject *__pyx_3 = 0;
6836
 
  PyObject *__pyx_4 = 0;
6837
 
  PyObject *__pyx_5 = 0;
6838
 
  PyObject *__pyx_6 = 0;
6839
 
  PyObject *__pyx_7 = 0;
6840
 
  PyObject *__pyx_8 = 0;
6841
 
  PyObject *__pyx_9 = 0;
6842
 
  Py_ssize_t __pyx_10;
6843
 
  Py_INCREF(__pyx_v_self);
6844
 
  __pyx_v_current_entry = Py_None; Py_INCREF(Py_None);
6845
 
  __pyx_v_current_path_info = Py_None; Py_INCREF(Py_None);
6846
 
  __pyx_v_disk_kind = Py_None; Py_INCREF(Py_None);
6847
 
  __pyx_v_advance_entry = Py_None; Py_INCREF(Py_None);
6848
 
  __pyx_v_advance_path = Py_None; Py_INCREF(Py_None);
6849
 
  __pyx_v_result = Py_None; Py_INCREF(Py_None);
6850
 
  __pyx_v_new_executable = Py_None; Py_INCREF(Py_None);
6851
 
  __pyx_v_relpath_unicode = Py_None; Py_INCREF(Py_None);
6852
 
 
6853
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1646 */
6854
 
  __pyx_1 = __pyx_v_self->current_block != Py_None;
6855
 
  if (__pyx_1) {
6856
 
    __pyx_1 = (__pyx_v_self->current_block_pos < PyList_GET_SIZE(__pyx_v_self->current_block_list));
6857
 
  }
6858
 
  if (__pyx_1) {
6859
 
 
6860
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1648 */
6861
 
    __pyx_2 = PyList_GET_ITEM(__pyx_v_self->current_block_list,__pyx_v_self->current_block_pos); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1648; goto __pyx_L1;}
6862
 
    Py_DECREF(__pyx_v_current_entry);
6863
 
    __pyx_v_current_entry = __pyx_2;
6864
 
    __pyx_2 = 0;
6865
 
 
6866
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1651 */
6867
 
    Py_INCREF(__pyx_v_current_entry);
6868
 
    goto __pyx_L2;
6869
 
  }
6870
 
  /*else*/ {
6871
 
    Py_INCREF(Py_None);
6872
 
    Py_DECREF(__pyx_v_current_entry);
6873
 
    __pyx_v_current_entry = Py_None;
6874
 
  }
6875
 
  __pyx_L2:;
6876
 
 
6877
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1654 */
6878
 
  __pyx_1 = __pyx_v_self->current_dir_info != Py_None;
6879
 
  if (__pyx_1) {
6880
 
    __pyx_1 = (__pyx_v_self->path_index < PyList_GET_SIZE(__pyx_v_self->current_dir_list));
6881
 
  }
6882
 
  if (__pyx_1) {
6883
 
 
6884
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1656 */
6885
 
    __pyx_2 = PyList_GET_ITEM(__pyx_v_self->current_dir_list,__pyx_v_self->path_index); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1656; goto __pyx_L1;}
6886
 
    Py_DECREF(__pyx_v_current_path_info);
6887
 
    __pyx_v_current_path_info = __pyx_2;
6888
 
    __pyx_2 = 0;
6889
 
 
6890
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1659 */
6891
 
    Py_INCREF(__pyx_v_current_path_info);
6892
 
 
6893
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1660 */
6894
 
    __pyx_2 = PyTuple_GET_ITEM(__pyx_v_current_path_info,2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1660; goto __pyx_L1;}
6895
 
    Py_DECREF(__pyx_v_disk_kind);
6896
 
    __pyx_v_disk_kind = __pyx_2;
6897
 
    __pyx_2 = 0;
6898
 
 
6899
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1662 */
6900
 
    Py_INCREF(__pyx_v_disk_kind);
6901
 
 
6902
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1663 */
6903
 
    if (PyObject_Cmp(__pyx_v_disk_kind, __pyx_n_directory, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1663; goto __pyx_L1;}
6904
 
    __pyx_1 = __pyx_1 == 0;
6905
 
    if (__pyx_1) {
6906
 
      __pyx_2 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self->__pyx_vtab)->_maybe_tree_ref(__pyx_v_self,__pyx_v_current_path_info); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1664; goto __pyx_L1;}
6907
 
      Py_DECREF(__pyx_v_current_path_info);
6908
 
      __pyx_v_current_path_info = __pyx_2;
6909
 
      __pyx_2 = 0;
6910
 
      goto __pyx_L4;
6911
 
    }
6912
 
    __pyx_L4:;
6913
 
    goto __pyx_L3;
6914
 
  }
6915
 
  /*else*/ {
6916
 
    Py_INCREF(Py_None);
6917
 
    Py_DECREF(__pyx_v_current_path_info);
6918
 
    __pyx_v_current_path_info = Py_None;
6919
 
  }
6920
 
  __pyx_L3:;
6921
 
 
6922
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1667 */
6923
 
  while (1) {
6924
 
    __pyx_1 = __pyx_v_current_entry != Py_None;
6925
 
    if (!__pyx_1) {
6926
 
      __pyx_1 = __pyx_v_current_path_info != Py_None;
6927
 
    }
6928
 
    if (!__pyx_1) break;
6929
 
 
6930
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1668 */
6931
 
    __pyx_2 = PyInt_FromLong((-1)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1668; goto __pyx_L1;}
6932
 
    Py_DECREF(__pyx_v_advance_entry);
6933
 
    __pyx_v_advance_entry = __pyx_2;
6934
 
    __pyx_2 = 0;
6935
 
 
6936
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1669 */
6937
 
    __pyx_2 = PyInt_FromLong((-1)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1669; goto __pyx_L1;}
6938
 
    Py_DECREF(__pyx_v_advance_path);
6939
 
    __pyx_v_advance_path = __pyx_2;
6940
 
    __pyx_2 = 0;
6941
 
 
6942
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1670 */
6943
 
    Py_INCREF(Py_None);
6944
 
    Py_DECREF(__pyx_v_result);
6945
 
    __pyx_v_result = Py_None;
6946
 
 
6947
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1671 */
6948
 
    __pyx_v_path_handled = 0;
6949
 
 
6950
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1672 */
6951
 
    __pyx_1 = __pyx_v_current_entry == Py_None;
6952
 
    if (__pyx_1) {
6953
 
      goto __pyx_L7;
6954
 
    }
6955
 
    __pyx_1 = __pyx_v_current_path_info == Py_None;
6956
 
    if (__pyx_1) {
6957
 
 
6958
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1678 */
6959
 
      __pyx_2 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self->__pyx_vtab)->_process_entry(__pyx_v_self,__pyx_v_current_entry,__pyx_v_current_path_info); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1678; goto __pyx_L1;}
6960
 
      Py_DECREF(__pyx_v_result);
6961
 
      __pyx_v_result = __pyx_2;
6962
 
      __pyx_2 = 0;
6963
 
 
6964
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1679 */
6965
 
      __pyx_1 = __pyx_v_result != Py_None;
6966
 
      if (__pyx_1) {
6967
 
        __pyx_1 = __pyx_v_result == __pyx_v_self->uninteresting;
6968
 
        if (__pyx_1) {
6969
 
          Py_INCREF(Py_None);
6970
 
          Py_DECREF(__pyx_v_result);
6971
 
          __pyx_v_result = Py_None;
6972
 
          goto __pyx_L9;
6973
 
        }
6974
 
        __pyx_L9:;
6975
 
        goto __pyx_L8;
6976
 
      }
6977
 
      __pyx_L8:;
6978
 
      goto __pyx_L7;
6979
 
    }
6980
 
    /*else*/ {
6981
 
 
6982
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1683 */
6983
 
      __pyx_2 = PyInt_FromLong(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1684; goto __pyx_L1;}
6984
 
      __pyx_3 = PyObject_GetItem(__pyx_v_current_entry, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1684; goto __pyx_L1;}
6985
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
6986
 
      __pyx_2 = PyInt_FromLong(__pyx_v_self->target_index); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1684; goto __pyx_L1;}
6987
 
      __pyx_4 = PyObject_GetItem(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1684; goto __pyx_L1;}
6988
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
6989
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
6990
 
      __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1684; goto __pyx_L1;}
6991
 
      __pyx_2 = PyObject_GetItem(__pyx_4, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1684; goto __pyx_L1;}
6992
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
6993
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
6994
 
      __pyx_v_minikind = __pyx_f_19_dirstate_helpers_c__minikind_from_string(__pyx_2);
6995
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
6996
 
 
6997
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1685 */
6998
 
      __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_cmp); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1685; goto __pyx_L1;}
6999
 
      __pyx_3 = PyInt_FromLong(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1685; goto __pyx_L1;}
7000
 
      __pyx_2 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1685; goto __pyx_L1;}
7001
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
7002
 
      __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1685; goto __pyx_L1;}
7003
 
      __pyx_5 = PyObject_GetItem(__pyx_v_current_entry, __pyx_3); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1685; goto __pyx_L1;}
7004
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
7005
 
      __pyx_3 = PyInt_FromLong(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1685; goto __pyx_L1;}
7006
 
      __pyx_6 = PyObject_GetItem(__pyx_5, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1685; goto __pyx_L1;}
7007
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
7008
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
7009
 
      __pyx_5 = PyTuple_New(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1685; goto __pyx_L1;}
7010
 
      PyTuple_SET_ITEM(__pyx_5, 0, __pyx_2);
7011
 
      PyTuple_SET_ITEM(__pyx_5, 1, __pyx_6);
7012
 
      __pyx_2 = 0;
7013
 
      __pyx_6 = 0;
7014
 
      __pyx_3 = PyObject_CallObject(__pyx_4, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1685; goto __pyx_L1;}
7015
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
7016
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
7017
 
      __pyx_1 = PyInt_AsLong(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1685; goto __pyx_L1;}
7018
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
7019
 
      __pyx_v_cmp_result = __pyx_1;
7020
 
 
7021
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1686 */
7022
 
      __pyx_1 = __pyx_v_cmp_result;
7023
 
      if (!__pyx_1) {
7024
 
        __pyx_1 = (__pyx_v_minikind == 'a');
7025
 
        if (!__pyx_1) {
7026
 
          __pyx_1 = (__pyx_v_minikind == 'r');
7027
 
        }
7028
 
      }
7029
 
      if (__pyx_1) {
7030
 
        __pyx_1 = (__pyx_v_cmp_result < 0);
7031
 
        if (__pyx_1) {
7032
 
          __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1698; goto __pyx_L1;}
7033
 
          Py_DECREF(__pyx_v_advance_entry);
7034
 
          __pyx_v_advance_entry = __pyx_2;
7035
 
          __pyx_2 = 0;
7036
 
          goto __pyx_L11;
7037
 
        }
7038
 
        /*else*/ {
7039
 
 
7040
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1702 */
7041
 
          __pyx_6 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self->__pyx_vtab)->_process_entry(__pyx_v_self,__pyx_v_current_entry,Py_None); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1702; goto __pyx_L1;}
7042
 
          Py_DECREF(__pyx_v_result);
7043
 
          __pyx_v_result = __pyx_6;
7044
 
          __pyx_6 = 0;
7045
 
 
7046
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1703 */
7047
 
          __pyx_1 = __pyx_v_result != Py_None;
7048
 
          if (__pyx_1) {
7049
 
            __pyx_1 = __pyx_v_result == __pyx_v_self->uninteresting;
7050
 
            if (__pyx_1) {
7051
 
              Py_INCREF(Py_None);
7052
 
              Py_DECREF(__pyx_v_result);
7053
 
              __pyx_v_result = Py_None;
7054
 
              goto __pyx_L13;
7055
 
            }
7056
 
            __pyx_L13:;
7057
 
            goto __pyx_L12;
7058
 
          }
7059
 
          __pyx_L12:;
7060
 
 
7061
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1706 */
7062
 
          __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1706; goto __pyx_L1;}
7063
 
          Py_DECREF(__pyx_v_advance_path);
7064
 
          __pyx_v_advance_path = __pyx_4;
7065
 
          __pyx_4 = 0;
7066
 
        }
7067
 
        __pyx_L11:;
7068
 
        goto __pyx_L10;
7069
 
      }
7070
 
      /*else*/ {
7071
 
 
7072
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1710 */
7073
 
        __pyx_5 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self->__pyx_vtab)->_process_entry(__pyx_v_self,__pyx_v_current_entry,__pyx_v_current_path_info); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1710; goto __pyx_L1;}
7074
 
        Py_DECREF(__pyx_v_result);
7075
 
        __pyx_v_result = __pyx_5;
7076
 
        __pyx_5 = 0;
7077
 
 
7078
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1711 */
7079
 
        __pyx_1 = __pyx_v_result != Py_None;
7080
 
        if (__pyx_1) {
7081
 
 
7082
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1712 */
7083
 
          __pyx_v_path_handled = (-1);
7084
 
 
7085
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1713 */
7086
 
          __pyx_1 = __pyx_v_result == __pyx_v_self->uninteresting;
7087
 
          if (__pyx_1) {
7088
 
            Py_INCREF(Py_None);
7089
 
            Py_DECREF(__pyx_v_result);
7090
 
            __pyx_v_result = Py_None;
7091
 
            goto __pyx_L15;
7092
 
          }
7093
 
          __pyx_L15:;
7094
 
          goto __pyx_L14;
7095
 
        }
7096
 
        __pyx_L14:;
7097
 
      }
7098
 
      __pyx_L10:;
7099
 
    }
7100
 
    __pyx_L7:;
7101
 
 
7102
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1717 */
7103
 
    __pyx_3 = __pyx_v_advance_entry;
7104
 
    Py_INCREF(__pyx_3);
7105
 
    __pyx_1 = PyObject_IsTrue(__pyx_3); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1717; goto __pyx_L1;}
7106
 
    if (__pyx_1) {
7107
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
7108
 
      __pyx_1 = __pyx_v_current_entry != Py_None;
7109
 
      __pyx_3 = PyInt_FromLong(__pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1717; goto __pyx_L1;}
7110
 
    }
7111
 
    __pyx_1 = PyObject_IsTrue(__pyx_3); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1717; goto __pyx_L1;}
7112
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
7113
 
    if (__pyx_1) {
7114
 
 
7115
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1718 */
7116
 
      __pyx_v_self->current_block_pos = (__pyx_v_self->current_block_pos + 1);
7117
 
 
7118
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1719 */
7119
 
      __pyx_1 = (__pyx_v_self->current_block_pos < PyList_GET_SIZE(__pyx_v_self->current_block_list));
7120
 
      if (__pyx_1) {
7121
 
        __pyx_2 = PyInt_FromLong(__pyx_v_self->current_block_pos); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1720; goto __pyx_L1;}
7122
 
        __pyx_6 = PyObject_GetItem(__pyx_v_self->current_block_list, __pyx_2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1720; goto __pyx_L1;}
7123
 
        Py_DECREF(__pyx_2); __pyx_2 = 0;
7124
 
        Py_DECREF(__pyx_v_current_entry);
7125
 
        __pyx_v_current_entry = __pyx_6;
7126
 
        __pyx_6 = 0;
7127
 
        goto __pyx_L17;
7128
 
      }
7129
 
      /*else*/ {
7130
 
        Py_INCREF(Py_None);
7131
 
        Py_DECREF(__pyx_v_current_entry);
7132
 
        __pyx_v_current_entry = Py_None;
7133
 
      }
7134
 
      __pyx_L17:;
7135
 
      goto __pyx_L16;
7136
 
    }
7137
 
    __pyx_L16:;
7138
 
 
7139
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1724 */
7140
 
    __pyx_4 = __pyx_v_advance_path;
7141
 
    Py_INCREF(__pyx_4);
7142
 
    __pyx_1 = PyObject_IsTrue(__pyx_4); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1724; goto __pyx_L1;}
7143
 
    if (__pyx_1) {
7144
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
7145
 
      __pyx_1 = __pyx_v_current_path_info != Py_None;
7146
 
      __pyx_4 = PyInt_FromLong(__pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1724; goto __pyx_L1;}
7147
 
    }
7148
 
    __pyx_1 = PyObject_IsTrue(__pyx_4); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1724; goto __pyx_L1;}
7149
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
7150
 
    if (__pyx_1) {
7151
 
 
7152
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1725 */
7153
 
      __pyx_1 = (!__pyx_v_path_handled);
7154
 
      if (__pyx_1) {
7155
 
 
7156
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1727 */
7157
 
        __pyx_1 = __pyx_v_self->want_unversioned;
7158
 
        if (__pyx_1) {
7159
 
 
7160
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1728 */
7161
 
          __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_bool); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1728; goto __pyx_L1;}
7162
 
          __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_stat); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1729; goto __pyx_L1;}
7163
 
          __pyx_6 = PyObject_GetAttr(__pyx_2, __pyx_n_S_ISREG); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1729; goto __pyx_L1;}
7164
 
          Py_DECREF(__pyx_2); __pyx_2 = 0;
7165
 
          __pyx_4 = PyInt_FromLong(3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1729; goto __pyx_L1;}
7166
 
          __pyx_2 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1729; goto __pyx_L1;}
7167
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
7168
 
          __pyx_4 = PyObject_GetAttr(__pyx_2, __pyx_n_st_mode); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1729; goto __pyx_L1;}
7169
 
          Py_DECREF(__pyx_2); __pyx_2 = 0;
7170
 
          __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1729; goto __pyx_L1;}
7171
 
          PyTuple_SET_ITEM(__pyx_2, 0, __pyx_4);
7172
 
          __pyx_4 = 0;
7173
 
          __pyx_3 = PyObject_CallObject(__pyx_6, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1729; goto __pyx_L1;}
7174
 
          Py_DECREF(__pyx_6); __pyx_6 = 0;
7175
 
          Py_DECREF(__pyx_2); __pyx_2 = 0;
7176
 
          __pyx_1 = PyObject_IsTrue(__pyx_3); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1730; goto __pyx_L1;}
7177
 
          if (__pyx_1) {
7178
 
            Py_DECREF(__pyx_3); __pyx_3 = 0;
7179
 
            __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_stat); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1730; goto __pyx_L1;}
7180
 
            __pyx_6 = PyObject_GetAttr(__pyx_4, __pyx_n_S_IEXEC); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1730; goto __pyx_L1;}
7181
 
            Py_DECREF(__pyx_4); __pyx_4 = 0;
7182
 
            __pyx_2 = PyInt_FromLong(3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1730; goto __pyx_L1;}
7183
 
            __pyx_4 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1730; goto __pyx_L1;}
7184
 
            Py_DECREF(__pyx_2); __pyx_2 = 0;
7185
 
            __pyx_2 = PyObject_GetAttr(__pyx_4, __pyx_n_st_mode); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1730; goto __pyx_L1;}
7186
 
            Py_DECREF(__pyx_4); __pyx_4 = 0;
7187
 
            __pyx_3 = PyNumber_And(__pyx_6, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1730; goto __pyx_L1;}
7188
 
            Py_DECREF(__pyx_6); __pyx_6 = 0;
7189
 
            Py_DECREF(__pyx_2); __pyx_2 = 0;
7190
 
          }
7191
 
          __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1728; goto __pyx_L1;}
7192
 
          PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3);
7193
 
          __pyx_3 = 0;
7194
 
          __pyx_6 = PyObject_CallObject(__pyx_5, __pyx_4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1728; goto __pyx_L1;}
7195
 
          Py_DECREF(__pyx_5); __pyx_5 = 0;
7196
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
7197
 
          Py_DECREF(__pyx_v_new_executable);
7198
 
          __pyx_v_new_executable = __pyx_6;
7199
 
          __pyx_6 = 0;
7200
 
 
7201
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1731 */
7202
 
          /*try:*/ {
7203
 
            __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1732; goto __pyx_L21;}
7204
 
            __pyx_3 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1732; goto __pyx_L21;}
7205
 
            Py_DECREF(__pyx_2); __pyx_2 = 0;
7206
 
            __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1732; goto __pyx_L21;}
7207
 
            PyTuple_SET_ITEM(__pyx_5, 0, __pyx_3);
7208
 
            __pyx_3 = 0;
7209
 
            __pyx_4 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1732; goto __pyx_L21;}
7210
 
            Py_DECREF(__pyx_5); __pyx_5 = 0;
7211
 
            __pyx_6 = PyInt_FromLong(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1732; goto __pyx_L21;}
7212
 
            __pyx_2 = PyObject_GetItem(__pyx_4, __pyx_6); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1732; goto __pyx_L21;}
7213
 
            Py_DECREF(__pyx_4); __pyx_4 = 0;
7214
 
            Py_DECREF(__pyx_6); __pyx_6 = 0;
7215
 
            Py_DECREF(__pyx_v_relpath_unicode);
7216
 
            __pyx_v_relpath_unicode = __pyx_2;
7217
 
            __pyx_2 = 0;
7218
 
          }
7219
 
          goto __pyx_L22;
7220
 
          __pyx_L21:;
7221
 
          Py_XDECREF(__pyx_3); __pyx_3 = 0;
7222
 
          Py_XDECREF(__pyx_5); __pyx_5 = 0;
7223
 
          Py_XDECREF(__pyx_4); __pyx_4 = 0;
7224
 
          Py_XDECREF(__pyx_6); __pyx_6 = 0;
7225
 
          Py_XDECREF(__pyx_2); __pyx_2 = 0;
7226
 
 
7227
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1733 */
7228
 
          __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_UnicodeDecodeError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1733; goto __pyx_L1;}
7229
 
          __pyx_1 = PyErr_ExceptionMatches(__pyx_3);
7230
 
          Py_DECREF(__pyx_3); __pyx_3 = 0;
7231
 
          if (__pyx_1) {
7232
 
            __Pyx_AddTraceback("_dirstate_helpers_c._loop_one_block");
7233
 
            if (__Pyx_GetException(&__pyx_5, &__pyx_4, &__pyx_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1733; goto __pyx_L1;}
7234
 
            __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_errors); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1734; goto __pyx_L1;}
7235
 
            __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_BadFilenameEncoding); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1734; goto __pyx_L1;}
7236
 
            Py_DECREF(__pyx_2); __pyx_2 = 0;
7237
 
            __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1735; goto __pyx_L1;}
7238
 
            __pyx_7 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1735; goto __pyx_L1;}
7239
 
            Py_DECREF(__pyx_2); __pyx_2 = 0;
7240
 
            __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_osutils); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1735; goto __pyx_L1;}
7241
 
            __pyx_8 = PyObject_GetAttr(__pyx_2, __pyx_n__fs_enc); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1735; goto __pyx_L1;}
7242
 
            Py_DECREF(__pyx_2); __pyx_2 = 0;
7243
 
            __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1734; goto __pyx_L1;}
7244
 
            PyTuple_SET_ITEM(__pyx_2, 0, __pyx_7);
7245
 
            PyTuple_SET_ITEM(__pyx_2, 1, __pyx_8);
7246
 
            __pyx_7 = 0;
7247
 
            __pyx_8 = 0;
7248
 
            __pyx_7 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1734; goto __pyx_L1;}
7249
 
            Py_DECREF(__pyx_3); __pyx_3 = 0;
7250
 
            Py_DECREF(__pyx_2); __pyx_2 = 0;
7251
 
            __Pyx_Raise(__pyx_7, 0, 0);
7252
 
            Py_DECREF(__pyx_7); __pyx_7 = 0;
7253
 
            {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1734; goto __pyx_L1;}
7254
 
            Py_DECREF(__pyx_5); __pyx_5 = 0;
7255
 
            Py_DECREF(__pyx_4); __pyx_4 = 0;
7256
 
            Py_DECREF(__pyx_6); __pyx_6 = 0;
7257
 
            goto __pyx_L22;
7258
 
          }
7259
 
          goto __pyx_L1;
7260
 
          __pyx_L22:;
7261
 
 
7262
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1736 */
7263
 
          __pyx_1 = __pyx_v_result != Py_None;
7264
 
          if (__pyx_1) {
7265
 
            __pyx_8 = __Pyx_GetName(__pyx_b, __pyx_n_AssertionError); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1737; goto __pyx_L1;}
7266
 
            __pyx_3 = PyNumber_Remainder(__pyx_k92p, __pyx_v_result); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1738; goto __pyx_L1;}
7267
 
            __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1737; goto __pyx_L1;}
7268
 
            PyTuple_SET_ITEM(__pyx_2, 0, __pyx_3);
7269
 
            __pyx_3 = 0;
7270
 
            __pyx_7 = PyObject_CallObject(__pyx_8, __pyx_2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1737; goto __pyx_L1;}
7271
 
            Py_DECREF(__pyx_8); __pyx_8 = 0;
7272
 
            Py_DECREF(__pyx_2); __pyx_2 = 0;
7273
 
            __Pyx_Raise(__pyx_7, 0, 0);
7274
 
            Py_DECREF(__pyx_7); __pyx_7 = 0;
7275
 
            {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1737; goto __pyx_L1;}
7276
 
            goto __pyx_L23;
7277
 
          }
7278
 
          __pyx_L23:;
7279
 
 
7280
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1739 */
7281
 
          __pyx_5 = PyTuple_New(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1740; goto __pyx_L1;}
7282
 
          Py_INCREF(Py_None);
7283
 
          PyTuple_SET_ITEM(__pyx_5, 0, Py_None);
7284
 
          Py_INCREF(__pyx_v_relpath_unicode);
7285
 
          PyTuple_SET_ITEM(__pyx_5, 1, __pyx_v_relpath_unicode);
7286
 
          __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1741; goto __pyx_L1;}
7287
 
          __pyx_6 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1742; goto __pyx_L1;}
7288
 
          __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1742; goto __pyx_L1;}
7289
 
          __pyx_8 = PyTuple_New(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1742; goto __pyx_L1;}
7290
 
          PyTuple_SET_ITEM(__pyx_8, 0, __pyx_6);
7291
 
          PyTuple_SET_ITEM(__pyx_8, 1, __pyx_3);
7292
 
          __pyx_6 = 0;
7293
 
          __pyx_3 = 0;
7294
 
          __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1743; goto __pyx_L1;}
7295
 
          Py_INCREF(Py_None);
7296
 
          PyTuple_SET_ITEM(__pyx_2, 0, Py_None);
7297
 
          Py_INCREF(Py_None);
7298
 
          PyTuple_SET_ITEM(__pyx_2, 1, Py_None);
7299
 
          __pyx_7 = PyInt_FromLong(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1744; goto __pyx_L1;}
7300
 
          __pyx_6 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_7); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1744; goto __pyx_L1;}
7301
 
          Py_DECREF(__pyx_7); __pyx_7 = 0;
7302
 
          __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1744; goto __pyx_L1;}
7303
 
          PyTuple_SET_ITEM(__pyx_3, 0, __pyx_6);
7304
 
          __pyx_6 = 0;
7305
 
          __pyx_7 = PyObject_CallObject(__pyx_v_self->utf8_decode, __pyx_3); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1744; goto __pyx_L1;}
7306
 
          Py_DECREF(__pyx_3); __pyx_3 = 0;
7307
 
          __pyx_6 = PyInt_FromLong(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1744; goto __pyx_L1;}
7308
 
          __pyx_3 = PyObject_GetItem(__pyx_7, __pyx_6); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1744; goto __pyx_L1;}
7309
 
          Py_DECREF(__pyx_7); __pyx_7 = 0;
7310
 
          Py_DECREF(__pyx_6); __pyx_6 = 0;
7311
 
          __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1744; goto __pyx_L1;}
7312
 
          Py_INCREF(Py_None);
7313
 
          PyTuple_SET_ITEM(__pyx_7, 0, Py_None);
7314
 
          PyTuple_SET_ITEM(__pyx_7, 1, __pyx_3);
7315
 
          __pyx_3 = 0;
7316
 
          __pyx_6 = PyInt_FromLong(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1745; goto __pyx_L1;}
7317
 
          __pyx_3 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_6); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1745; goto __pyx_L1;}
7318
 
          Py_DECREF(__pyx_6); __pyx_6 = 0;
7319
 
          __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1745; goto __pyx_L1;}
7320
 
          Py_INCREF(Py_None);
7321
 
          PyTuple_SET_ITEM(__pyx_6, 0, Py_None);
7322
 
          PyTuple_SET_ITEM(__pyx_6, 1, __pyx_3);
7323
 
          __pyx_3 = 0;
7324
 
          __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1746; goto __pyx_L1;}
7325
 
          Py_INCREF(Py_None);
7326
 
          PyTuple_SET_ITEM(__pyx_3, 0, Py_None);
7327
 
          Py_INCREF(__pyx_v_new_executable);
7328
 
          PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_new_executable);
7329
 
          __pyx_9 = PyTuple_New(8); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1739; goto __pyx_L1;}
7330
 
          Py_INCREF(Py_None);
7331
 
          PyTuple_SET_ITEM(__pyx_9, 0, Py_None);
7332
 
          PyTuple_SET_ITEM(__pyx_9, 1, __pyx_5);
7333
 
          PyTuple_SET_ITEM(__pyx_9, 2, __pyx_4);
7334
 
          PyTuple_SET_ITEM(__pyx_9, 3, __pyx_8);
7335
 
          PyTuple_SET_ITEM(__pyx_9, 4, __pyx_2);
7336
 
          PyTuple_SET_ITEM(__pyx_9, 5, __pyx_7);
7337
 
          PyTuple_SET_ITEM(__pyx_9, 6, __pyx_6);
7338
 
          PyTuple_SET_ITEM(__pyx_9, 7, __pyx_3);
7339
 
          __pyx_5 = 0;
7340
 
          __pyx_4 = 0;
7341
 
          __pyx_8 = 0;
7342
 
          __pyx_2 = 0;
7343
 
          __pyx_7 = 0;
7344
 
          __pyx_6 = 0;
7345
 
          __pyx_3 = 0;
7346
 
          Py_DECREF(__pyx_v_result);
7347
 
          __pyx_v_result = __pyx_9;
7348
 
          __pyx_9 = 0;
7349
 
          goto __pyx_L20;
7350
 
        }
7351
 
        __pyx_L20:;
7352
 
 
7353
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1749 */
7354
 
        __pyx_5 = PyInt_FromLong(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1749; goto __pyx_L1;}
7355
 
        __pyx_4 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1749; goto __pyx_L1;}
7356
 
        Py_DECREF(__pyx_5); __pyx_5 = 0;
7357
 
        __pyx_1 = PySequence_Contains(__pyx_n_directory, __pyx_4); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1749; goto __pyx_L1;}
7358
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
7359
 
        if (__pyx_1) {
7360
 
 
7361
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1750 */
7362
 
          __pyx_8 = PyInt_FromLong(__pyx_v_self->path_index); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1750; goto __pyx_L1;}
7363
 
          if (PyObject_DelItem(__pyx_v_self->current_dir_list, __pyx_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1750; goto __pyx_L1;}
7364
 
          Py_DECREF(__pyx_8); __pyx_8 = 0;
7365
 
 
7366
 
          /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1751 */
7367
 
          __pyx_v_self->path_index = (__pyx_v_self->path_index - 1);
7368
 
          goto __pyx_L24;
7369
 
        }
7370
 
        __pyx_L24:;
7371
 
        goto __pyx_L19;
7372
 
      }
7373
 
      __pyx_L19:;
7374
 
 
7375
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1754 */
7376
 
      __pyx_2 = PyInt_FromLong(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1754; goto __pyx_L1;}
7377
 
      __pyx_7 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1754; goto __pyx_L1;}
7378
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
7379
 
      if (PyObject_Cmp(__pyx_7, __pyx_k94p, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1754; goto __pyx_L1;}
7380
 
      __pyx_1 = __pyx_1 == 0;
7381
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
7382
 
      if (__pyx_1) {
7383
 
 
7384
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1755 */
7385
 
        __pyx_6 = PyInt_FromLong(__pyx_v_self->path_index); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1755; goto __pyx_L1;}
7386
 
        if (PyObject_DelItem(__pyx_v_self->current_dir_list, __pyx_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1755; goto __pyx_L1;}
7387
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
7388
 
 
7389
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1756 */
7390
 
        __pyx_v_self->path_index = (__pyx_v_self->path_index - 1);
7391
 
        goto __pyx_L25;
7392
 
      }
7393
 
      __pyx_L25:;
7394
 
 
7395
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1757 */
7396
 
      __pyx_v_self->path_index = (__pyx_v_self->path_index + 1);
7397
 
 
7398
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1758 */
7399
 
      __pyx_10 = PyObject_Length(__pyx_v_self->current_dir_list); if (__pyx_10 == -1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1758; goto __pyx_L1;}
7400
 
      __pyx_1 = (__pyx_v_self->path_index < __pyx_10);
7401
 
      if (__pyx_1) {
7402
 
 
7403
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1759 */
7404
 
        __pyx_3 = PyInt_FromLong(__pyx_v_self->path_index); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1759; goto __pyx_L1;}
7405
 
        __pyx_9 = PyObject_GetItem(__pyx_v_self->current_dir_list, __pyx_3); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1759; goto __pyx_L1;}
7406
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
7407
 
        Py_DECREF(__pyx_v_current_path_info);
7408
 
        __pyx_v_current_path_info = __pyx_9;
7409
 
        __pyx_9 = 0;
7410
 
 
7411
 
        /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1760 */
7412
 
        __pyx_5 = PyInt_FromLong(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1760; goto __pyx_L1;}
7413
 
        __pyx_4 = PyObject_GetItem(__pyx_v_current_path_info, __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1760; goto __pyx_L1;}
7414
 
        Py_DECREF(__pyx_5); __pyx_5 = 0;
7415
 
        if (PyObject_Cmp(__pyx_4, __pyx_n_directory, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1760; goto __pyx_L1;}
7416
 
        __pyx_1 = __pyx_1 == 0;
7417
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
7418
 
        if (__pyx_1) {
7419
 
          __pyx_8 = ((struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self->__pyx_vtab)->_maybe_tree_ref(__pyx_v_self,__pyx_v_current_path_info); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1761; goto __pyx_L1;}
7420
 
          Py_DECREF(__pyx_v_current_path_info);
7421
 
          __pyx_v_current_path_info = __pyx_8;
7422
 
          __pyx_8 = 0;
7423
 
          goto __pyx_L27;
7424
 
        }
7425
 
        __pyx_L27:;
7426
 
        goto __pyx_L26;
7427
 
      }
7428
 
      /*else*/ {
7429
 
        Py_INCREF(Py_None);
7430
 
        Py_DECREF(__pyx_v_current_path_info);
7431
 
        __pyx_v_current_path_info = Py_None;
7432
 
      }
7433
 
      __pyx_L26:;
7434
 
      goto __pyx_L18;
7435
 
    }
7436
 
    __pyx_L18:;
7437
 
 
7438
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1765 */
7439
 
    __pyx_1 = __pyx_v_result != Py_None;
7440
 
    if (__pyx_1) {
7441
 
      Py_INCREF(__pyx_v_result);
7442
 
      __pyx_r = __pyx_v_result;
7443
 
      goto __pyx_L0;
7444
 
      goto __pyx_L28;
7445
 
    }
7446
 
    __pyx_L28:;
7447
 
  }
7448
 
 
7449
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1768 */
7450
 
  __pyx_1 = __pyx_v_self->current_block != Py_None;
7451
 
  if (__pyx_1) {
7452
 
 
7453
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1769 */
7454
 
    __pyx_v_self->block_index = (__pyx_v_self->block_index + 1);
7455
 
 
7456
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1770 */
7457
 
    ((struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC *)__pyx_v_self->__pyx_vtab)->_update_current_block(__pyx_v_self);
7458
 
    goto __pyx_L29;
7459
 
  }
7460
 
  __pyx_L29:;
7461
 
 
7462
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1771 */
7463
 
  __pyx_1 = __pyx_v_self->current_dir_info != Py_None;
7464
 
  if (__pyx_1) {
7465
 
 
7466
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1772 */
7467
 
    __pyx_v_self->path_index = 0;
7468
 
 
7469
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1773 */
7470
 
    Py_INCREF(Py_None);
7471
 
    Py_DECREF(__pyx_v_self->current_dir_list);
7472
 
    __pyx_v_self->current_dir_list = Py_None;
7473
 
 
7474
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1774 */
7475
 
    /*try:*/ {
7476
 
 
7477
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1775 */
7478
 
      __pyx_2 = PyObject_GetAttr(__pyx_v_self->dir_iterator, __pyx_n_next); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1775; goto __pyx_L31;}
7479
 
      __pyx_7 = PyObject_CallObject(__pyx_2, 0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1775; goto __pyx_L31;}
7480
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
7481
 
      Py_DECREF(__pyx_v_self->current_dir_info);
7482
 
      __pyx_v_self->current_dir_info = __pyx_7;
7483
 
      __pyx_7 = 0;
7484
 
 
7485
 
      /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1776 */
7486
 
      __pyx_6 = PyInt_FromLong(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1776; goto __pyx_L31;}
7487
 
      __pyx_3 = PyObject_GetItem(__pyx_v_self->current_dir_info, __pyx_6); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1776; goto __pyx_L31;}
7488
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
7489
 
      Py_DECREF(__pyx_v_self->current_dir_list);
7490
 
      __pyx_v_self->current_dir_list = __pyx_3;
7491
 
      __pyx_3 = 0;
7492
 
    }
7493
 
    goto __pyx_L32;
7494
 
    __pyx_L31:;
7495
 
    Py_XDECREF(__pyx_9); __pyx_9 = 0;
7496
 
    Py_XDECREF(__pyx_5); __pyx_5 = 0;
7497
 
    Py_XDECREF(__pyx_4); __pyx_4 = 0;
7498
 
    Py_XDECREF(__pyx_8); __pyx_8 = 0;
7499
 
    Py_XDECREF(__pyx_2); __pyx_2 = 0;
7500
 
    Py_XDECREF(__pyx_7); __pyx_7 = 0;
7501
 
    Py_XDECREF(__pyx_6); __pyx_6 = 0;
7502
 
    Py_XDECREF(__pyx_3); __pyx_3 = 0;
7503
 
 
7504
 
    /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1777 */
7505
 
    __pyx_9 = __Pyx_GetName(__pyx_b, __pyx_n_StopIteration); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1777; goto __pyx_L1;}
7506
 
    __pyx_1 = PyErr_ExceptionMatches(__pyx_9);
7507
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
7508
 
    if (__pyx_1) {
7509
 
      __Pyx_AddTraceback("_dirstate_helpers_c._loop_one_block");
7510
 
      if (__Pyx_GetException(&__pyx_5, &__pyx_4, &__pyx_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1777; goto __pyx_L1;}
7511
 
      Py_INCREF(Py_None);
7512
 
      Py_DECREF(__pyx_v_self->current_dir_info);
7513
 
      __pyx_v_self->current_dir_info = Py_None;
7514
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
7515
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
7516
 
      Py_DECREF(__pyx_8); __pyx_8 = 0;
7517
 
      goto __pyx_L32;
7518
 
    }
7519
 
    goto __pyx_L1;
7520
 
    __pyx_L32:;
7521
 
    goto __pyx_L30;
7522
 
  }
7523
 
  __pyx_L30:;
7524
 
 
7525
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
7526
 
  goto __pyx_L0;
7527
 
  __pyx_L1:;
7528
 
  Py_XDECREF(__pyx_2);
7529
 
  Py_XDECREF(__pyx_3);
7530
 
  Py_XDECREF(__pyx_4);
7531
 
  Py_XDECREF(__pyx_5);
7532
 
  Py_XDECREF(__pyx_6);
7533
 
  Py_XDECREF(__pyx_7);
7534
 
  Py_XDECREF(__pyx_8);
7535
 
  Py_XDECREF(__pyx_9);
7536
 
  __Pyx_AddTraceback("_dirstate_helpers_c.ProcessEntryC._loop_one_block");
7537
 
  __pyx_r = 0;
7538
 
  __pyx_L0:;
7539
 
  Py_DECREF(__pyx_v_current_entry);
7540
 
  Py_DECREF(__pyx_v_current_path_info);
7541
 
  Py_DECREF(__pyx_v_disk_kind);
7542
 
  Py_DECREF(__pyx_v_advance_entry);
7543
 
  Py_DECREF(__pyx_v_advance_path);
7544
 
  Py_DECREF(__pyx_v_result);
7545
 
  Py_DECREF(__pyx_v_new_executable);
7546
 
  Py_DECREF(__pyx_v_relpath_unicode);
7547
 
  Py_DECREF(__pyx_v_self);
7548
 
  return __pyx_r;
7549
 
}
7550
 
 
7551
 
static __Pyx_InternTabEntry __pyx_intern_tab[] = {
7552
 
  {&__pyx_n_AssertionError, "AssertionError"},
7553
 
  {&__pyx_n_AttributeError, "AttributeError"},
7554
 
  {&__pyx_n_BadFilenameEncoding, "BadFilenameEncoding"},
7555
 
  {&__pyx_n_CorruptDirstate, "CorruptDirstate"},
7556
 
  {&__pyx_n_DirState, "DirState"},
7557
 
  {&__pyx_n_DirstateCorrupt, "DirstateCorrupt"},
7558
 
  {&__pyx_n_EINVAL, "EINVAL"},
7559
 
  {&__pyx_n_ENOENT, "ENOENT"},
7560
 
  {&__pyx_n_ENOTDIR, "ENOTDIR"},
7561
 
  {&__pyx_n_Exception, "Exception"},
7562
 
  {&__pyx_n_False, "False"},
7563
 
  {&__pyx_n_IN_MEMORY_MODIFIED, "IN_MEMORY_MODIFIED"},
7564
 
  {&__pyx_n_IN_MEMORY_UNMODIFIED, "IN_MEMORY_UNMODIFIED"},
7565
 
  {&__pyx_n_KeyError, "KeyError"},
7566
 
  {&__pyx_n_NULLSTAT, "NULLSTAT"},
7567
 
  {&__pyx_n_NULL_PARENT_DETAILS, "NULL_PARENT_DETAILS"},
7568
 
  {&__pyx_n_OSError, "OSError"},
7569
 
  {&__pyx_n_S_IEXEC, "S_IEXEC"},
7570
 
  {&__pyx_n_S_ISREG, "S_ISREG"},
7571
 
  {&__pyx_n_StopIteration, "StopIteration"},
7572
 
  {&__pyx_n_True, "True"},
7573
 
  {&__pyx_n_TypeError, "TypeError"},
7574
 
  {&__pyx_n_UnicodeDecodeError, "UnicodeDecodeError"},
7575
 
  {&__pyx_n__cutoff_time, "_cutoff_time"},
7576
 
  {&__pyx_n__dirblock_state, "_dirblock_state"},
7577
 
  {&__pyx_n__dirblocks, "_dirblocks"},
7578
 
  {&__pyx_n__directory_is_tree_reference, "_directory_is_tree_reference"},
7579
 
  {&__pyx_n__encode, "_encode"},
7580
 
  {&__pyx_n__end_of_header, "_end_of_header"},
7581
 
  {&__pyx_n__ensure_block, "_ensure_block"},
7582
 
  {&__pyx_n__entries_for_path, "_entries_for_path"},
7583
 
  {&__pyx_n__filename, "_filename"},
7584
 
  {&__pyx_n__find_block_index_from_key, "_find_block_index_from_key"},
7585
 
  {&__pyx_n__fs_enc, "_fs_enc"},
7586
 
  {&__pyx_n__get_block_entry_index, "_get_block_entry_index"},
7587
 
  {&__pyx_n__get_entry, "_get_entry"},
7588
 
  {&__pyx_n__is_executable, "_is_executable"},
7589
 
  {&__pyx_n__num_entries, "_num_entries"},
7590
 
  {&__pyx_n__num_present_parents, "_num_present_parents"},
7591
 
  {&__pyx_n__observed_sha1, "_observed_sha1"},
7592
 
  {&__pyx_n__parse_dirblocks, "_parse_dirblocks"},
7593
 
  {&__pyx_n__read_link, "_read_link"},
7594
 
  {&__pyx_n__sha1_file, "_sha1_file"},
7595
 
  {&__pyx_n__sha1_provider, "_sha1_provider"},
7596
 
  {&__pyx_n__sha_cutoff_time, "_sha_cutoff_time"},
7597
 
  {&__pyx_n__split_root_dirblock_into_contents, "_split_root_dirblock_into_contents"},
7598
 
  {&__pyx_n__state_file, "_state_file"},
7599
 
  {&__pyx_n__utf8_decode, "_utf8_decode"},
7600
 
  {&__pyx_n__walkdirs_utf8, "_walkdirs_utf8"},
7601
 
  {&__pyx_n_a, "a"},
7602
 
  {&__pyx_n_absent, "absent"},
7603
 
  {&__pyx_n_abspath, "abspath"},
7604
 
  {&__pyx_n_add, "add"},
7605
 
  {&__pyx_n_b2a_base64, "b2a_base64"},
7606
 
  {&__pyx_n_binascii, "binascii"},
7607
 
  {&__pyx_n_bisect, "bisect"},
7608
 
  {&__pyx_n_bisect_left, "bisect_left"},
7609
 
  {&__pyx_n_bool, "bool"},
7610
 
  {&__pyx_n_bzrlib, "bzrlib"},
7611
 
  {&__pyx_n_cache_utf8, "cache_utf8"},
7612
 
  {&__pyx_n_cmp, "cmp"},
7613
 
  {&__pyx_n_d, "d"},
7614
 
  {&__pyx_n_decode, "decode"},
7615
 
  {&__pyx_n_directory, "directory"},
7616
 
  {&__pyx_n_errno, "errno"},
7617
 
  {&__pyx_n_errors, "errors"},
7618
 
  {&__pyx_n_f, "f"},
7619
 
  {&__pyx_n_file, "file"},
7620
 
  {&__pyx_n_file_kind_from_stat_mode, "file_kind_from_stat_mode"},
7621
 
  {&__pyx_n_fstat, "fstat"},
7622
 
  {&__pyx_n_int, "int"},
7623
 
  {&__pyx_n_is_inside, "is_inside"},
7624
 
  {&__pyx_n_is_inside_any, "is_inside_any"},
7625
 
  {&__pyx_n_l, "l"},
7626
 
  {&__pyx_n_lstat, "lstat"},
7627
 
  {&__pyx_n_next, "next"},
7628
 
  {&__pyx_n_object, "object"},
7629
 
  {&__pyx_n_os, "os"},
7630
 
  {&__pyx_n_osutils, "osutils"},
7631
 
  {&__pyx_n_pack, "pack"},
7632
 
  {&__pyx_n_path, "path"},
7633
 
  {&__pyx_n_path_utf8, "path_utf8"},
7634
 
  {&__pyx_n_pathjoin, "pathjoin"},
7635
 
  {&__pyx_n_platform, "platform"},
7636
 
  {&__pyx_n_pop, "pop"},
7637
 
  {&__pyx_n_prefix, "prefix"},
7638
 
  {&__pyx_n_read, "read"},
7639
 
  {&__pyx_n_relocated, "relocated"},
7640
 
  {&__pyx_n_seek, "seek"},
7641
 
  {&__pyx_n_set, "set"},
7642
 
  {&__pyx_n_sha_file, "sha_file"},
7643
 
  {&__pyx_n_split, "split"},
7644
 
  {&__pyx_n_splitpath, "splitpath"},
7645
 
  {&__pyx_n_st_ctime, "st_ctime"},
7646
 
  {&__pyx_n_st_dev, "st_dev"},
7647
 
  {&__pyx_n_st_ino, "st_ino"},
7648
 
  {&__pyx_n_st_mode, "st_mode"},
7649
 
  {&__pyx_n_st_mtime, "st_mtime"},
7650
 
  {&__pyx_n_st_size, "st_size"},
7651
 
  {&__pyx_n_stat, "stat"},
7652
 
  {&__pyx_n_stat_and_sha1, "stat_and_sha1"},
7653
 
  {&__pyx_n_struct, "struct"},
7654
 
  {&__pyx_n_symlink, "symlink"},
7655
 
  {&__pyx_n_sys, "sys"},
7656
 
  {&__pyx_n_type, "type"},
7657
 
  {&__pyx_n_utf8, "utf8"},
7658
 
  {&__pyx_n_win32, "win32"},
7659
 
  {&__pyx_n_winerror, "winerror"},
7660
 
  {0, 0}
7661
 
};
7662
 
 
7663
 
static __Pyx_StringTabEntry __pyx_string_tab[] = {
7664
 
  {&__pyx_k11p, __pyx_k11, sizeof(__pyx_k11)},
7665
 
  {&__pyx_k13p, __pyx_k13, sizeof(__pyx_k13)},
7666
 
  {&__pyx_k26p, __pyx_k26, sizeof(__pyx_k26)},
7667
 
  {&__pyx_k27p, __pyx_k27, sizeof(__pyx_k27)},
7668
 
  {&__pyx_k28p, __pyx_k28, sizeof(__pyx_k28)},
7669
 
  {&__pyx_k29p, __pyx_k29, sizeof(__pyx_k29)},
7670
 
  {&__pyx_k30p, __pyx_k30, sizeof(__pyx_k30)},
7671
 
  {&__pyx_k31p, __pyx_k31, sizeof(__pyx_k31)},
7672
 
  {&__pyx_k32p, __pyx_k32, sizeof(__pyx_k32)},
7673
 
  {&__pyx_k35p, __pyx_k35, sizeof(__pyx_k35)},
7674
 
  {&__pyx_k36p, __pyx_k36, sizeof(__pyx_k36)},
7675
 
  {&__pyx_k37p, __pyx_k37, sizeof(__pyx_k37)},
7676
 
  {&__pyx_k38p, __pyx_k38, sizeof(__pyx_k38)},
7677
 
  {&__pyx_k39p, __pyx_k39, sizeof(__pyx_k39)},
7678
 
  {&__pyx_k40p, __pyx_k40, sizeof(__pyx_k40)},
7679
 
  {&__pyx_k41p, __pyx_k41, sizeof(__pyx_k41)},
7680
 
  {&__pyx_k42p, __pyx_k42, sizeof(__pyx_k42)},
7681
 
  {&__pyx_k43p, __pyx_k43, sizeof(__pyx_k43)},
7682
 
  {&__pyx_k44p, __pyx_k44, sizeof(__pyx_k44)},
7683
 
  {&__pyx_k45p, __pyx_k45, sizeof(__pyx_k45)},
7684
 
  {&__pyx_k46p, __pyx_k46, sizeof(__pyx_k46)},
7685
 
  {&__pyx_k47p, __pyx_k47, sizeof(__pyx_k47)},
7686
 
  {&__pyx_k48p, __pyx_k48, sizeof(__pyx_k48)},
7687
 
  {&__pyx_k49p, __pyx_k49, sizeof(__pyx_k49)},
7688
 
  {&__pyx_k53p, __pyx_k53, sizeof(__pyx_k53)},
7689
 
  {&__pyx_k55p, __pyx_k55, sizeof(__pyx_k55)},
7690
 
  {&__pyx_k58p, __pyx_k58, sizeof(__pyx_k58)},
7691
 
  {&__pyx_k59p, __pyx_k59, sizeof(__pyx_k59)},
7692
 
  {&__pyx_k61p, __pyx_k61, sizeof(__pyx_k61)},
7693
 
  {&__pyx_k65p, __pyx_k65, sizeof(__pyx_k65)},
7694
 
  {&__pyx_k66p, __pyx_k66, sizeof(__pyx_k66)},
7695
 
  {&__pyx_k69p, __pyx_k69, sizeof(__pyx_k69)},
7696
 
  {&__pyx_k71p, __pyx_k71, sizeof(__pyx_k71)},
7697
 
  {&__pyx_k73p, __pyx_k73, sizeof(__pyx_k73)},
7698
 
  {&__pyx_k75p, __pyx_k75, sizeof(__pyx_k75)},
7699
 
  {&__pyx_k77p, __pyx_k77, sizeof(__pyx_k77)},
7700
 
  {&__pyx_k78p, __pyx_k78, sizeof(__pyx_k78)},
7701
 
  {&__pyx_k81p, __pyx_k81, sizeof(__pyx_k81)},
7702
 
  {&__pyx_k82p, __pyx_k82, sizeof(__pyx_k82)},
7703
 
  {&__pyx_k83p, __pyx_k83, sizeof(__pyx_k83)},
7704
 
  {&__pyx_k84p, __pyx_k84, sizeof(__pyx_k84)},
7705
 
  {&__pyx_k85p, __pyx_k85, sizeof(__pyx_k85)},
7706
 
  {&__pyx_k87p, __pyx_k87, sizeof(__pyx_k87)},
7707
 
  {&__pyx_k89p, __pyx_k89, sizeof(__pyx_k89)},
7708
 
  {&__pyx_k90p, __pyx_k90, sizeof(__pyx_k90)},
7709
 
  {&__pyx_k92p, __pyx_k92, sizeof(__pyx_k92)},
7710
 
  {&__pyx_k94p, __pyx_k94, sizeof(__pyx_k94)},
7711
 
  {0, 0, 0}
7712
 
};
7713
 
static struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader __pyx_vtable_19_dirstate_helpers_c_Reader;
7714
 
 
7715
 
static PyObject *__pyx_tp_new_19_dirstate_helpers_c_Reader(PyTypeObject *t, PyObject *a, PyObject *k) {
7716
 
  struct __pyx_obj_19_dirstate_helpers_c_Reader *p;
7717
 
  PyObject *o = (*t->tp_alloc)(t, 0);
7718
 
  if (!o) return 0;
7719
 
  p = ((struct __pyx_obj_19_dirstate_helpers_c_Reader *)o);
7720
 
  *(struct __pyx_vtabstruct_19_dirstate_helpers_c_Reader **)&p->__pyx_vtab = __pyx_vtabptr_19_dirstate_helpers_c_Reader;
7721
 
  p->state = Py_None; Py_INCREF(Py_None);
7722
 
  p->text = Py_None; Py_INCREF(Py_None);
7723
 
  return o;
7724
 
}
7725
 
 
7726
 
static void __pyx_tp_dealloc_19_dirstate_helpers_c_Reader(PyObject *o) {
7727
 
  struct __pyx_obj_19_dirstate_helpers_c_Reader *p = (struct __pyx_obj_19_dirstate_helpers_c_Reader *)o;
7728
 
  Py_XDECREF(p->state);
7729
 
  Py_XDECREF(p->text);
7730
 
  (*o->ob_type->tp_free)(o);
7731
 
}
7732
 
 
7733
 
static int __pyx_tp_traverse_19_dirstate_helpers_c_Reader(PyObject *o, visitproc v, void *a) {
7734
 
  int e;
7735
 
  struct __pyx_obj_19_dirstate_helpers_c_Reader *p = (struct __pyx_obj_19_dirstate_helpers_c_Reader *)o;
7736
 
  if (p->state) {
7737
 
    e = (*v)(p->state, a); if (e) return e;
7738
 
  }
7739
 
  if (p->text) {
7740
 
    e = (*v)(p->text, a); if (e) return e;
7741
 
  }
7742
 
  return 0;
7743
 
}
7744
 
 
7745
 
static int __pyx_tp_clear_19_dirstate_helpers_c_Reader(PyObject *o) {
7746
 
  struct __pyx_obj_19_dirstate_helpers_c_Reader *p = (struct __pyx_obj_19_dirstate_helpers_c_Reader *)o;
7747
 
  Py_XDECREF(p->state);
7748
 
  p->state = Py_None; Py_INCREF(Py_None);
7749
 
  Py_XDECREF(p->text);
7750
 
  p->text = Py_None; Py_INCREF(Py_None);
7751
 
  return 0;
7752
 
}
7753
 
 
7754
 
static struct PyMethodDef __pyx_methods_19_dirstate_helpers_c_Reader[] = {
7755
 
  {"_parse_dirblocks", (PyCFunction)__pyx_f_19_dirstate_helpers_c_6Reader__parse_dirblocks, METH_VARARGS|METH_KEYWORDS, __pyx_doc_19_dirstate_helpers_c_6Reader__parse_dirblocks},
7756
 
  {0, 0, 0, 0}
7757
 
};
7758
 
 
7759
 
static PyNumberMethods __pyx_tp_as_number_Reader = {
7760
 
  0, /*nb_add*/
7761
 
  0, /*nb_subtract*/
7762
 
  0, /*nb_multiply*/
7763
 
  0, /*nb_divide*/
7764
 
  0, /*nb_remainder*/
7765
 
  0, /*nb_divmod*/
7766
 
  0, /*nb_power*/
7767
 
  0, /*nb_negative*/
7768
 
  0, /*nb_positive*/
7769
 
  0, /*nb_absolute*/
7770
 
  0, /*nb_nonzero*/
7771
 
  0, /*nb_invert*/
7772
 
  0, /*nb_lshift*/
7773
 
  0, /*nb_rshift*/
7774
 
  0, /*nb_and*/
7775
 
  0, /*nb_xor*/
7776
 
  0, /*nb_or*/
7777
 
  0, /*nb_coerce*/
7778
 
  0, /*nb_int*/
7779
 
  0, /*nb_long*/
7780
 
  0, /*nb_float*/
7781
 
  0, /*nb_oct*/
7782
 
  0, /*nb_hex*/
7783
 
  0, /*nb_inplace_add*/
7784
 
  0, /*nb_inplace_subtract*/
7785
 
  0, /*nb_inplace_multiply*/
7786
 
  0, /*nb_inplace_divide*/
7787
 
  0, /*nb_inplace_remainder*/
7788
 
  0, /*nb_inplace_power*/
7789
 
  0, /*nb_inplace_lshift*/
7790
 
  0, /*nb_inplace_rshift*/
7791
 
  0, /*nb_inplace_and*/
7792
 
  0, /*nb_inplace_xor*/
7793
 
  0, /*nb_inplace_or*/
7794
 
  0, /*nb_floor_divide*/
7795
 
  0, /*nb_true_divide*/
7796
 
  0, /*nb_inplace_floor_divide*/
7797
 
  0, /*nb_inplace_true_divide*/
7798
 
  #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX
7799
 
  0, /*nb_index*/
7800
 
  #endif
7801
 
};
7802
 
 
7803
 
static PySequenceMethods __pyx_tp_as_sequence_Reader = {
7804
 
  0, /*sq_length*/
7805
 
  0, /*sq_concat*/
7806
 
  0, /*sq_repeat*/
7807
 
  0, /*sq_item*/
7808
 
  0, /*sq_slice*/
7809
 
  0, /*sq_ass_item*/
7810
 
  0, /*sq_ass_slice*/
7811
 
  0, /*sq_contains*/
7812
 
  0, /*sq_inplace_concat*/
7813
 
  0, /*sq_inplace_repeat*/
7814
 
};
7815
 
 
7816
 
static PyMappingMethods __pyx_tp_as_mapping_Reader = {
7817
 
  0, /*mp_length*/
7818
 
  0, /*mp_subscript*/
7819
 
  0, /*mp_ass_subscript*/
7820
 
};
7821
 
 
7822
 
static PyBufferProcs __pyx_tp_as_buffer_Reader = {
7823
 
  0, /*bf_getreadbuffer*/
7824
 
  0, /*bf_getwritebuffer*/
7825
 
  0, /*bf_getsegcount*/
7826
 
  0, /*bf_getcharbuffer*/
7827
 
};
7828
 
 
7829
 
PyTypeObject __pyx_type_19_dirstate_helpers_c_Reader = {
7830
 
  PyObject_HEAD_INIT(0)
7831
 
  0, /*ob_size*/
7832
 
  "_dirstate_helpers_c.Reader", /*tp_name*/
7833
 
  sizeof(struct __pyx_obj_19_dirstate_helpers_c_Reader), /*tp_basicsize*/
7834
 
  0, /*tp_itemsize*/
7835
 
  __pyx_tp_dealloc_19_dirstate_helpers_c_Reader, /*tp_dealloc*/
7836
 
  0, /*tp_print*/
7837
 
  0, /*tp_getattr*/
7838
 
  0, /*tp_setattr*/
7839
 
  0, /*tp_compare*/
7840
 
  0, /*tp_repr*/
7841
 
  &__pyx_tp_as_number_Reader, /*tp_as_number*/
7842
 
  &__pyx_tp_as_sequence_Reader, /*tp_as_sequence*/
7843
 
  &__pyx_tp_as_mapping_Reader, /*tp_as_mapping*/
7844
 
  0, /*tp_hash*/
7845
 
  0, /*tp_call*/
7846
 
  0, /*tp_str*/
7847
 
  0, /*tp_getattro*/
7848
 
  0, /*tp_setattro*/
7849
 
  &__pyx_tp_as_buffer_Reader, /*tp_as_buffer*/
7850
 
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
7851
 
  "Maintain the current location, and return fields as you parse them.", /*tp_doc*/
7852
 
  __pyx_tp_traverse_19_dirstate_helpers_c_Reader, /*tp_traverse*/
7853
 
  __pyx_tp_clear_19_dirstate_helpers_c_Reader, /*tp_clear*/
7854
 
  0, /*tp_richcompare*/
7855
 
  0, /*tp_weaklistoffset*/
7856
 
  0, /*tp_iter*/
7857
 
  0, /*tp_iternext*/
7858
 
  __pyx_methods_19_dirstate_helpers_c_Reader, /*tp_methods*/
7859
 
  0, /*tp_members*/
7860
 
  0, /*tp_getset*/
7861
 
  0, /*tp_base*/
7862
 
  0, /*tp_dict*/
7863
 
  0, /*tp_descr_get*/
7864
 
  0, /*tp_descr_set*/
7865
 
  0, /*tp_dictoffset*/
7866
 
  __pyx_f_19_dirstate_helpers_c_6Reader___init__, /*tp_init*/
7867
 
  0, /*tp_alloc*/
7868
 
  __pyx_tp_new_19_dirstate_helpers_c_Reader, /*tp_new*/
7869
 
  0, /*tp_free*/
7870
 
  0, /*tp_is_gc*/
7871
 
  0, /*tp_bases*/
7872
 
  0, /*tp_mro*/
7873
 
  0, /*tp_cache*/
7874
 
  0, /*tp_subclasses*/
7875
 
  0, /*tp_weaklist*/
7876
 
};
7877
 
static struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC __pyx_vtable_19_dirstate_helpers_c_ProcessEntryC;
7878
 
 
7879
 
static PyObject *__pyx_tp_new_19_dirstate_helpers_c_ProcessEntryC(PyTypeObject *t, PyObject *a, PyObject *k) {
7880
 
  struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *p;
7881
 
  PyObject *o = (*t->tp_alloc)(t, 0);
7882
 
  if (!o) return 0;
7883
 
  p = ((struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)o);
7884
 
  *(struct __pyx_vtabstruct_19_dirstate_helpers_c_ProcessEntryC **)&p->__pyx_vtab = __pyx_vtabptr_19_dirstate_helpers_c_ProcessEntryC;
7885
 
  p->old_dirname_to_file_id = Py_None; Py_INCREF(Py_None);
7886
 
  p->new_dirname_to_file_id = Py_None; Py_INCREF(Py_None);
7887
 
  p->uninteresting = Py_None; Py_INCREF(Py_None);
7888
 
  p->last_source_parent = Py_None; Py_INCREF(Py_None);
7889
 
  p->last_target_parent = Py_None; Py_INCREF(Py_None);
7890
 
  p->include_unchanged = Py_None; Py_INCREF(Py_None);
7891
 
  p->use_filesystem_for_exec = Py_None; Py_INCREF(Py_None);
7892
 
  p->utf8_decode = Py_None; Py_INCREF(Py_None);
7893
 
  p->searched_specific_files = Py_None; Py_INCREF(Py_None);
7894
 
  p->search_specific_files = Py_None; Py_INCREF(Py_None);
7895
 
  p->state = Py_None; Py_INCREF(Py_None);
7896
 
  p->current_root = Py_None; Py_INCREF(Py_None);
7897
 
  p->current_root_unicode = Py_None; Py_INCREF(Py_None);
7898
 
  p->root_entries = Py_None; Py_INCREF(Py_None);
7899
 
  p->root_abspath = Py_None; Py_INCREF(Py_None);
7900
 
  p->tree = Py_None; Py_INCREF(Py_None);
7901
 
  p->dir_iterator = Py_None; Py_INCREF(Py_None);
7902
 
  p->current_block = Py_None; Py_INCREF(Py_None);
7903
 
  p->current_block_list = Py_None; Py_INCREF(Py_None);
7904
 
  p->current_dir_info = Py_None; Py_INCREF(Py_None);
7905
 
  p->current_dir_list = Py_None; Py_INCREF(Py_None);
7906
 
  p->root_dir_info = Py_None; Py_INCREF(Py_None);
7907
 
  p->bisect_left = Py_None; Py_INCREF(Py_None);
7908
 
  p->pathjoin = Py_None; Py_INCREF(Py_None);
7909
 
  p->fstat = Py_None; Py_INCREF(Py_None);
7910
 
  p->sha_file = Py_None; Py_INCREF(Py_None);
7911
 
  return o;
7912
 
}
7913
 
 
7914
 
static void __pyx_tp_dealloc_19_dirstate_helpers_c_ProcessEntryC(PyObject *o) {
7915
 
  struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *p = (struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)o;
7916
 
  Py_XDECREF(p->old_dirname_to_file_id);
7917
 
  Py_XDECREF(p->new_dirname_to_file_id);
7918
 
  Py_XDECREF(p->uninteresting);
7919
 
  Py_XDECREF(p->last_source_parent);
7920
 
  Py_XDECREF(p->last_target_parent);
7921
 
  Py_XDECREF(p->include_unchanged);
7922
 
  Py_XDECREF(p->use_filesystem_for_exec);
7923
 
  Py_XDECREF(p->utf8_decode);
7924
 
  Py_XDECREF(p->searched_specific_files);
7925
 
  Py_XDECREF(p->search_specific_files);
7926
 
  Py_XDECREF(p->state);
7927
 
  Py_XDECREF(p->current_root);
7928
 
  Py_XDECREF(p->current_root_unicode);
7929
 
  Py_XDECREF(p->root_entries);
7930
 
  Py_XDECREF(p->root_abspath);
7931
 
  Py_XDECREF(p->tree);
7932
 
  Py_XDECREF(p->dir_iterator);
7933
 
  Py_XDECREF(p->current_block);
7934
 
  Py_XDECREF(p->current_block_list);
7935
 
  Py_XDECREF(p->current_dir_info);
7936
 
  Py_XDECREF(p->current_dir_list);
7937
 
  Py_XDECREF(p->root_dir_info);
7938
 
  Py_XDECREF(p->bisect_left);
7939
 
  Py_XDECREF(p->pathjoin);
7940
 
  Py_XDECREF(p->fstat);
7941
 
  Py_XDECREF(p->sha_file);
7942
 
  (*o->ob_type->tp_free)(o);
7943
 
}
7944
 
 
7945
 
static int __pyx_tp_traverse_19_dirstate_helpers_c_ProcessEntryC(PyObject *o, visitproc v, void *a) {
7946
 
  int e;
7947
 
  struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *p = (struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)o;
7948
 
  if (p->old_dirname_to_file_id) {
7949
 
    e = (*v)(p->old_dirname_to_file_id, a); if (e) return e;
7950
 
  }
7951
 
  if (p->new_dirname_to_file_id) {
7952
 
    e = (*v)(p->new_dirname_to_file_id, a); if (e) return e;
7953
 
  }
7954
 
  if (p->uninteresting) {
7955
 
    e = (*v)(p->uninteresting, a); if (e) return e;
7956
 
  }
7957
 
  if (p->last_source_parent) {
7958
 
    e = (*v)(p->last_source_parent, a); if (e) return e;
7959
 
  }
7960
 
  if (p->last_target_parent) {
7961
 
    e = (*v)(p->last_target_parent, a); if (e) return e;
7962
 
  }
7963
 
  if (p->include_unchanged) {
7964
 
    e = (*v)(p->include_unchanged, a); if (e) return e;
7965
 
  }
7966
 
  if (p->use_filesystem_for_exec) {
7967
 
    e = (*v)(p->use_filesystem_for_exec, a); if (e) return e;
7968
 
  }
7969
 
  if (p->utf8_decode) {
7970
 
    e = (*v)(p->utf8_decode, a); if (e) return e;
7971
 
  }
7972
 
  if (p->searched_specific_files) {
7973
 
    e = (*v)(p->searched_specific_files, a); if (e) return e;
7974
 
  }
7975
 
  if (p->search_specific_files) {
7976
 
    e = (*v)(p->search_specific_files, a); if (e) return e;
7977
 
  }
7978
 
  if (p->state) {
7979
 
    e = (*v)(p->state, a); if (e) return e;
7980
 
  }
7981
 
  if (p->current_root) {
7982
 
    e = (*v)(p->current_root, a); if (e) return e;
7983
 
  }
7984
 
  if (p->current_root_unicode) {
7985
 
    e = (*v)(p->current_root_unicode, a); if (e) return e;
7986
 
  }
7987
 
  if (p->root_entries) {
7988
 
    e = (*v)(p->root_entries, a); if (e) return e;
7989
 
  }
7990
 
  if (p->root_abspath) {
7991
 
    e = (*v)(p->root_abspath, a); if (e) return e;
7992
 
  }
7993
 
  if (p->tree) {
7994
 
    e = (*v)(p->tree, a); if (e) return e;
7995
 
  }
7996
 
  if (p->dir_iterator) {
7997
 
    e = (*v)(p->dir_iterator, a); if (e) return e;
7998
 
  }
7999
 
  if (p->current_block) {
8000
 
    e = (*v)(p->current_block, a); if (e) return e;
8001
 
  }
8002
 
  if (p->current_block_list) {
8003
 
    e = (*v)(p->current_block_list, a); if (e) return e;
8004
 
  }
8005
 
  if (p->current_dir_info) {
8006
 
    e = (*v)(p->current_dir_info, a); if (e) return e;
8007
 
  }
8008
 
  if (p->current_dir_list) {
8009
 
    e = (*v)(p->current_dir_list, a); if (e) return e;
8010
 
  }
8011
 
  if (p->root_dir_info) {
8012
 
    e = (*v)(p->root_dir_info, a); if (e) return e;
8013
 
  }
8014
 
  if (p->bisect_left) {
8015
 
    e = (*v)(p->bisect_left, a); if (e) return e;
8016
 
  }
8017
 
  if (p->pathjoin) {
8018
 
    e = (*v)(p->pathjoin, a); if (e) return e;
8019
 
  }
8020
 
  if (p->fstat) {
8021
 
    e = (*v)(p->fstat, a); if (e) return e;
8022
 
  }
8023
 
  if (p->sha_file) {
8024
 
    e = (*v)(p->sha_file, a); if (e) return e;
8025
 
  }
8026
 
  return 0;
8027
 
}
8028
 
 
8029
 
static int __pyx_tp_clear_19_dirstate_helpers_c_ProcessEntryC(PyObject *o) {
8030
 
  struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *p = (struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC *)o;
8031
 
  Py_XDECREF(p->old_dirname_to_file_id);
8032
 
  p->old_dirname_to_file_id = Py_None; Py_INCREF(Py_None);
8033
 
  Py_XDECREF(p->new_dirname_to_file_id);
8034
 
  p->new_dirname_to_file_id = Py_None; Py_INCREF(Py_None);
8035
 
  Py_XDECREF(p->uninteresting);
8036
 
  p->uninteresting = Py_None; Py_INCREF(Py_None);
8037
 
  Py_XDECREF(p->last_source_parent);
8038
 
  p->last_source_parent = Py_None; Py_INCREF(Py_None);
8039
 
  Py_XDECREF(p->last_target_parent);
8040
 
  p->last_target_parent = Py_None; Py_INCREF(Py_None);
8041
 
  Py_XDECREF(p->include_unchanged);
8042
 
  p->include_unchanged = Py_None; Py_INCREF(Py_None);
8043
 
  Py_XDECREF(p->use_filesystem_for_exec);
8044
 
  p->use_filesystem_for_exec = Py_None; Py_INCREF(Py_None);
8045
 
  Py_XDECREF(p->utf8_decode);
8046
 
  p->utf8_decode = Py_None; Py_INCREF(Py_None);
8047
 
  Py_XDECREF(p->searched_specific_files);
8048
 
  p->searched_specific_files = Py_None; Py_INCREF(Py_None);
8049
 
  Py_XDECREF(p->search_specific_files);
8050
 
  p->search_specific_files = Py_None; Py_INCREF(Py_None);
8051
 
  Py_XDECREF(p->state);
8052
 
  p->state = Py_None; Py_INCREF(Py_None);
8053
 
  Py_XDECREF(p->current_root);
8054
 
  p->current_root = Py_None; Py_INCREF(Py_None);
8055
 
  Py_XDECREF(p->current_root_unicode);
8056
 
  p->current_root_unicode = Py_None; Py_INCREF(Py_None);
8057
 
  Py_XDECREF(p->root_entries);
8058
 
  p->root_entries = Py_None; Py_INCREF(Py_None);
8059
 
  Py_XDECREF(p->root_abspath);
8060
 
  p->root_abspath = Py_None; Py_INCREF(Py_None);
8061
 
  Py_XDECREF(p->tree);
8062
 
  p->tree = Py_None; Py_INCREF(Py_None);
8063
 
  Py_XDECREF(p->dir_iterator);
8064
 
  p->dir_iterator = Py_None; Py_INCREF(Py_None);
8065
 
  Py_XDECREF(p->current_block);
8066
 
  p->current_block = Py_None; Py_INCREF(Py_None);
8067
 
  Py_XDECREF(p->current_block_list);
8068
 
  p->current_block_list = Py_None; Py_INCREF(Py_None);
8069
 
  Py_XDECREF(p->current_dir_info);
8070
 
  p->current_dir_info = Py_None; Py_INCREF(Py_None);
8071
 
  Py_XDECREF(p->current_dir_list);
8072
 
  p->current_dir_list = Py_None; Py_INCREF(Py_None);
8073
 
  Py_XDECREF(p->root_dir_info);
8074
 
  p->root_dir_info = Py_None; Py_INCREF(Py_None);
8075
 
  Py_XDECREF(p->bisect_left);
8076
 
  p->bisect_left = Py_None; Py_INCREF(Py_None);
8077
 
  Py_XDECREF(p->pathjoin);
8078
 
  p->pathjoin = Py_None; Py_INCREF(Py_None);
8079
 
  Py_XDECREF(p->fstat);
8080
 
  p->fstat = Py_None; Py_INCREF(Py_None);
8081
 
  Py_XDECREF(p->sha_file);
8082
 
  p->sha_file = Py_None; Py_INCREF(Py_None);
8083
 
  return 0;
8084
 
}
8085
 
 
8086
 
static struct PyMethodDef __pyx_methods_19_dirstate_helpers_c_ProcessEntryC[] = {
8087
 
  {"iter_changes", (PyCFunction)__pyx_f_19_dirstate_helpers_c_13ProcessEntryC_iter_changes, METH_VARARGS|METH_KEYWORDS, 0},
8088
 
  {0, 0, 0, 0}
8089
 
};
8090
 
 
8091
 
static struct PyMemberDef __pyx_members_19_dirstate_helpers_c_ProcessEntryC[] = {
8092
 
  {"uninteresting", T_OBJECT, offsetof(struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC, uninteresting), READONLY, 0},
8093
 
  {"searched_specific_files", T_OBJECT, offsetof(struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC, searched_specific_files), READONLY, 0},
8094
 
  {0, 0, 0, 0, 0}
8095
 
};
8096
 
 
8097
 
static PyNumberMethods __pyx_tp_as_number_ProcessEntryC = {
8098
 
  0, /*nb_add*/
8099
 
  0, /*nb_subtract*/
8100
 
  0, /*nb_multiply*/
8101
 
  0, /*nb_divide*/
8102
 
  0, /*nb_remainder*/
8103
 
  0, /*nb_divmod*/
8104
 
  0, /*nb_power*/
8105
 
  0, /*nb_negative*/
8106
 
  0, /*nb_positive*/
8107
 
  0, /*nb_absolute*/
8108
 
  0, /*nb_nonzero*/
8109
 
  0, /*nb_invert*/
8110
 
  0, /*nb_lshift*/
8111
 
  0, /*nb_rshift*/
8112
 
  0, /*nb_and*/
8113
 
  0, /*nb_xor*/
8114
 
  0, /*nb_or*/
8115
 
  0, /*nb_coerce*/
8116
 
  0, /*nb_int*/
8117
 
  0, /*nb_long*/
8118
 
  0, /*nb_float*/
8119
 
  0, /*nb_oct*/
8120
 
  0, /*nb_hex*/
8121
 
  0, /*nb_inplace_add*/
8122
 
  0, /*nb_inplace_subtract*/
8123
 
  0, /*nb_inplace_multiply*/
8124
 
  0, /*nb_inplace_divide*/
8125
 
  0, /*nb_inplace_remainder*/
8126
 
  0, /*nb_inplace_power*/
8127
 
  0, /*nb_inplace_lshift*/
8128
 
  0, /*nb_inplace_rshift*/
8129
 
  0, /*nb_inplace_and*/
8130
 
  0, /*nb_inplace_xor*/
8131
 
  0, /*nb_inplace_or*/
8132
 
  0, /*nb_floor_divide*/
8133
 
  0, /*nb_true_divide*/
8134
 
  0, /*nb_inplace_floor_divide*/
8135
 
  0, /*nb_inplace_true_divide*/
8136
 
  #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX
8137
 
  0, /*nb_index*/
8138
 
  #endif
8139
 
};
8140
 
 
8141
 
static PySequenceMethods __pyx_tp_as_sequence_ProcessEntryC = {
8142
 
  0, /*sq_length*/
8143
 
  0, /*sq_concat*/
8144
 
  0, /*sq_repeat*/
8145
 
  0, /*sq_item*/
8146
 
  0, /*sq_slice*/
8147
 
  0, /*sq_ass_item*/
8148
 
  0, /*sq_ass_slice*/
8149
 
  0, /*sq_contains*/
8150
 
  0, /*sq_inplace_concat*/
8151
 
  0, /*sq_inplace_repeat*/
8152
 
};
8153
 
 
8154
 
static PyMappingMethods __pyx_tp_as_mapping_ProcessEntryC = {
8155
 
  0, /*mp_length*/
8156
 
  0, /*mp_subscript*/
8157
 
  0, /*mp_ass_subscript*/
8158
 
};
8159
 
 
8160
 
static PyBufferProcs __pyx_tp_as_buffer_ProcessEntryC = {
8161
 
  0, /*bf_getreadbuffer*/
8162
 
  0, /*bf_getwritebuffer*/
8163
 
  0, /*bf_getsegcount*/
8164
 
  0, /*bf_getcharbuffer*/
8165
 
};
8166
 
 
8167
 
PyTypeObject __pyx_type_19_dirstate_helpers_c_ProcessEntryC = {
8168
 
  PyObject_HEAD_INIT(0)
8169
 
  0, /*ob_size*/
8170
 
  "_dirstate_helpers_c.ProcessEntryC", /*tp_name*/
8171
 
  sizeof(struct __pyx_obj_19_dirstate_helpers_c_ProcessEntryC), /*tp_basicsize*/
8172
 
  0, /*tp_itemsize*/
8173
 
  __pyx_tp_dealloc_19_dirstate_helpers_c_ProcessEntryC, /*tp_dealloc*/
8174
 
  0, /*tp_print*/
8175
 
  0, /*tp_getattr*/
8176
 
  0, /*tp_setattr*/
8177
 
  0, /*tp_compare*/
8178
 
  0, /*tp_repr*/
8179
 
  &__pyx_tp_as_number_ProcessEntryC, /*tp_as_number*/
8180
 
  &__pyx_tp_as_sequence_ProcessEntryC, /*tp_as_sequence*/
8181
 
  &__pyx_tp_as_mapping_ProcessEntryC, /*tp_as_mapping*/
8182
 
  0, /*tp_hash*/
8183
 
  0, /*tp_call*/
8184
 
  0, /*tp_str*/
8185
 
  0, /*tp_getattro*/
8186
 
  0, /*tp_setattro*/
8187
 
  &__pyx_tp_as_buffer_ProcessEntryC, /*tp_as_buffer*/
8188
 
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
8189
 
  0, /*tp_doc*/
8190
 
  __pyx_tp_traverse_19_dirstate_helpers_c_ProcessEntryC, /*tp_traverse*/
8191
 
  __pyx_tp_clear_19_dirstate_helpers_c_ProcessEntryC, /*tp_clear*/
8192
 
  0, /*tp_richcompare*/
8193
 
  0, /*tp_weaklistoffset*/
8194
 
  __pyx_f_19_dirstate_helpers_c_13ProcessEntryC___iter__, /*tp_iter*/
8195
 
  __pyx_f_19_dirstate_helpers_c_13ProcessEntryC___next__, /*tp_iternext*/
8196
 
  __pyx_methods_19_dirstate_helpers_c_ProcessEntryC, /*tp_methods*/
8197
 
  __pyx_members_19_dirstate_helpers_c_ProcessEntryC, /*tp_members*/
8198
 
  0, /*tp_getset*/
8199
 
  0, /*tp_base*/
8200
 
  0, /*tp_dict*/
8201
 
  0, /*tp_descr_get*/
8202
 
  0, /*tp_descr_set*/
8203
 
  0, /*tp_dictoffset*/
8204
 
  __pyx_f_19_dirstate_helpers_c_13ProcessEntryC___init__, /*tp_init*/
8205
 
  0, /*tp_alloc*/
8206
 
  __pyx_tp_new_19_dirstate_helpers_c_ProcessEntryC, /*tp_new*/
8207
 
  0, /*tp_free*/
8208
 
  0, /*tp_is_gc*/
8209
 
  0, /*tp_bases*/
8210
 
  0, /*tp_mro*/
8211
 
  0, /*tp_cache*/
8212
 
  0, /*tp_subclasses*/
8213
 
  0, /*tp_weaklist*/
8214
 
};
8215
 
 
8216
 
static struct PyMethodDef __pyx_methods[] = {
8217
 
  {"_py_memrchr", (PyCFunction)__pyx_f_19_dirstate_helpers_c__py_memrchr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_19_dirstate_helpers_c__py_memrchr},
8218
 
  {"cmp_by_dirs_c", (PyCFunction)__pyx_f_19_dirstate_helpers_c_cmp_by_dirs_c, METH_VARARGS|METH_KEYWORDS, __pyx_doc_19_dirstate_helpers_c_cmp_by_dirs_c},
8219
 
  {"_cmp_path_by_dirblock_c", (PyCFunction)__pyx_f_19_dirstate_helpers_c__cmp_path_by_dirblock_c, METH_VARARGS|METH_KEYWORDS, __pyx_doc_19_dirstate_helpers_c__cmp_path_by_dirblock_c},
8220
 
  {"_bisect_path_left_c", (PyCFunction)__pyx_f_19_dirstate_helpers_c__bisect_path_left_c, METH_VARARGS|METH_KEYWORDS, __pyx_doc_19_dirstate_helpers_c__bisect_path_left_c},
8221
 
  {"_bisect_path_right_c", (PyCFunction)__pyx_f_19_dirstate_helpers_c__bisect_path_right_c, METH_VARARGS|METH_KEYWORDS, __pyx_doc_19_dirstate_helpers_c__bisect_path_right_c},
8222
 
  {"bisect_dirblock_c", (PyCFunction)__pyx_f_19_dirstate_helpers_c_bisect_dirblock_c, METH_VARARGS|METH_KEYWORDS, __pyx_doc_19_dirstate_helpers_c_bisect_dirblock_c},
8223
 
  {"_read_dirblocks_c", (PyCFunction)__pyx_f_19_dirstate_helpers_c__read_dirblocks_c, METH_VARARGS|METH_KEYWORDS, __pyx_doc_19_dirstate_helpers_c__read_dirblocks_c},
8224
 
  {"update_entry", (PyCFunction)__pyx_f_19_dirstate_helpers_c_update_entry, METH_VARARGS|METH_KEYWORDS, __pyx_doc_19_dirstate_helpers_c_update_entry},
8225
 
  {0, 0, 0, 0}
8226
 
};
8227
 
 
8228
 
static void __pyx_init_filenames(void); /*proto*/
8229
 
 
8230
 
PyMODINIT_FUNC init_dirstate_helpers_c(void); /*proto*/
8231
 
PyMODINIT_FUNC init_dirstate_helpers_c(void) {
8232
 
  PyObject *__pyx_1 = 0;
8233
 
  PyObject *__pyx_2 = 0;
8234
 
  PyObject *__pyx_3 = 0;
8235
 
  __pyx_init_filenames();
8236
 
  __pyx_m = Py_InitModule4("_dirstate_helpers_c", __pyx_methods, __pyx_mdoc, 0, PYTHON_API_VERSION);
8237
 
  if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;};
8238
 
  Py_INCREF(__pyx_m);
8239
 
  __pyx_b = PyImport_AddModule("__builtin__");
8240
 
  if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;};
8241
 
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;};
8242
 
  if (__Pyx_InternStrings(__pyx_intern_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;};
8243
 
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;};
8244
 
  __pyx_v_19_dirstate_helpers_c__kind_absent = Py_None; Py_INCREF(Py_None);
8245
 
  __pyx_v_19_dirstate_helpers_c__kind_file = Py_None; Py_INCREF(Py_None);
8246
 
  __pyx_v_19_dirstate_helpers_c__kind_directory = Py_None; Py_INCREF(Py_None);
8247
 
  __pyx_v_19_dirstate_helpers_c__kind_symlink = Py_None; Py_INCREF(Py_None);
8248
 
  __pyx_v_19_dirstate_helpers_c__kind_relocated = Py_None; Py_INCREF(Py_None);
8249
 
  __pyx_v_19_dirstate_helpers_c__kind_tree_reference = Py_None; Py_INCREF(Py_None);
8250
 
  __pyx_vtabptr_19_dirstate_helpers_c_Reader = &__pyx_vtable_19_dirstate_helpers_c_Reader;
8251
 
  *(void(**)(void))&__pyx_vtable_19_dirstate_helpers_c_Reader.get_next = (void(*)(void))__pyx_f_19_dirstate_helpers_c_6Reader_get_next;
8252
 
  *(void(**)(void))&__pyx_vtable_19_dirstate_helpers_c_Reader.get_next_str = (void(*)(void))__pyx_f_19_dirstate_helpers_c_6Reader_get_next_str;
8253
 
  *(void(**)(void))&__pyx_vtable_19_dirstate_helpers_c_Reader._init = (void(*)(void))__pyx_f_19_dirstate_helpers_c_6Reader__init;
8254
 
  *(void(**)(void))&__pyx_vtable_19_dirstate_helpers_c_Reader._get_entry = (void(*)(void))__pyx_f_19_dirstate_helpers_c_6Reader__get_entry;
8255
 
  __pyx_type_19_dirstate_helpers_c_Reader.tp_free = _PyObject_GC_Del;
8256
 
  if (PyType_Ready(&__pyx_type_19_dirstate_helpers_c_Reader) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; goto __pyx_L1;}
8257
 
  if (__Pyx_SetVtable(__pyx_type_19_dirstate_helpers_c_Reader.tp_dict, __pyx_vtabptr_19_dirstate_helpers_c_Reader) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; goto __pyx_L1;}
8258
 
  if (PyObject_SetAttrString(__pyx_m, "Reader", (PyObject *)&__pyx_type_19_dirstate_helpers_c_Reader) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; goto __pyx_L1;}
8259
 
  __pyx_ptype_19_dirstate_helpers_c_Reader = &__pyx_type_19_dirstate_helpers_c_Reader;
8260
 
  __pyx_vtabptr_19_dirstate_helpers_c_ProcessEntryC = &__pyx_vtable_19_dirstate_helpers_c_ProcessEntryC;
8261
 
  *(void(**)(void))&__pyx_vtable_19_dirstate_helpers_c_ProcessEntryC._process_entry = (void(*)(void))__pyx_f_19_dirstate_helpers_c_13ProcessEntryC__process_entry;
8262
 
  *(void(**)(void))&__pyx_vtable_19_dirstate_helpers_c_ProcessEntryC._update_current_block = (void(*)(void))__pyx_f_19_dirstate_helpers_c_13ProcessEntryC__update_current_block;
8263
 
  *(void(**)(void))&__pyx_vtable_19_dirstate_helpers_c_ProcessEntryC._iter_next = (void(*)(void))__pyx_f_19_dirstate_helpers_c_13ProcessEntryC__iter_next;
8264
 
  *(void(**)(void))&__pyx_vtable_19_dirstate_helpers_c_ProcessEntryC._maybe_tree_ref = (void(*)(void))__pyx_f_19_dirstate_helpers_c_13ProcessEntryC__maybe_tree_ref;
8265
 
  *(void(**)(void))&__pyx_vtable_19_dirstate_helpers_c_ProcessEntryC._loop_one_block = (void(*)(void))__pyx_f_19_dirstate_helpers_c_13ProcessEntryC__loop_one_block;
8266
 
  __pyx_type_19_dirstate_helpers_c_ProcessEntryC.tp_free = _PyObject_GC_Del;
8267
 
  if (PyType_Ready(&__pyx_type_19_dirstate_helpers_c_ProcessEntryC) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; goto __pyx_L1;}
8268
 
  if (__Pyx_SetVtable(__pyx_type_19_dirstate_helpers_c_ProcessEntryC.tp_dict, __pyx_vtabptr_19_dirstate_helpers_c_ProcessEntryC) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; goto __pyx_L1;}
8269
 
  if (PyObject_SetAttrString(__pyx_m, "ProcessEntryC", (PyObject *)&__pyx_type_19_dirstate_helpers_c_ProcessEntryC) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; goto __pyx_L1;}
8270
 
  __pyx_ptype_19_dirstate_helpers_c_ProcessEntryC = &__pyx_type_19_dirstate_helpers_c_ProcessEntryC;
8271
 
 
8272
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":22 */
8273
 
  __pyx_1 = __Pyx_Import(__pyx_n_binascii, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;}
8274
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_binascii, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;}
8275
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8276
 
 
8277
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":23 */
8278
 
  __pyx_1 = __Pyx_Import(__pyx_n_bisect, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; goto __pyx_L1;}
8279
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_bisect, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; goto __pyx_L1;}
8280
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8281
 
 
8282
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":24 */
8283
 
  __pyx_1 = __Pyx_Import(__pyx_n_errno, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; goto __pyx_L1;}
8284
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_errno, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; goto __pyx_L1;}
8285
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8286
 
 
8287
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":25 */
8288
 
  __pyx_1 = __Pyx_Import(__pyx_n_os, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; goto __pyx_L1;}
8289
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_os, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; goto __pyx_L1;}
8290
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8291
 
 
8292
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":26 */
8293
 
  __pyx_1 = __Pyx_Import(__pyx_n_stat, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; goto __pyx_L1;}
8294
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_stat, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; goto __pyx_L1;}
8295
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8296
 
 
8297
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":27 */
8298
 
  __pyx_1 = __Pyx_Import(__pyx_n_sys, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; goto __pyx_L1;}
8299
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_sys, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; goto __pyx_L1;}
8300
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8301
 
 
8302
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":29 */
8303
 
  __pyx_1 = PyList_New(3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
8304
 
  Py_INCREF(__pyx_n_cache_utf8);
8305
 
  PyList_SET_ITEM(__pyx_1, 0, __pyx_n_cache_utf8);
8306
 
  Py_INCREF(__pyx_n_errors);
8307
 
  PyList_SET_ITEM(__pyx_1, 1, __pyx_n_errors);
8308
 
  Py_INCREF(__pyx_n_osutils);
8309
 
  PyList_SET_ITEM(__pyx_1, 2, __pyx_n_osutils);
8310
 
  __pyx_2 = __Pyx_Import(__pyx_n_bzrlib, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
8311
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8312
 
  __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_cache_utf8); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
8313
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_cache_utf8, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
8314
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8315
 
  __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_errors); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
8316
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_errors, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
8317
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8318
 
  __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_osutils); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
8319
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_osutils, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
8320
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8321
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
8322
 
 
8323
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":30 */
8324
 
  __pyx_2 = PyList_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; goto __pyx_L1;}
8325
 
  Py_INCREF(__pyx_n_DirState);
8326
 
  PyList_SET_ITEM(__pyx_2, 0, __pyx_n_DirState);
8327
 
  __pyx_1 = __Pyx_Import(__pyx_k11p, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; goto __pyx_L1;}
8328
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
8329
 
  __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_DirState); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; goto __pyx_L1;}
8330
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_DirState, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; goto __pyx_L1;}
8331
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
8332
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8333
 
 
8334
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":31 */
8335
 
  __pyx_1 = PyList_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; goto __pyx_L1;}
8336
 
  Py_INCREF(__pyx_n_pathjoin);
8337
 
  PyList_SET_ITEM(__pyx_1, 0, __pyx_n_pathjoin);
8338
 
  Py_INCREF(__pyx_n_splitpath);
8339
 
  PyList_SET_ITEM(__pyx_1, 1, __pyx_n_splitpath);
8340
 
  __pyx_2 = __Pyx_Import(__pyx_k13p, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; goto __pyx_L1;}
8341
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8342
 
  __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_pathjoin); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; goto __pyx_L1;}
8343
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_pathjoin, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; goto __pyx_L1;}
8344
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8345
 
  __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_splitpath); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; goto __pyx_L1;}
8346
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_splitpath, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; goto __pyx_L1;}
8347
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8348
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
8349
 
 
8350
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":39 */
8351
 
  __pyx_v_19_dirstate_helpers_c_ERROR_PATH_NOT_FOUND = 3;
8352
 
 
8353
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":41 */
8354
 
  __pyx_v_19_dirstate_helpers_c_ERROR_DIRECTORY = 267;
8355
 
 
8356
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":475 */
8357
 
  __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; goto __pyx_L1;}
8358
 
  __pyx_k16 = __pyx_2;
8359
 
  __pyx_2 = 0;
8360
 
  Py_INCREF(Py_None);
8361
 
  __pyx_k17 = Py_None;
8362
 
  Py_INCREF(Py_None);
8363
 
  __pyx_k18 = Py_None;
8364
 
 
8365
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":780 */
8366
 
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_binascii); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; goto __pyx_L1;}
8367
 
  __pyx_3 = PyObject_GetAttr(__pyx_1, __pyx_n_b2a_base64); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; goto __pyx_L1;}
8368
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8369
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n__encode, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; goto __pyx_L1;}
8370
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
8371
 
 
8372
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":783 */
8373
 
  __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; goto __pyx_L1;}
8374
 
  Py_INCREF(__pyx_n_pack);
8375
 
  PyList_SET_ITEM(__pyx_1, 0, __pyx_n_pack);
8376
 
  __pyx_3 = __Pyx_Import(__pyx_n_struct, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; goto __pyx_L1;}
8377
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8378
 
  __pyx_1 = PyObject_GetAttr(__pyx_3, __pyx_n_pack); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; goto __pyx_L1;}
8379
 
  if (PyObject_SetAttr(__pyx_m, __pyx_n_pack, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; goto __pyx_L1;}
8380
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8381
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
8382
 
 
8383
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":927 */
8384
 
  Py_INCREF(__pyx_n_absent);
8385
 
  Py_DECREF(__pyx_v_19_dirstate_helpers_c__kind_absent);
8386
 
  __pyx_v_19_dirstate_helpers_c__kind_absent = __pyx_n_absent;
8387
 
 
8388
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":928 */
8389
 
  Py_INCREF(__pyx_n_file);
8390
 
  Py_DECREF(__pyx_v_19_dirstate_helpers_c__kind_file);
8391
 
  __pyx_v_19_dirstate_helpers_c__kind_file = __pyx_n_file;
8392
 
 
8393
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":929 */
8394
 
  Py_INCREF(__pyx_n_directory);
8395
 
  Py_DECREF(__pyx_v_19_dirstate_helpers_c__kind_directory);
8396
 
  __pyx_v_19_dirstate_helpers_c__kind_directory = __pyx_n_directory;
8397
 
 
8398
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":930 */
8399
 
  Py_INCREF(__pyx_n_symlink);
8400
 
  Py_DECREF(__pyx_v_19_dirstate_helpers_c__kind_symlink);
8401
 
  __pyx_v_19_dirstate_helpers_c__kind_symlink = __pyx_n_symlink;
8402
 
 
8403
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":931 */
8404
 
  Py_INCREF(__pyx_n_relocated);
8405
 
  Py_DECREF(__pyx_v_19_dirstate_helpers_c__kind_relocated);
8406
 
  __pyx_v_19_dirstate_helpers_c__kind_relocated = __pyx_n_relocated;
8407
 
 
8408
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":932 */
8409
 
  Py_INCREF(__pyx_k26p);
8410
 
  Py_DECREF(__pyx_v_19_dirstate_helpers_c__kind_tree_reference);
8411
 
  __pyx_v_19_dirstate_helpers_c__kind_tree_reference = __pyx_k26p;
8412
 
 
8413
 
  /* "/tmp/bzr.1.15/bzrlib/_dirstate_helpers_c.pyx":1633 */
8414
 
  return;
8415
 
  __pyx_L1:;
8416
 
  Py_XDECREF(__pyx_1);
8417
 
  Py_XDECREF(__pyx_2);
8418
 
  Py_XDECREF(__pyx_3);
8419
 
  __Pyx_AddTraceback("_dirstate_helpers_c");
8420
 
}
8421
 
 
8422
 
static char *__pyx_filenames[] = {
8423
 
  "_dirstate_helpers_c.pyx",
8424
 
};
8425
 
 
8426
 
/* Runtime support code */
8427
 
 
8428
 
static void __pyx_init_filenames(void) {
8429
 
  __pyx_f = __pyx_filenames;
8430
 
}
8431
 
 
8432
 
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) {
8433
 
    PyObject *__import__ = 0;
8434
 
    PyObject *empty_list = 0;
8435
 
    PyObject *module = 0;
8436
 
    PyObject *global_dict = 0;
8437
 
    PyObject *empty_dict = 0;
8438
 
    PyObject *list;
8439
 
    __import__ = PyObject_GetAttrString(__pyx_b, "__import__");
8440
 
    if (!__import__)
8441
 
        goto bad;
8442
 
    if (from_list)
8443
 
        list = from_list;
8444
 
    else {
8445
 
        empty_list = PyList_New(0);
8446
 
        if (!empty_list)
8447
 
            goto bad;
8448
 
        list = empty_list;
8449
 
    }
8450
 
    global_dict = PyModule_GetDict(__pyx_m);
8451
 
    if (!global_dict)
8452
 
        goto bad;
8453
 
    empty_dict = PyDict_New();
8454
 
    if (!empty_dict)
8455
 
        goto bad;
8456
 
    module = PyObject_CallFunction(__import__, "OOOO",
8457
 
        name, global_dict, empty_dict, list);
8458
 
bad:
8459
 
    Py_XDECREF(empty_list);
8460
 
    Py_XDECREF(__import__);
8461
 
    Py_XDECREF(empty_dict);
8462
 
    return module;
8463
 
}
8464
 
 
8465
 
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) {
8466
 
    PyObject *result;
8467
 
    result = PyObject_GetAttr(dict, name);
8468
 
    if (!result)
8469
 
        PyErr_SetObject(PyExc_NameError, name);
8470
 
    return result;
8471
 
}
8472
 
 
8473
 
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
8474
 
    Py_XINCREF(type);
8475
 
    Py_XINCREF(value);
8476
 
    Py_XINCREF(tb);
8477
 
    /* First, check the traceback argument, replacing None with NULL. */
8478
 
    if (tb == Py_None) {
8479
 
        Py_DECREF(tb);
8480
 
        tb = 0;
8481
 
    }
8482
 
    else if (tb != NULL && !PyTraceBack_Check(tb)) {
8483
 
        PyErr_SetString(PyExc_TypeError,
8484
 
            "raise: arg 3 must be a traceback or None");
8485
 
        goto raise_error;
8486
 
    }
8487
 
    /* Next, replace a missing value with None */
8488
 
    if (value == NULL) {
8489
 
        value = Py_None;
8490
 
        Py_INCREF(value);
8491
 
    }
8492
 
    #if PY_VERSION_HEX < 0x02050000
8493
 
    if (!PyClass_Check(type))
8494
 
    #else
8495
 
    if (!PyType_Check(type))
8496
 
    #endif
8497
 
    {
8498
 
        /* Raising an instance.  The value should be a dummy. */
8499
 
        if (value != Py_None) {
8500
 
            PyErr_SetString(PyExc_TypeError,
8501
 
                "instance exception may not have a separate value");
8502
 
            goto raise_error;
8503
 
        }
8504
 
        /* Normalize to raise <class>, <instance> */
8505
 
        Py_DECREF(value);
8506
 
        value = type;
8507
 
        #if PY_VERSION_HEX < 0x02050000
8508
 
            if (PyInstance_Check(type)) {
8509
 
                type = (PyObject*) ((PyInstanceObject*)type)->in_class;
8510
 
                Py_INCREF(type);
8511
 
            }
8512
 
            else {
8513
 
                PyErr_SetString(PyExc_TypeError,
8514
 
                    "raise: exception must be an old-style class or instance");
8515
 
                goto raise_error;
8516
 
            }
8517
 
        #else
8518
 
            type = (PyObject*) type->ob_type;
8519
 
            Py_INCREF(type);
8520
 
            if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
8521
 
                PyErr_SetString(PyExc_TypeError,
8522
 
                    "raise: exception class must be a subclass of BaseException");
8523
 
                goto raise_error;
8524
 
            }
8525
 
        #endif
8526
 
    }
8527
 
    PyErr_Restore(type, value, tb);
8528
 
    return;
8529
 
raise_error:
8530
 
    Py_XDECREF(value);
8531
 
    Py_XDECREF(type);
8532
 
    Py_XDECREF(tb);
8533
 
    return;
8534
 
}
8535
 
 
8536
 
static void __Pyx_UnpackError(void) {
8537
 
    PyErr_SetString(PyExc_ValueError, "unpack sequence of wrong size");
8538
 
}
8539
 
 
8540
 
static PyObject *__Pyx_UnpackItem(PyObject *iter) {
8541
 
    PyObject *item;
8542
 
    if (!(item = PyIter_Next(iter))) {
8543
 
        if (!PyErr_Occurred())
8544
 
            __Pyx_UnpackError();
8545
 
    }
8546
 
    return item;
8547
 
}
8548
 
 
8549
 
static int __Pyx_EndUnpack(PyObject *iter) {
8550
 
    PyObject *item;
8551
 
    if ((item = PyIter_Next(iter))) {
8552
 
        Py_DECREF(item);
8553
 
        __Pyx_UnpackError();
8554
 
        return -1;
8555
 
    }
8556
 
    else if (!PyErr_Occurred())
8557
 
        return 0;
8558
 
    else
8559
 
        return -1;
8560
 
}
8561
 
 
8562
 
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) {
8563
 
    PyThreadState *tstate = PyThreadState_Get();
8564
 
    PyErr_Fetch(type, value, tb);
8565
 
    PyErr_NormalizeException(type, value, tb);
8566
 
    if (PyErr_Occurred())
8567
 
        goto bad;
8568
 
    Py_INCREF(*type);
8569
 
    Py_INCREF(*value);
8570
 
    Py_INCREF(*tb);
8571
 
    Py_XDECREF(tstate->exc_type);
8572
 
    Py_XDECREF(tstate->exc_value);
8573
 
    Py_XDECREF(tstate->exc_traceback);
8574
 
    tstate->exc_type = *type;
8575
 
    tstate->exc_value = *value;
8576
 
    tstate->exc_traceback = *tb;
8577
 
    return 0;
8578
 
bad:
8579
 
    Py_XDECREF(*type);
8580
 
    Py_XDECREF(*value);
8581
 
    Py_XDECREF(*tb);
8582
 
    return -1;
8583
 
}
8584
 
 
8585
 
static void __Pyx_WriteUnraisable(char *name) {
8586
 
    PyObject *old_exc, *old_val, *old_tb;
8587
 
    PyObject *ctx;
8588
 
    PyErr_Fetch(&old_exc, &old_val, &old_tb);
8589
 
    ctx = PyString_FromString(name);
8590
 
    PyErr_Restore(old_exc, old_val, old_tb);
8591
 
    if (!ctx)
8592
 
        ctx = Py_None;
8593
 
    PyErr_WriteUnraisable(ctx);
8594
 
}
8595
 
 
8596
 
static int __Pyx_InternStrings(__Pyx_InternTabEntry *t) {
8597
 
    while (t->p) {
8598
 
        *t->p = PyString_InternFromString(t->s);
8599
 
        if (!*t->p)
8600
 
            return -1;
8601
 
        ++t;
8602
 
    }
8603
 
    return 0;
8604
 
}
8605
 
 
8606
 
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
8607
 
    while (t->p) {
8608
 
        *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
8609
 
        if (!*t->p)
8610
 
            return -1;
8611
 
        ++t;
8612
 
    }
8613
 
    return 0;
8614
 
}
8615
 
 
8616
 
static int __Pyx_SetVtable(PyObject *dict, void *vtable) {
8617
 
    PyObject *pycobj = 0;
8618
 
    int result;
8619
 
    
8620
 
    pycobj = PyCObject_FromVoidPtr(vtable, 0);
8621
 
    if (!pycobj)
8622
 
        goto bad;
8623
 
    if (PyDict_SetItemString(dict, "__pyx_vtable__", pycobj) < 0)
8624
 
        goto bad;
8625
 
    result = 0;
8626
 
    goto done;
8627
 
 
8628
 
bad:
8629
 
    result = -1;
8630
 
done:
8631
 
    Py_XDECREF(pycobj);
8632
 
    return result;
8633
 
}
8634
 
 
8635
 
#include "compile.h"
8636
 
#include "frameobject.h"
8637
 
#include "traceback.h"
8638
 
 
8639
 
static void __Pyx_AddTraceback(char *funcname) {
8640
 
    PyObject *py_srcfile = 0;
8641
 
    PyObject *py_funcname = 0;
8642
 
    PyObject *py_globals = 0;
8643
 
    PyObject *empty_tuple = 0;
8644
 
    PyObject *empty_string = 0;
8645
 
    PyCodeObject *py_code = 0;
8646
 
    PyFrameObject *py_frame = 0;
8647
 
    
8648
 
    py_srcfile = PyString_FromString(__pyx_filename);
8649
 
    if (!py_srcfile) goto bad;
8650
 
    py_funcname = PyString_FromString(funcname);
8651
 
    if (!py_funcname) goto bad;
8652
 
    py_globals = PyModule_GetDict(__pyx_m);
8653
 
    if (!py_globals) goto bad;
8654
 
    empty_tuple = PyTuple_New(0);
8655
 
    if (!empty_tuple) goto bad;
8656
 
    empty_string = PyString_FromString("");
8657
 
    if (!empty_string) goto bad;
8658
 
    py_code = PyCode_New(
8659
 
        0,            /*int argcount,*/
8660
 
        0,            /*int nlocals,*/
8661
 
        0,            /*int stacksize,*/
8662
 
        0,            /*int flags,*/
8663
 
        empty_string, /*PyObject *code,*/
8664
 
        empty_tuple,  /*PyObject *consts,*/
8665
 
        empty_tuple,  /*PyObject *names,*/
8666
 
        empty_tuple,  /*PyObject *varnames,*/
8667
 
        empty_tuple,  /*PyObject *freevars,*/
8668
 
        empty_tuple,  /*PyObject *cellvars,*/
8669
 
        py_srcfile,   /*PyObject *filename,*/
8670
 
        py_funcname,  /*PyObject *name,*/
8671
 
        __pyx_lineno,   /*int firstlineno,*/
8672
 
        empty_string  /*PyObject *lnotab*/
8673
 
    );
8674
 
    if (!py_code) goto bad;
8675
 
    py_frame = PyFrame_New(
8676
 
        PyThreadState_Get(), /*PyThreadState *tstate,*/
8677
 
        py_code,             /*PyCodeObject *code,*/
8678
 
        py_globals,          /*PyObject *globals,*/
8679
 
        0                    /*PyObject *locals*/
8680
 
    );
8681
 
    if (!py_frame) goto bad;
8682
 
    py_frame->f_lineno = __pyx_lineno;
8683
 
    PyTraceBack_Here(py_frame);
8684
 
bad:
8685
 
    Py_XDECREF(py_srcfile);
8686
 
    Py_XDECREF(py_funcname);
8687
 
    Py_XDECREF(empty_tuple);
8688
 
    Py_XDECREF(empty_string);
8689
 
    Py_XDECREF(py_code);
8690
 
    Py_XDECREF(py_frame);
8691
 
}