| 64 | | if mime_type == "" and eol_style == '': |
| 65 | | errmsg.append( "%s : 属性 svn:mime-type 或者 svn:eol-style 没有设置" % path.decode('utf-8','replace').encode('utf-8','replace') ) |
| 66 | | elif ptext.match(mime_type) and eol_style == '': |
| 67 | | errmsg.append( "%s : svn:mime-type=%s 但是 svn:eol-style 没有设置" % (path.decode('utf-8','replace').encode('utf-8','replace'), mime_type) ) |
| | 69 | if mime_type == "" or ptext.match(mime_type): |
| | 70 | if eol_style == '': |
| | 71 | ## check if crlf in file contents |
| | 72 | if not force: |
| | 73 | if crlf_in_file(txn, repos, path): |
| | 74 | errmsg.append( "CRLF (DOS style EOL) in file: %s" % path.decode('utf-8','replace').encode('utf-8','replace') ) |
| | 75 | else: |
| | 76 | continue |
| | 77 | if mime_type == "": |
| | 78 | errmsg.append( "%s : 属性 svn:mime-type 或者 svn:eol-style 没有设置" % path.decode('utf-8','replace').encode('utf-8','replace') ) |
| | 79 | else: |
| | 80 | errmsg.append( "%s : svn:mime-type=%s 但是 svn:eol-style 没有设置" % (path.decode('utf-8','replace').encode('utf-8','replace'), mime_type) ) |