Author: cmpilato
Date: Thu May 12 17:43:26 2011
New Revision: 1102398
URL: http://svn.apache.org/viewvc?rev=1102398&view=rev
Log:
Fix issue #3881 ("svnmucc - propsetf - Property files only support Unix EOLs").
* tools/client-side/svnmucc/svnmucc.c
(main): Normalize property values where Subversion demands it.
Modified:
subversion/trunk/tools/client-side/svnmucc/svnmucc.c
Modified: subversion/trunk/tools/client-side/svnmucc/svnmucc.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/tools/client-side/svnmucc/svnmucc.c?rev=1102398&r1=1102397&r2=1102398&view=diff
==============================================================================
--- subversion/trunk/tools/client-side/svnmucc/svnmucc.c (original)
+++ subversion/trunk/tools/client-side/svnmucc/svnmucc.c Thu May 12 17:43:26
2011
@@ -50,6 +50,7 @@
#include "svn_props.h"
#include "svn_ra.h"
#include "svn_string.h"
+#include "svn_subst.h"
#include "svn_utf.h"
#include "private/svn_cmdline_private.h"
@@ -1063,6 +1064,21 @@ main(int argc, const char **argv)
action->action = ACTION_PROPSET;
}
+
+ if (action->prop_value
+ && svn_prop_needs_translation(action->prop_name))
+ {
+ svn_string_t *translated_value;
+ err = svn_subst_translate_string2(&translated_value, NULL,
+ NULL, action->prop_value, NULL,
+ FALSE, pool, pool);
+ if (err)
+ handle_error(
+ svn_error_quick_wrap(err,
+ "Error normalizing property value"),
+ pool);
+ action->prop_value = translated_value;
+ }
}
/* How many URLs does this action expect? */