/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: Canonical.com Patch Queue Manager
  • Date: 2008-07-08 17:09:38 UTC
  • mfrom: (3287.20.5 non_utf8_77657)
  • Revision ID: pqm@pqm.ubuntu.com-20080708170938-gt3lvh2xejc4w8vf
(jam) Give a better error when encountering a bad filename (bug
        #77657)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2460
2460
                                new_executable = bool(
2461
2461
                                    stat.S_ISREG(current_path_info[3].st_mode)
2462
2462
                                    and stat.S_IEXEC & current_path_info[3].st_mode)
 
2463
                                try:
 
2464
                                    relpath_unicode = utf8_decode(current_path_info[0])[0]
 
2465
                                except UnicodeDecodeError:
 
2466
                                    raise errors.BadFilenameEncoding(
 
2467
                                        current_path_info[0], osutils._fs_enc)
2463
2468
                                yield (None,
2464
 
                                    (None, utf8_decode(current_path_info[0])[0]),
 
2469
                                    (None, relpath_unicode),
2465
2470
                                    True,
2466
2471
                                    (False, False),
2467
2472
                                    (None, None),