Index: svn_ra.i =================================================================== --- svn_ra.i (revision 23276) +++ svn_ra.i (working copy) @@ -102,7 +102,10 @@ void *diff_baton) { svn_delta_make_editor(&$1, &$2, $input, _global_pool); } - +%typemap(perl5, in) (const svn_delta_editor_t *switch_editor, + void *switch_baton) { + svn_delta_make_editor(&$1, &$2, $input, _global_pool); +} %apply (const svn_delta_editor_t *EDITOR, void *BATON) { (const svn_delta_editor_t *update_editor, void *update_baton),