ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



SVK::Patch(3)                        User Contributed Perl Documentation                       SVK::Patch(3)



NAME
       SVK::Patch - Class representing a patch to be applied

SYNOPSIS
        # Using SVK::Patch
        $patch = SVK::Patch->load ($file, $xd, $depotname);
        $patch->view;
        # update patch for target
        $patch->update;
        # regenerate patch from source branch
        $patch->regen;

        # apply the patch to designated target
        $patch->apply ($check_only);
        # apply to arbitrary target
        $patch->apply_to ($target, $storage, %cb);

        # Creating SVK::Patch
        $patch = SVK::Patch->new ('my patch', $xd, $depotname, $src, $dst);
        $editor = $patch->editor
        # feed things to $editor
        $patch->store ($file);

DESCRIPTION
       SVK::Patch represents tree delta and assorted meta data, such as merge info and anchor for the patch
       to be applied.

METHODS
       new

       Create a SVK::Patch object.

       load

       Load a SVK::Patch object from file.

       store

       Store a SVK::Patch object to file.

       editor

       Return the SVK::Editor::Patch object for feeding editor calls to, or driving other editors.

       ticket ($merge, $source, $target;

       Associate the patch with ticket generated from $source but excluding duplicated ones from <$target>.

       commit_editor

       Returns a editor that finalize the patch object upon close_edit.



perl v5.8.8                                      2006-12-28                                    SVK::Patch(3)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.