/[Apache-SVN]
ViewVC logotype

Revision 1622687


Jump to revision: Previous Next
Author: stsp
Date: Fri Sep 5 12:03:35 2014 UTC (10 years, 2 months ago)
Changed paths: 3
Log Message:
On the log-message-templates branch, change the contents of the
log message template hash table passed to API consumers.

Before this change, the table was keyed by the template text and
contained lists of svn_client_commit_item3_t pointers as values.
Now, the table is keyed by repository-relative paths which contribute
a log message template and the values are the log message templates.

If necessary, API users can still determine which commit item is affected
by which template by correlating the repository-relative path of each commit
item with the repository-relative path of each log message template.

* subversion/include/svn_client.h
  (svn_client_get_commit_log4_t): Document the new hash table structure.

* subversion/libsvn_client/commit_util.c
  (get_log_message_templates): Rename 'log_templates' output parameter to
   'log_message_templates' for consistency. Populate the log template
   table with keys and values as per the above rules. Set the output parameter
   to NULL if no template is defined (this is a pre-existing API rule the
   code failed to implement).

* subversion/svn/util.c
  (svn_cl__get_log_message): Adjust for above API change and change the way
   multiple log templates are displayed to the user. We used to show:

     Multiple log message templates found:
     {{{
     template 1
     }}}
     {{{
     template 2
     }}}
     --This line, and those below, will be ignored--

  Now, we show something like this instead:

    --Log message template from 'trunk/epsilon'--
    template 1
    --Log message template from 'trunk'--
    template 2
    --This line, and those below, will be ignored--


Changed paths

Path Details
Directorysubversion/branches/log-message-templates/subversion/include/svn_client.h modified , text changed
Directorysubversion/branches/log-message-templates/subversion/libsvn_client/commit_util.c modified , text changed
Directorysubversion/branches/log-message-templates/subversion/svn/util.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26