You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2013/01/21 13:43:30 UTC

svn commit: r1436311 - /subversion/trunk/subversion/libsvn_client/patch.c

Author: stsp
Date: Mon Jan 21 12:43:30 2013
New Revision: 1436311

URL: http://svn.apache.org/viewvc?rev=1436311&view=rev
Log:
* subversion/libsvn_client/patch.c
  (readline): Specify expected behaviour in the function's docstring, rather
   than in a comment within the function.

Modified:
    subversion/trunk/subversion/libsvn_client/patch.c

Modified: subversion/trunk/subversion/libsvn_client/patch.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/patch.c?rev=1436311&r1=1436310&r2=1436311&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/patch.c (original)
+++ subversion/trunk/subversion/libsvn_client/patch.c Mon Jan 21 12:43:30 2013
@@ -1133,7 +1133,9 @@ init_patch_target(patch_target_t **patch
 }
 
 /* Read a *LINE from CONTENT. If the line has not been read before
- * mark the line in CONTENT->LINES. Allocate *LINE in RESULT_POOL.
+ * mark the line in CONTENT->LINES.
+ * If a line could be read successfully, increase CONTENT->CURRENT_LINE,
+ * and allocate *LINE in RESULT_POOL.
  * Do temporary allocations in SCRATCH_POOL.
  */
 static svn_error_t *
@@ -1174,9 +1176,6 @@ readline(target_content_t *content,
                                        content->keywords, FALSE,
                                        result_pool));
 
-  /* Increase the line number if a line is read. An easy !eof won't work,
-     because that won't count the last and sometime only line.
-     (And using line number 0 gives all kinds of problems) */
   if (line_raw->len > 0 || eol_str)
     content->current_line++;