[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Wrong condition is checked to understend whether to reset translated_size value in NODES table

From: Dmitry Pavlenko <pavlenko_at_tmatesoft.com>
Date: Mon, 25 Jun 2012 16:03:42 +0200

I would also ask you to add the fix to 1.7.x

[[[
Fix a typo that could lead to wrong translated_size value.
if svn:eol-style is locally changed and svn:keywords is not, translated_size wasn't reset.

* subversion/libsvn_wc/props.c
  (do_propset): SVN_PROP_EOL_STYLE value should be checked, not SVN_PROP_KEYWORDS.
]]]
[[[
Index: subversion/libsvn_wc/props.c
===================================================================
--- subversion/libsvn_wc/props.c (revision 1353527)
+++ subversion/libsvn_wc/props.c (working copy)
@@ -2315,7 +2315,7 @@ do_propset(svn_wc__db_t *db,
     }
   else if (kind == svn_node_file && strcmp(name, SVN_PROP_EOL_STYLE) == 0)
     {
- svn_string_t *old_value = apr_hash_get(prophash, SVN_PROP_KEYWORDS,
+ svn_string_t *old_value = apr_hash_get(prophash, SVN_PROP_EOL_STYLE,
                                              APR_HASH_KEY_STRING);
 
       if (((value == NULL) != (old_value == NULL))
]]]
Received on 2012-06-25 16:05:19 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.