I modified the TSVN config file to enable auto properties with
"enable-auto-props = yes" and add auto properties for various file
types. Yet when I try to add a file to a repository I get a message
telling me the commit failed because "svn:mime-type is not set". The
commit has a pre-commit hook which checks for it. My config file is:
"### This file configures various client-side behaviors.
###
### The commented-out examples below are intended to demonstrate
### how to use this file.
### Section for authentication and authorization customizations.
[auth]
### Set password stores used by Subversion. They should be
### delimited by spaces or commas. The order of values determines
### the order in which password stores are used.
### Valid password stores:
### gnome-keyring (Unix-like systems)
### kwallet (Unix-like systems)
### keychain (Mac OS X)
### windows-cryptoapi (Windows)
# password-stores = windows-cryptoapi
###
### The rest of this section in this file has been deprecated.
### Both 'store-passwords' and 'store-auth-creds' can now be
### specified in the 'servers' file in your config directory.
### Anything specified in this section is overridden by settings
### specified in the 'servers' file.
###
### Set store-passwords to 'no' to avoid storing passwords in the
### auth/ area of your config directory. It defaults to 'yes',
### but Subversion will never save your password to disk in
### plaintext unless you tell it to (see the 'servers' file).
### Note that this option only prevents saving of *new* passwords;
### it doesn't invalidate existing passwords. (To do that, remove
### the cache files by hand as described in the Subversion book.)
# store-passwords = no
### Set store-auth-creds to 'no' to avoid storing any subversion
### credentials in the auth/ area of your config directory.
### It defaults to 'yes'. Note that this option only prevents
### saving of *new* credentials; it doesn't invalidate existing
### caches. (To do that, remove the cache files by hand.)
# store-auth-creds = no
### Section for configuring external helper applications.
[helpers]
### Set editor-cmd to the command used to invoke your text editor.
### This will override the environment variables that Subversion
### examines by default to find this information ($EDITOR,
### et al).
# editor-cmd = editor (vi, emacs, notepad, etc.)
### Set diff-cmd to the absolute path of your 'diff' program.
### This will override the compile-time default, which is to use
### Subversion's internal diff implementation.
# diff-cmd = diff_program (diff, gdiff, etc.)
### Set diff3-cmd to the absolute path of your 'diff3' program.
### This will override the compile-time default, which is to use
### Subversion's internal diff3 implementation.
# diff3-cmd = diff3_program (diff3, gdiff3, etc.)
### Set diff3-has-program-arg to 'yes' if your 'diff3' program
### accepts the '--diff-program' option.
# diff3-has-program-arg = [yes | no]
### Set merge-tool-cmd to the command used to invoke your external
### merging tool of choice. Subversion will pass 4 arguments to
### the specified command: base theirs mine merged
# merge-tool-cmd = merge_command
### Section for configuring tunnel agents.
[tunnels]
### Configure svn protocol tunnel schemes here. By default, only
### the 'ssh' scheme is defined. You can define other schemes to
### be used with 'svn+scheme://hostname/path' URLs. A scheme
### definition is simply a command, optionally prefixed by an
### environment variable name which can override the command if it
### is defined. The command (or environment variable) may contain
### arguments, using standard shell quoting for arguments with
### spaces. The command will be invoked as:
### <command> <hostname> svnserve -t
### (If the URL includes a username, then the hostname will be
### passed to the tunnel agent as <user>@<hostname>.) If the
### built-in ssh scheme were not predefined, it could be defined
### as:
# ssh = $SVN_SSH ssh
### If you wanted to define a new 'rsh' scheme, to be used with
### 'svn+rsh:' URLs, you could do so as follows:
# rsh = rsh
### Or, if you wanted to specify a full path and arguments:
# rsh = /path/to/rsh -l myusername
### On Windows, if you are specifying a full path to a command,
### use a forward slash (/) or a paired backslash (\\) as the
### path separator. A single backslash will be treated as an
### escape for the following character.
### Section for configuring miscelleneous Subversion options.
[miscellany]
### Set global-ignores to a set of whitespace-delimited globs
### which Subversion will ignore in its 'status' output, and
### while importing or adding files and directories.
### '*' matches leading dots, e.g. '*.rej' matches '.foo.rej'.
# global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo
# *.rej *~ #*# .#* .*.swp .DS_Store
### Set log-encoding to the default encoding for log messages
# log-encoding = latin1
### Set use-commit-times to make checkout/update/switch/revert
### put last-committed timestamps on every file touched.
# use-commit-times = yes
### Set no-unlock to prevent 'svn commit' from automatically
### releasing locks on files.
# no-unlock = yes
### Set mime-types-file to a MIME type registry file, used to
### provide hints to Subversion's MIME type auto-detection
### algorithm.
# mime-types-file = /path/to/mime.types
### Set preserved-conflict-file-exts to a whitespace-delimited
### list of patterns matching file extensions which should be
### preserved in generated conflict file names. By default,
### conflict files use custom extensions.
# preserved-conflict-file-exts = doc ppt xls od?
### Set enable-auto-props to 'yes' to enable automatic properties
### for 'svn add' and 'svn import', it defaults to 'no'.
### Automatic properties are defined in the section 'auto-props'.
enable-auto-props = yes
### Set interactive-conflicts to 'no' to disable interactive
### conflict resolution prompting. It defaults to 'yes'.
# interactive-conflicts = no
### Section for configuring automatic properties.
[auto-props]
### The format of the entries is:
### file-name-pattern = propname[=value][;propname[=value]...]
### The file-name-pattern can contain wildcards (such as '*' and
### '?'). All entries which match (case-insensitively) will be
### applied to the file. Note that auto-props functionality
### must be enabled, which is typically done by setting the
### 'enable-auto-props' option.
# *.c = svn:eol-style=native
# *.cpp = svn:eol-style=native
# *.h = svn:eol-style=native
# *.dsp = svn:eol-style=CRLF
# *.dsw = svn:eol-style=CRLF
# *.sh = svn:eol-style=native;svn:executable
# *.txt = svn:eol-style=native
# *.png = svn:mime-type=image/png
# *.jpg = svn:mime-type=image/jpeg
# Makefile = svn:eol-style=native
# Scriptish formats
*.bat = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.bsh = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/x-beanshell
*.cgi = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.cmd = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.js = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/javascript
*.php = svn:eol-style=native; svn:keywords=Id Rev Date;
svn:mime-type=text/x-php
*.pl = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/x-perl; svn:executable
*.pm = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/x-perl
*.py = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/x-python; svn:executable
*.sh = svn:eol-style=LF; svn:keywords=Id;
svn:mime-type=text/x-sh; svn:executable
configure = svn:eol-style=LF; svn:keywords=Id;
svn:mime-type=text/x-sh; svn:executable
# Image formats
*.bmp = svn:mime-type=image/bmp
*.gif = svn:mime-type=image/gif
*.ico = svn:mime-type=image/ico
*.jpeg = svn:mime-type=image/jpeg
*.jpg = svn:mime-type=image/jpeg
*.png = svn:mime-type=image/png
*.tif = svn:mime-type=image/tiff
*.tiff = svn:mime-type=image/tiff
*.svg = svn:eol-style=native; svn:mime-type=image/svg+xml
# Data formats
*.pdf = svn:mime-type=application/pdf
*.avi = svn:mime-type=video/avi
*.doc = svn:mime-type=application/msword
*.dsp = svn:mime-type=text/plain;svn:eol-style=CRLF
*.dsw = svn:mime-type=text/plain;svn:eol-style=CRLF
*.eps = svn:mime-type=application/postscript
*.gz = svn:mime-type=application/gzip
*.mov = svn:mime-type=video/quicktime
*.mp3 = svn:mime-type=audio/mpeg
*.ppt = svn:mime-type=application/vnd.ms-powerpoint
*.ps = svn:mime-type=application/postscript
*.psd = svn:mime-type=application/photoshop
*.rdf = svn:eol-style=native;svn:keywords=Id
*.rss = svn:eol-style=native;svn:keywords=Id
*.rtf = svn:mime-type=text/rtf
*.sln = svn:eol-style=native;svn:mime-type=text/plain
*.swf = svn:mime-type=application/x-shockwave-flash
*.tgz = svn:mime-type=application/gzip
*.vcproj = svn:eol-style=native;svn:mime-type=text/xml
*.vsprops = svn:eol-style=native;svn:mime-type=text/xml
*.wav = svn:mime-type=audio/wav
*.xls = svn:mime-type=application/vnd.ms-excel
*.zip = svn:mime-type=application/zip
# Text formats
.htaccess = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.bbk = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/xml
*.cmake = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.css = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/css
*.dtd = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/xml
*.htm = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/html
*.html = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/html
*.ini = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.log = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.mak = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.qbk = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.rst = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.sql = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/x-sql
*.txt = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.xhtml = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/xhtml+xml
*.xml = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/xml
*.xsd = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/xml
*.xsl = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/xml
*.xslt = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/xml
*.xul = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/xul
*.yml = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
CHANGES = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
COPYING = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
INSTALL = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
Jamfile = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
Jamroot = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
Jamfile.v2 = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
Jamrules = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
Makefile* = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
README = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
TODO = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
# Code formats
*.c = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.cpp = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.h = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.hpp = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.ipp = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.tpp = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.jam = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain
*.java = svn:eol-style=native; svn:keywords=Id;
svn:mime-type=text/plain"
The error message is:
"Commit failed (details follow):
Commit blocked by pre-commit hook (exit code 1) with output:
/home/subversion/boost/hooks/check-mime-type.pl:
sandbox/variadic_macro_data/boost/variadic_macro_data/detail/VMDDetail.hpp
:
svn:mime-type is not set"
The file I am attempting to commit has an .hpp extension. Anybody have
any idea why this is not working ?
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2660314
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-09-15 18:10:18 CEST