Edgewall Software
Modify

Opened 11 years ago

Closed 11 years ago

Last modified 2 years ago

#11324 closed enhancement (fixed)

Set Subversion inherited properties on root of working copy directories

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: not applicable
Component: project Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Ryan J Ollos)

Subversion 1.8 added inherited properties on directories. This includes svn:auto-props and svn:global-ignores.

To avoid the need to (remember to) manual set svn:eol-style = native on every file ([12103], [12081], [12059], [12058], …) when using a 1.8 client, we could set svn:auto-props on trunk, /branches/1.0-stable and /branches/0.12-stable for certain file extensions.

From searching the codebase, I've come up with the following to capture the most common file extensions:

*.cmd = svn:eol-style=native
*.conf = svn:eol-style=native
*.css = svn:eol-style=native
*.html = svn:eol-style=native
*.ini = svn:eol-style=native
*.js = svn:eol-style=native
*.po = svn:eol-style=native
*.py = svn:eol-style=native
*.rst = svn:eol-style=native
*.txt = svn:eol-style=native

Is there a reason for setting the mime-type for png files to image/png rather than Subversion's default application/octet-stream? There seems to be a mix of both:

$ svn propget svn:mime-type trac/htdocs/*trac/htdocs/asc.png - image/png
trac/htdocs/attachment.png - application/octet-stream
trac/htdocs/batchmodify.png - application/octet-stream
trac/htdocs/changeset.png - image/png
trac/htdocs/closedticket.png - image/png
trac/htdocs/collapsed.png - application/octet-stream
trac/htdocs/desc.png - image/png
trac/htdocs/dots.gif - image/gif
trac/htdocs/download.png - image/png
trac/htdocs/draft.png - image/png
trac/htdocs/editedticket.png - image/png
trac/htdocs/edit_toolbar.png - image/png
trac/htdocs/envelope.png - image/png
trac/htdocs/expanded.png - application/octet-stream
trac/htdocs/expander_normal_hover.png - application/octet-stream
trac/htdocs/expander_normal.png - application/octet-stream
trac/htdocs/expander_open_hover.png - application/octet-stream
trac/htdocs/expander_open.png - application/octet-stream
trac/htdocs/extlink.gif - image/gif
trac/htdocs/feed.png - image/png
trac/htdocs/file.png - image/png
trac/htdocs/folder.png - image/png
trac/htdocs/grip.png - image/png
trac/htdocs/ics.png - image/png
trac/htdocs/imggrid.png - image/png
trac/htdocs/inreply2.png - application/octet-stream
trac/htdocs/inreply.png - application/octet-stream
trac/htdocs/loading.gif - application/octet-stream
trac/htdocs/lock-locked.png - application/octet-stream
trac/htdocs/milestone.png - image/png
trac/htdocs/newticket.png - image/png
trac/htdocs/parent.png - image/png
trac/htdocs/python.png - application/octet-stream
trac/htdocs/topbar_gradient2.png - image/png
trac/htdocs/topbar_gradient.png - image/png
trac/htdocs/trac_banner.png - image/png
trac/htdocs/trac.ico - application/octet-stream
trac/htdocs/trac_logo_mini.png - image/png
trac/htdocs/vgradient.png - application/octet-stream
trac/htdocs/wiki.png - image/png

If the mimetype for image files is important, we could also set that as an autoprop; if not, we can just let SVN set it to application/octet-stream. Is there anything else we should consider setting as an autoprop?

For global-ignores, I had in mind the following:

*.orig
*.pyc
*.rej
*.swp
*.tmp

Attachments (0)

Change History (3)

comment:1 by Ryan J Ollos, 11 years ago

API Changes: modified (diff)
Description: modified (diff)
Resolution: fixed
Status: newclosed

Committed to 1.0-stable in [12175:12176]. Merged to trunk in [12177].

comment:2 by Ryan J Ollos, 10 years ago

API Changes: modified (diff)
Component: generalproject
Milestone: 1.0.2

This isn't really part of the release, so changing the milestone.

comment:3 by Ryan J Ollos, 10 years ago

Milestone: not applicable

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.