Hi, Julian,

Here's the second round. I hope I did catch all issues.

As there were no comments about the names and the parameter order, I guess 
they're okay.

The tests still look well:

Summary of test results:
  1619 tests PASSED
  85 tests SKIPPED
  38 tests XFAILED (1 WORK-IN-PROGRESS)

[[
Optimize merge_file_trivial() by avoiding to read the files twice by using a
new comparison function which compares 3 files at once.

* subversion/include/svn_io.h
  (svn_io_filesizes_three_different_p): Add new declaration
  (svn_io_files_contents_three_same_p): Add new declaration

* subversion/libsvn_subr/io.c
  (svn_io_filesizes_three_different_p): Add new function in analogy to 
svn_io_filesizes_different_p().
  (contents_three_identical_p): Add new function in analogy to 
contents_identical_p().
  (svn_io_files_contents_three_same_p): Add new function in analogy to 
svn_io_files_contents_same_p.

* subversion/libsvn_wc/merge.c
  (merge_file_trivial): Use the new three-file comparison functions to avoid 
reading files twice.

Patch by: Markus Schaber <m.scha...@3s-software.com>
]]


Best regards

Markus Schaber
--

We software Automation.

3S-Smart Software Solutions GmbH
Markus Schaber | Developer
Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax 
+49-831-54031-50

Email: m.scha...@3s-software.com | Web: http://www.3s-software.com
CoDeSys internet forum: http://forum.3s-software.com
Download CoDeSys sample projects: 
http://www.3s-software.com/index.shtml?sample_projects

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade 
register: Kempten HRB 6186 | Tax ID No.: DE 167014915

________________________________________
Von: Julian Foad [julianf...@btopenworld.com]
Gesendet: Mittwoch, 13. Juni 2012 16:52
Bis: Markus Schaber
Cc: dev@subversion.apache.org
Betreff: Re: AW: [PATCH]: Optimize merge_file_trivial() (Was: Fix issue #4128)

Markus Schaber wrote:

>> Please use 'TRUE' and 'FALSE' for Boolean values in the code and in the doc 
>> strings, not zero and non-zero.
>
> I did just copy this from the 2-file functions that existed. I'll update the 
> patch accordingly.


Ah, I see.  I've fixed those in r1349889.

As for auto source formatting, I have settings for the Vim text editor, but I 
don't know about VS or a stand-alone tool.

- Julian


>> Please replace 'rsp' with 'and' or 'or' in the doc strings.  See 
>> <http://www.transblawg.eu/index.php?/archives/870-Resp.-and-other-non-existent-English-wordsNicht-existente-englische-Woerter.html> 
>>  :-)
>
>> Please don't initialize variables that are going to be unconditionally 
>> initialized later: variables 'file1_h', 'file2_h', 'file3_h' in 
>> contents_three_identical_p().
>
> I'll fix both issues, too.
>
>> Please make all the indentation consistent, and put operators on the 
>> beginning of each continuation line indented to just inside the relevant 
>> opening parenthesis, so instead of this:
>
> Is there some reformatter script or (even better) visual studio plugin that 
> implements all the formatting rules?
>
> Best regards
>
> Markus Schaber

Reply via email to