~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: John Arbash Meinel
  • Date: 2007-02-17 21:17:22 UTC
  • mto: This revision was merged to the branch mainline in revision 2298.
  • Revision ID: john@arbash-meinel.com-20070217211722-yxx3xjxtxeijc8d7
Add safe_file_id as a helper in osutils.

Show diffs side-by-side

added added

removed removed

Lines of Context:
922
922
    return cache_utf8.encode(unicode_or_utf8_string)
923
923
 
924
924
 
 
925
# TODO: jam 20070217 We start by just re-using safe_revision_id, but ultimately
 
926
#       we want to use a different dictionary cache, because trapping file ids
 
927
#       and revision ids in the same dict seemed to have a noticable effect on
 
928
#       performance.
 
929
safe_file_id = safe_revision_id
 
930
 
 
931
 
925
932
_platform_normalizes_filenames = False
926
933
if sys.platform == 'darwin':
927
934
    _platform_normalizes_filenames = True