[svnbook] r4006 committed - Finish issue #36 ("Document auto-props escape syntax (;;)")....

svnbook at googlecode.com svnbook at googlecode.com
Wed Aug 17 10:52:31 CDT 2011


Revision: 4006
Author:   cmpilato at gmail.com
Date:     Wed Aug 17 08:51:58 2011
Log:      Finish issue #36 ("Document auto-props escape syntax (;;)").

* en/book/ch07-customizing-svn.xml
   (svn.advanced.confarea.opts.config): Document the semicolon escape
     trick for autoprops, and show a practical example of them in use.

http://code.google.com/p/svnbook/source/detail?r=4006

Modified:
  /trunk/en/book/ch07-customizing-svn.xml

=======================================
--- /trunk/en/book/ch07-customizing-svn.xml	Fri Aug  5 07:43:09 2011
+++ /trunk/en/book/ch07-customizing-svn.xml	Wed Aug 17 08:51:58 2011
@@ -891,7 +891,39 @@
            ...]</literal>, where <replaceable>PATTERN</replaceable> is
            a file pattern that matches one or more filenames and the
            rest of the line is a semicolon-delimited set of property
-          assignments.  Multiple matches on a file will result in
+          assignments.  (If you need to use a semicolon in your
+          property's name or value, you can escape it by doubling
+          it.)</para>
+
+        <informalexample>
+          <screen>
+$ cat ~/.subversion/config
+…
+[auto-props]
+*.c = svn:eol-style=native
+*.html = svn:eol-style=native;svn:mime-type=text/html;; charset=UTF8
+*.sh = svn:eol-style=native;svn:executable
+…
+$ cd projects/myproject
+$ svn status
+?       www/index.html
+$ svn add www/index.html
+A         www/index.html
+$ svn diff www/index.html
+…
+
+Property changes on: www/index.html
+___________________________________________________________________
+Added: svn:mime-type
+   + text/html; charset=UTF8
+Added: svn:eol-style
+   + native
+$
+</screen>
+
+        </informalexample>
+
+        <para>Multiple matches on a file will result in
            multiple propsets for that file; however, there is no
            guarantee that auto-props will be applied in the order in
            which they are listed in the config file, so you can't have




More information about the svnbook-dev mailing list