/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/workingtree_4.py

  • Committer: John Arbash Meinel
  • Date: 2007-02-26 19:18:58 UTC
  • mto: (2255.11.3 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: john@arbash-meinel.com-20070226191858-04chtw4qy4a1p3tz
find an edge case in our _get_entry logic and fix it.
Also, id2path doesn't need to grab the index, just use _get_entry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
389
389
    def id2path(self, file_id):
390
390
        file_id = osutils.safe_file_id(file_id)
391
391
        state = self.current_dirstate()
392
 
        possible_dir_name_ids = state._get_id_index().get(file_id, None)
393
392
        entry = self._get_entry(file_id=file_id)
394
393
        if entry == (None, None):
395
394
            return None