[wp-trac] [WordPress Trac] #42594: Clean up svn properties on develop
WordPress Trac
noreply at wordpress.org
Fri Jan 18 04:56:26 UTC 2019
#42594: Clean up svn properties on develop
--------------------------+-----------------------
Reporter: dd32 | Owner: (none)
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.1
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+-----------------------
Comment (by pento):
It'd help to add [http://svnbook.red-
bean.com/en/1.8/svn.advanced.props.html#svn.advanced.props.inheritable
auto-props] to the repo, so we don't keep having to do this. These are all
the extensions in the repo, a few extra pairs of eyes to check that I got
them all would be helpful.
{{{
### Source files
*.css = svn:eol-style=native
*.js = svn:eol-style=native
*.php = svn:eol-style=native
*.py = svn:eol-style=native
### Font files
*.eot = svn:mime-type=application/octet-stream
*.otf = svn:mime-type=application/octet-stream
*.ttf = svn:mime-type=application/octet-stream
*.woff = svn:mime-type=application/octet-stream
*.woff2 = svn:mime-type=application/octet-stream
### Image files
*.bmp = svn:mime-type=application/octet-stream
*.gif = svn:mime-type=application/octet-stream
*.ico = svn:mime-type=application/octet-stream
*.jp2 = svn:mime-type=application/octet-stream
*.jpg = svn:mime-type=application/octet-stream
*.pct = svn:mime-type=application/octet-stream
*.png = svn:mime-type=application/octet-stream
*.psd = svn:mime-type=application/octet-stream
*.sgi = svn:mime-type=application/octet-stream
*.svg = svn:eol-style=native
*.tga = svn:mime-type=application/octet-stream
*.tiff = svn:mime-type=application/octet-stream
### Video files
*.mkv = svn:mime-type=application/octet-stream
*.mov = svn:mime-type=application/octet-stream
*.mp4 = svn:mime-type=application/octet-stream
*.webm = svn:mime-type=application/octet-stream
### Audio files
*.flac = svn:mime-type=application/octet-stream
*.mp3 = svn:mime-type=application/octet-stream
### Document files
*.csv = svn:eol-style=native
*.dfxp = svn:eol-style=native
*.docx = svn:mime-type=application/octet-stream
*.html = svn:eol-style=native
*.md = svn:eol-style=native
*.pdf = svn:mime-type=application/octet-stream
*.rtf = svn:mime-type=application/octet-stream
*.tsv = svn:eol-style=native
*.txt = svn:eol-style=native
*.vtt = svn:eol-style=native
### Translation files
*.mo = svn:eol-style=native
*.po = svn:mime-type=application/octet-stream
*.pot = svn:eol-style=native
### Config files
*.dist = svn:eol-style=native
*.jshintrc = svn:eol-style=native
*.json = svn:eol-style=native
*.lock = svn:eol-style=native
*.xml = svn:eol-style=native
*.yml = svn:eol-style=native
### Miscellaneous
*.crt = svn:eol-style=native
*.map = svn:eol-style=native
*.nodelete = svn:eol-style=native
}}}
To fix up the existing problems, something like these commands will do:
{{{
find -E . -regex '.*\.(css|js|php|py)' | xargs -I {} svn propset svn:eol-
style native '{}'
find -E . -regex '.*\.(bmp|gif|ico|jp2|jpg)' | xargs -I {} svn propset svn
:mime-type application/octet-stream '{}'
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42594#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list