Show More
@@ -426,15 +426,14 class dirstate(object): | |||
|
426 | 426 | self._ui.warn('%s: %s\n' % (self.pathto(f), msg)) |
|
427 | 427 | return False |
|
428 | 428 | |
|
429 |
def badtype( |
|
|
429 | def badtype(mode): | |
|
430 | 430 | kind = _('unknown') |
|
431 | 431 | if stat.S_ISCHR(mode): kind = _('character device') |
|
432 | 432 | elif stat.S_ISBLK(mode): kind = _('block device') |
|
433 | 433 | elif stat.S_ISFIFO(mode): kind = _('fifo') |
|
434 | 434 | elif stat.S_ISSOCK(mode): kind = _('socket') |
|
435 | 435 | elif stat.S_ISDIR(mode): kind = _('directory') |
|
436 |
|
|
|
437 | % (self.pathto(f), kind)) | |
|
436 | return _('unsupported file type (type is %s)') % kind | |
|
438 | 437 | |
|
439 | 438 | ignore = self._ignore |
|
440 | 439 | dirignore = self._dirignore |
@@ -502,7 +501,7 class dirstate(object): | |||
|
502 | 501 | elif kind == regkind or kind == lnkkind: |
|
503 | 502 | results[nf] = st |
|
504 | 503 | else: |
|
505 |
bad |
|
|
504 | badfn(ff, badtype(kind)) | |
|
506 | 505 | if nf in dmap: |
|
507 | 506 | results[nf] = None |
|
508 | 507 | except OSError, inst: |
General Comments 0
You need to be logged in to leave comments.
Login now