~gagern/bzr/str-unicode

« back to all changes in this revision

Viewing changes to bzrlib/dirstate.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-06-09 16:03:47 UTC
  • mfrom: (3477.2.2 symlink_unicode_135320)
  • Revision ID: pqm@pqm.ubuntu.com-20080609160347-bbytjk1914u9qast
(jam) Bug #135320, keep symlink lines in ascii, not Unicode

Show diffs side-by-side

added added

removed removed

Lines of Context:
1825
1825
            raise
1826
1826
        return result
1827
1827
 
1828
 
    def _inv_entry_to_details(self, inv_entry):
 
1828
    @staticmethod
 
1829
    def _inv_entry_to_details(inv_entry):
1829
1830
        """Convert an inventory entry (from a revision tree) to state details.
1830
1831
 
1831
1832
        :param inv_entry: An inventory entry whose sha1 and link targets can be
1841
1842
            size = 0
1842
1843
            executable = False
1843
1844
        elif kind == 'symlink':
1844
 
            fingerprint = inv_entry.symlink_target or ''
 
1845
            # We don't support non-ascii targets for symlinks yet.
 
1846
            fingerprint = str(inv_entry.symlink_target or '')
1845
1847
            size = 0
1846
1848
            executable = False
1847
1849
        elif kind == 'file':