~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/dirstate.py

  • Committer: John Arbash Meinel
  • Date: 2008-06-05 21:47:39 UTC
  • mto: This revision was merged to the branch mainline in revision 3486.
  • Revision ID: john@arbash-meinel.com-20080605214739-uf050pk6fdgm5xbp
Change how we handle unicode targets, and add a NEWS entry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1842
1842
            size = 0
1843
1843
            executable = False
1844
1844
        elif kind == 'symlink':
1845
 
            fingerprint = inv_entry.symlink_target
1846
 
            if fingerprint is None:
1847
 
                fingerprint = ''
1848
 
            else:
1849
 
                assert isinstance(fingerprint, unicode)
1850
 
                # Do we need a 'isinstance(fingerprint, unicode)' check here?
1851
 
                fingerprint = fingerprint.encode('UTF-8')
 
1845
            # We don't support non-ascii targets for symlinks yet.
 
1846
            fingerprint = str(inv_entry.symlink_target or '')
1852
1847
            size = 0
1853
1848
            executable = False
1854
1849
        elif kind == 'file':