subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1624042 - /subversion/branches/log-message-templates/subversion/svn/util.c
Date Wed, 10 Sep 2014 15:54:20 GMT
Author: stsp
Date: Wed Sep 10 15:54:19 2014
New Revision: 1624042

URL: http://svn.apache.org/r1624042
Log:
On the log-message-templates branch:

* subversion/svn/util.c
  (svn_cl__get_log_message): When listing a template defined at the repository
   root among other templates, show repository root path as '/' instead of ''.

Modified:
    subversion/branches/log-message-templates/subversion/svn/util.c

Modified: subversion/branches/log-message-templates/subversion/svn/util.c
URL: http://svn.apache.org/viewvc/subversion/branches/log-message-templates/subversion/svn/util.c?rev=1624042&r1=1624041&r2=1624042&view=diff
==============================================================================
--- subversion/branches/log-message-templates/subversion/svn/util.c (original)
+++ subversion/branches/log-message-templates/subversion/svn/util.c Wed Sep 10 15:54:19 2014
@@ -363,7 +363,9 @@ svn_cl__get_log_message(const char **log
 
               sep = apr_psprintf(iterpool,
                                  _("\n--Log message template from '%s'--\n"),
-                                 repos_relpath);
+                                 repos_relpath[0] == '\0'
+                                   ? "/"
+                                   : repos_relpath);
               svn_stringbuf_appendcstr(template_text, sep);
             }
           svn_stringbuf_appendcstr(template_text, this_template);



Mime
View raw message