cmpilato@collab.net wrote:
> I'd be cool with that.
>
> [miscellany]
> log-encoding =
Here's a patch against the 0.18 tarball.
Note that I'm not familiar with the Source and with the Patching Habits.
If you prefer something else, ask.
Log message : well, uh,
Implement a new configuration option "[miscellany]/log-encoding"
to set a global default for the "--encoding" option of svn.
--- subversion/clients/cmdline/main.c.orig Tue Feb 25 15:08:13 2003
+++ subversion/clients/cmdline/main.c Tue Feb 25 15:44:41 2003
@@ -905,6 +905,13 @@ main (int argc, const char * const *argv
ctx.log_msg_baton = svn_cl__make_log_msg_baton (&opt_state, NULL,
ctx.config, pool);
+ if (!opt_state.encoding || !*opt_state.encoding) {
+ svn_config_get (cfg, &opt_state.encoding,
+ SVN_CONFIG_SECTION_MISCELLANY,
+ SVN_CONFIG_OPTION_LOG_ENCODING,
+ NULL);
+ }
+
/* Authentication set-up. */
{
const char *store_password_val = NULL;
--- subversion/libsvn_subr/config_file.c.orig Tue Feb 25 15:45:36 2003
+++ subversion/libsvn_subr/config_file.c Tue Feb 25 15:46:56 2003
@@ -777,7 +777,9 @@ svn_config_ensure (apr_pool_t *pool)
"# [miscellany]\n"
"### Set global-ignores to a set of whitespace-delimited globs\n"
"### which Subversion will ignore in its `status' output.\n"
- "# global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#*"
+ "# global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#*\n"
+ "### Set log-encoding to the default encoding for log messages\n"
+ "# log-encoding = latin1\n"
"\n"
"### See http://subversion.tigris.org/issues/show_bug.cgi?id=668\n"
"### for what else will soon be customized in this file.\n";
--- subversion/include/svn_config.h.orig Tue Feb 25 14:55:53 2003
+++ subversion/include/svn_config.h Tue Feb 25 14:56:20 2003
@@ -73,6 +73,7 @@
#define SVN_CONFIG_OPTION_DIFF3_HAS_PROGRAM_ARG "diff3-has-program-arg"
#define SVN_CONFIG_SECTION_MISCELLANY "miscellany"
#define SVN_CONFIG_OPTION_GLOBAL_IGNORES "global-ignores"
+#define SVN_CONFIG_OPTION_LOG_ENCODING "log-encoding"
#define SVN_CONFIG_OPTION_TEMPLATE_ROOT "template-root"
End of Patch.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 25 16:08:13 2003