2938
2938
False, DirState.NULLSTAT)
2939
2939
state._dirblock_state = DirState.IN_MEMORY_MODIFIED
2940
2940
return link_or_sha1
2941
update_entry = py_update_entry
2944
2943
class ProcessEntryPython(object):
3575
3574
current_dir_info = dir_iterator.next()
3576
3575
except StopIteration:
3577
3576
current_dir_info = None
3578
_process_entry = ProcessEntryPython
3581
3579
# Try to load the compiled form if possible
3583
from bzrlib._dirstate_helpers_pyc import (
3584
_read_dirblocks_c as _read_dirblocks,
3585
bisect_dirblock_c as bisect_dirblock,
3586
_bisect_path_left_c as _bisect_path_left,
3587
_bisect_path_right_c as _bisect_path_right,
3588
cmp_by_dirs_c as cmp_by_dirs,
3581
from bzrlib._dirstate_helpers_pyx import (
3589
3587
ProcessEntryC as _process_entry,
3590
3588
update_entry as update_entry,
3592
3590
except ImportError:
3593
3591
from bzrlib._dirstate_helpers_py import (
3594
_read_dirblocks_py as _read_dirblocks,
3595
bisect_dirblock_py as bisect_dirblock,
3596
_bisect_path_left_py as _bisect_path_left,
3597
_bisect_path_right_py as _bisect_path_right,
3598
cmp_by_dirs_py as cmp_by_dirs,
3598
# FIXME: It would be nice to be able to track moved lines so that the
3599
# corresponding python code can be moved to the _dirstate_helpers_py
3600
# module. I don't want to break the history for this important piece of
3601
# code so I left the code here -- vila 20090622
3602
update_entry = py_update_entry
3603
_process_entry = ProcessEntryPython