Re: svn commit: r983222 - /subversion/trunk/subversion/svnrdump/load_editor.c

2010-08-07 Thread Daniel Shahaf
artag...@apache.org wrote on Sat, Aug 07, 2010 at 12:31:50 -:
 Author: artagnon
 Date: Sat Aug  7 12:31:50 2010
 New Revision: 983222
 
 URL: http://svn.apache.org/viewvc?rev=983222view=rev
 Log:
 svnrdump: Fix a bug in the load_editor; it was unable to handle
 revisions without node information previously.
 
 * subversion/svnrdump/load_editor.c
   (close_revision): Add a new if-branch; if the commit_editor doesn't
   exist, create one, open_root and close_edit on it to indicate that
   we've finished processing the revision. While at it, also fix indentation.
^^

I take it you haven't seen my previous commit review yet?

 
 Modified:
 subversion/trunk/subversion/svnrdump/load_editor.c
 
 Modified: subversion/trunk/subversion/svnrdump/load_editor.c
 URL: 
 http://svn.apache.org/viewvc/subversion/trunk/subversion/svnrdump/load_editor.c?rev=983222r1=983221r2=983222view=diff
 ==
 --- subversion/trunk/subversion/svnrdump/load_editor.c (original)
 +++ subversion/trunk/subversion/svnrdump/load_editor.c Sat Aug  7 12:31:50 
 2010
 @@ -434,26 +434,43 @@ close_revision(void *baton)
 -  else {
 -/* Close all pending open directories, and then close the edit
 -   session itself */
 -while (rb-db  rb-db-parent)
 -  {
 -LDR_DBG((Closing dir %p\n, rb-db-baton));
 -SVN_ERR(commit_editor-close_directory(rb-db-baton, rb-pool));
 -rb-db = rb-db-parent;
 -  }
 -LDR_DBG((Closing edit on %p\n, commit_edit_baton));
 -SVN_ERR(commit_editor-close_edit(commit_edit_baton, rb-pool));
 -  }
 +  else if (commit_editor)
 +{
 +  /* Close all pending open directories, and then close the edit
 + session itself */
 +  while (rb-db  rb-db-parent)
 +{
 +  LDR_DBG((Closing dir %p\n, rb-db-baton));
 +  SVN_ERR(commit_editor-close_directory(rb-db-baton, rb-pool));
 +  rb-db = rb-db-parent;
 +}
 +  LDR_DBG((Closing edit on %p\n, commit_edit_baton));
 +  SVN_ERR(commit_editor-close_edit(commit_edit_baton, rb-pool));
 +}


Re: svn commit: r983222 - /subversion/trunk/subversion/svnrdump/load_editor.c

2010-08-07 Thread Ramkumar Ramachandra
Hi Daniel,

Daniel Shahaf writes:
 artag...@apache.org wrote on Sat, Aug 07, 2010 at 12:31:50 -:
  Author: artagnon
  Date: Sat Aug  7 12:31:50 2010
  New Revision: 983222
  
  URL: http://svn.apache.org/viewvc?rev=983222view=rev
  Log:
  svnrdump: Fix a bug in the load_editor; it was unable to handle
  revisions without node information previously.
  
  * subversion/svnrdump/load_editor.c
(close_revision): Add a new if-branch; if the commit_editor doesn't
exist, create one, open_root and close_edit on it to indicate that
we've finished processing the revision. While at it, also fix indentation.
 ^^
 
 I take it you haven't seen my previous commit review yet?

The trade-off is the creation of many trivial commits :)

-- Ram


Re: svn commit: r983222 - /subversion/trunk/subversion/svnrdump/load_editor.c

2010-08-07 Thread Branko Čibej
On 07.08.2010 16:32, Ramkumar Ramachandra wrote:
 Hi Daniel,

 Daniel Shahaf writes:
   
 artag...@apache.org wrote on Sat, Aug 07, 2010 at 12:31:50 -:
 
 Author: artagnon
 Date: Sat Aug  7 12:31:50 2010
 New Revision: 983222

 URL: http://svn.apache.org/viewvc?rev=983222view=rev
 Log:
 svnrdump: Fix a bug in the load_editor; it was unable to handle
 revisions without node information previously.

 * subversion/svnrdump/load_editor.c
   (close_revision): Add a new if-branch; if the commit_editor doesn't
   exist, create one, open_root and close_edit on it to indicate that
   we've finished processing the revision. While at it, also fix indentation.
   
 
 ^^

 I take it you haven't seen my previous commit review yet?
 
 The trade-off is the creation of many trivial commits :)
   

We do have a long-standing preference to not mix functional and
stylistic changes in the same commit. It's even documented in Hacking.

-- Brane