Author: rinrab
Date: Tue Sep  1 15:18:44 2026
New Revision: 1937730

Log:
Properly de-indent directories in the debug tree processor if they were closed
by anything else than dir_closed (which is completely normal).

* libsvn_diff/diff_tree_debug.c
  (debug_dir_added,
   debug_dir_deleted,
   debug_dir_changed):

Modified:
   subversion/trunk/subversion/libsvn_diff/diff_tree_debug.c

Modified: subversion/trunk/subversion/libsvn_diff/diff_tree_debug.c
==============================================================================
--- subversion/trunk/subversion/libsvn_diff/diff_tree_debug.c   Tue Sep  1 
15:10:41 2026        (r1937729)
+++ subversion/trunk/subversion/libsvn_diff/diff_tree_debug.c   Tue Sep  1 
15:18:44 2026        (r1937730)
@@ -149,6 +149,8 @@ debug_dir_added(const char *relpath,
 {
   debug_diff_tree_baton_t *b = processor->baton;
 
+  b->indent_level--;
+
   SVN_ERR(write_action(b, "dir_added", relpath, scratch_pool));
   SVN_ERR(write_action_property_source(b, "copyfrom_source",
                                        copyfrom_source, scratch_pool));
@@ -168,6 +170,8 @@ debug_dir_deleted(const char *relpath,
 {
   debug_diff_tree_baton_t *b = processor->baton;
 
+  b->indent_level--;
+
   SVN_ERR(write_action(b, "dir_deleted", relpath, scratch_pool));
   SVN_ERR(write_action_property_source(b, "left_source",
                                        left_source, scratch_pool));
@@ -188,6 +192,8 @@ debug_dir_changed(const char *relpath,
 {
   debug_diff_tree_baton_t *b = processor->baton;
 
+  b->indent_level--;
+
   SVN_ERR(write_action(b, "dir_changed", relpath, scratch_pool));
   SVN_ERR(write_action_property_source(b, "left_source",
                                        left_source, scratch_pool));

Reply via email to