/[Apache-SVN]
ViewVC logotype

Revision 1466598


Jump to revision: Previous Next
Author: stsp
Date: Wed Apr 10 18:00:21 2013 UTC (11 years, 8 months ago)
Changed paths: 4
Log Message:
Add two additional custom keyword format codes which are used by FreeBSD.

   %H   - Equivalent to %P%_%r%_%d%_%a.
   %I   - Equivalent to %b%_%r%_%d%_%a.

With this, keyword expansion works as expected with svn.freebsd.org using
a stock Subversion client, rather than requiring a patched client.

These two codes are already in use at svn.freebsd.org and were part of the
originally submitted patch. I'd rather add support for these format codes
to Subversion than require FreeBSD to change its svn:keywords properties
throughout their repository history.

But I'm not sure whether adding additional alias format codes is a good
idea in general, so please don't regard this as a carte blanche for
everyone else to get their favorite format code aliases into the
Subversion code base.

* subversion/include/svn_subst.h
  (svn_subst_build_keywords3): Document support for %H and %I format codes.

* subversion/libsvn_subr/subst.c
  (keyword_printf): Implement support for %H and %I format codes.

* subversion/svn/svn.c
  (svn_cl__cmd_table): Document support for %H and %I in 'svn help propset'.

* subversion/tests/libsvn_subr/subst_translate-test.c
  (test_svn_subst_build_keywords3): Expand test to cover %H and %I.


Changed paths

Path Details
Directorysubversion/trunk/subversion/include/svn_subst.h modified , text changed
Directorysubversion/trunk/subversion/libsvn_subr/subst.c modified , text changed
Directorysubversion/trunk/subversion/svn/svn.c modified , text changed
Directorysubversion/trunk/subversion/tests/libsvn_subr/subst_translate-test.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26