/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/_dirstate_helpers_py.py

  • Committer: John Arbash Meinel
  • Date: 2007-07-12 05:14:26 UTC
  • mto: This revision was merged to the branch mainline in revision 2643.
  • Revision ID: john@arbash-meinel.com-20070712051426-u9auufylv5cba940
Found a small bug in the python version of _read_dirblocks.
This reveals that the code is not as directly tested as it should be.
Consider refactoring all test_dirstate to use both implementations.
Or at least at more direct tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import os
20
20
 
 
21
from bzrlib import (
 
22
    dirstate,
 
23
    )
 
24
 
21
25
 
22
26
def bisect_path_left_py(paths, path):
23
27
    """Return the index where to insert path into paths.
227
231
    #                          key=lambda blk:blk[0].split('/'))
228
232
    # To convert from format 3 => format 2
229
233
    # state._dirblocks = sorted(state._dirblocks)
230
 
    state._dirblock_state = DirState.IN_MEMORY_UNMODIFIED
 
234
    state._dirblock_state = dirstate.DirState.IN_MEMORY_UNMODIFIED
231
235
 
232
236
 
233
237
def cmp_by_dirs_py(path1, path2):