man SVK::Editor::Rename () - An editor that translates editor calls for renamed entries

NAME

SVK::Editor::Rename - An editor that translates editor calls for renamed entries

SYNOPSIS

  $editor = SVK::Editor::Rename->new
    ( editor => $next_editor,
      rename_map => \@rename_map
    );

DESCRIPTION

Given the rename_map, which is a list of [from, to] pairs for translating path in editor calls, CWSVK::Editor::Rename serialize the calls and rearrange them for making proper calls to CW$next_editor.

The translation of pathnames is done with iterating through the CW@rename_map, translate with the first match. Translation is redone untill no match is found.

CWSVK::Editor::Rename is a subclass of CWSVK::Editor::Patch, which serailizes incoming editor calls. Each baton opened is recorded in CW$self-{opened_baton}>, which could be use to lookup with path names.

When a path is opened that should be renamed, it's recorded in CW$self-{renamed_anchor}> for reanchoring the renamed result to proper parent directory before calls are emitted to CW$next_editor.

AUTHORS

Chia-liang Kao <clkao@clkao.org>

COPYRIGHT

Copyright 2003-2005 by Chia-liang Kao <clkao@clkao.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <http://www.perl.com/perl/misc/Artistic.html>