You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Bert Huijben <be...@qqmail.nl> on 2015/02/13 23:44:22 UTC

Document svn:auto-props on 'svn help propset'

Would something like
[[
Index: subversion/svn/svn.c
===================================================================
--- subversion/svn/svn.c	(revision 1659683)
+++ subversion/svn/svn.c	(working copy)
@@ -1424,6 +1424,12 @@
      "  directory:\n"
      "    svn:ignore         - A list of file glob patterns to ignore, one
per line.\n"
      "    svn:global-ignores - Like svn:ignore, but inheritable.\n"
+     "    svn:auto-props     - A list of file patterns with properties to
apply on\n"
+     "      new files. Multiple properties are separated with a simicolon,
a doubled\n"
+     "      semicolon is handled litteral.\n"
+     "      Example:\n"
+     "        *.c=svn:eol-style=native\n"
+     "        *.html=svn:eol-style=native;svn:mime-type=text/html\n"
      "    svn:externals      - A list of module specifiers, one per line,
in the\n"
      "      following format similar to the syntax of 'svn checkout':\n"
      "        [-r REV] URL[@PEG] LOCALPATH\n"
]]
be useful?

We document almost all the other properties processed by 'svn' there. (I
don't see svn:mime-type)

	Bert


Re: Document svn:auto-props on 'svn help propset'

Posted by Julian Foad <ju...@btopenworld.com>.
Bert Huijben wrote:
> Would something like
> [[
> Index: subversion/svn/svn.c
> ===================================================================
[...]
>    "    svn:global-ignores - Like svn:ignore, but inheritable.\n"
> +  "    svn:auto-props     - A list of file patterns with properties to apply on\n"
> +  "      new files. Multiple properties are separated with a simicolon, a doubled\n"
> +  "      semicolon is handled litteral.\n"

Spelling: "semicolon", "literal".

I suggest a tweak to the wording:

  "    svn:auto-props     - A list of file patterns with properties to apply on\n"
  "      new files. Separate multiple properties with a semicolon; to insert a\n"
  "      literal semicolon, double it.\n"


> +  "      Example:\n"
> +  "        *.c=svn:eol-style=native\n"
> +  "        *.html=svn:eol-style=native;svn:mime-type=text/html\n"
>    "    svn:externals      - A list of module specifiers, one per line, in the\n"
[...]
> ]]
> be useful?
> 
> We document almost all the other properties processed by 'svn' there.

+1. For now, this is the place where we document the special props. The other prop commands refer to this one.

(I was recently thinking it would be nice to move the description of special props to its own help command, "svn help properties" for example, but that's another topic.)

> (I don't see svn:mime-type)

It's there, in the "properties on a file" subsection higher up.

- Julian