subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bre...@apache.org
Subject svn commit: r1463801 - /subversion/trunk/subversion/libsvn_repos/repos.c
Date Wed, 03 Apr 2013 00:35:36 GMT
Author: breser
Date: Wed Apr  3 00:35:36 2013
New Revision: 1463801

URL: http://svn.apache.org/r1463801
Log:
Convert the conf/hooks-env file created when making a new repo to be
conf/hooks-env.tmpl.

Just seems silly to parse a file that's fully commented out and that
many people may never use.

* subversion/libsvn_repos/repos.c
  (create_conf): Make the conf/hooks-env file be written as hooks-env.tmpl.
    Uncomment the sections that is in it.

Modified:
    subversion/trunk/subversion/libsvn_repos/repos.c

Modified: subversion/trunk/subversion/libsvn_repos/repos.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/repos.c?rev=1463801&r1=1463800&r2=1463801&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/repos.c (original)
+++ subversion/trunk/subversion/libsvn_repos/repos.c Wed Apr  3 00:35:36 2013
@@ -1147,14 +1147,15 @@ create_conf(svn_repos_t *repos, apr_pool
 "### With svnserve, the LANG environment variable of the svnserve process"   NL
 "### must be set to the same value as given here."                           NL
 "[default]"                                                                  NL
-"# LANG = en_US.UTF-8"                                                       NL
+"LANG = en_US.UTF-8"                                                         NL
 ""                                                                           NL
 "### This sets the PATH environment variable for the pre-commit hook."       NL
-"# [pre-commit]"                                                             NL
-"# PATH = /usr/local/bin:/usr/bin:/usr/sbin"                                 NL;
+"[pre-commit]"                                                               NL
+"PATH = /usr/local/bin:/usr/bin:/usr/sbin"                                   NL;
 
     SVN_ERR_W(svn_io_file_create(svn_dirent_join(repos->conf_path,
-                                                 SVN_REPOS__CONF_HOOKS_ENV,
+                                                 SVN_REPOS__CONF_HOOKS_ENV \
+                                                 SVN_REPOS__HOOK_DESC_EXT,
                                                  pool),
                                  hooks_env_contents, pool),
               _("Creating hooks-env file"));



Mime
View raw message