[[[ Extend svn_subst_translate_string2() with another parameter, REPAIR, to allow the caller to customize whether line ending repairs are performed. As discussed at: http://thread.gmane.org/gmane.comp.version-control.subversion.devel/125050 * subversion/include/svn_subst.h (svn_subst_translate_string2): Add a REPAIR parameter. Update the documentation of the function. * subversion/libsvn_subr/subst.c (svn_subst_translate_string2): Add a REPAIR parameter. Pass the value through to translate_cstring(). * subversion/libsvn_subr/deprecated.c (svn_subst_translate_string): Call svn_subst_translate_string2() with REPAIR set to FALSE. * subversion/svn/util.c (svn_cl__edit_string_externally, svn_cl__get_log_message): Call svn_subst_translate_string2() with REPAIR set to FALSE. * subversion/svn/propset-cmd.c (svn_cl__propset): Call svn_subst_translate_string2() with REPAIR set to FALSE. * subversion/svn/lock-cmd.c (get_comment): Call svn_subst_translate_string2() with REPAIR set to FALSE. * subversion/svnadmin/main.c (set_revprop): Call svn_subst_translate_string2() with REPAIR set to FALSE. * subversion/tests/libsvn_subr/subst_translate-test.c (test_svn_subst_translate_string2): Call svn_subst_translate_string2() with REPAIR set to FALSE. Also test that inconsistent line endings result in SVN_ERR_IO_INCONSISTENT_EOL when REPAIR is FALSE. (test_repairing_svn_subst_translate_string2): New test case that tests a repairing translation. (test_funcs): Add test_repairing_svn_subst_translate_string2. ]]]