~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: John Arbash Meinel
  • Date: 2010-02-11 16:32:32 UTC
  • mto: This revision was merged to the branch mainline in revision 5034.
  • Revision ID: john@arbash-meinel.com-20100211163232-a60kroolh76xdmu3
Switch so that all unknown files get an empty marker, rather than failing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
    _directory_kind: "/",
173
173
    "symlink": "@",
174
174
    'tree-reference': '+',
175
 
    "socket": "=",
176
 
    "fifo": "|",
177
175
}
178
176
 
179
177
 
181
179
    try:
182
180
        return _kind_marker_map[kind]
183
181
    except KeyError:
184
 
        raise errors.BzrError('invalid file kind %r' % kind)
 
182
        # Slightly faster than using .get(, '') when the common case is that
 
183
        # kind will be found
 
184
        return ''
185
185
 
186
186
 
187
187
lexists = getattr(os.path, 'lexists', None)