{
    "mode": "perldoc",
    "parameter": "SVN::Delta",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/SVN%3A%3ADelta/json",
    "generated": "2026-06-14T05:24:44Z",
    "synopsis": "require SVN::Core;\nrequire SVN::Repos;\nrequire SVN::Delta;\n# driving an editor\nmy $editor = SVN::Delta::Editor->\nnew(SVN::Repos::getcommiteditor($repos, \"file://$repospath\",\n'/', 'root', 'FOO', \\&committed));\nmy $rootbaton = $editor->openroot(0);\nmy $fbaton = $editor->addfile('filea', $rootbaton,\nundef, -1);\nmy $ret = $editor->applytextdelta($fbaton, undef);\nSVN::TxDelta::sendstring(\"FILEA CONTENT\", @$ret);\n# implement an editor in perl\nSVN::Repos::dirdelta($root1, $path, undef,\n$root2, $path,\nSVN::Delta::Editor->new(debug=>1),\n1, 1, 0, 1",
    "sections": {
        "NAME": {
            "content": "SVN::Delta - Subversion delta functions\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "require SVN::Core;\nrequire SVN::Repos;\nrequire SVN::Delta;\n\n# driving an editor\nmy $editor = SVN::Delta::Editor->\nnew(SVN::Repos::getcommiteditor($repos, \"file://$repospath\",\n'/', 'root', 'FOO', \\&committed));\n\nmy $rootbaton = $editor->openroot(0);\n\nmy $fbaton = $editor->addfile('filea', $rootbaton,\nundef, -1);\n\nmy $ret = $editor->applytextdelta($fbaton, undef);\nSVN::TxDelta::sendstring(\"FILEA CONTENT\", @$ret);\n\n# implement an editor in perl\nSVN::Repos::dirdelta($root1, $path, undef,\n$root2, $path,\nSVN::Delta::Editor->new(debug=>1),\n1, 1, 0, 1\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "SVN::Delta wraps delta related function in subversion. The most important one is\nSVN::Delta::Editor, the interface for describing tree deltas. by default SVN::Delta::Editor\nrelays method calls to its internal member \"editor\", which could either be an editor in C (such\nas the one you get from getcommiteditor), or another SVN::Delta::Editor object.\n\nSVN::Delta::Editor",
            "subsections": [
                {
                    "name": "Driving Editors",
                    "content": "If you want to drive a native editor (such as commiteditor obtained by\nSVN::Repos::getcommiteditor), create a SVN::Delta::Editor object with the native editor/baton\npair. The object will then be ready to use and its method calls will be relayed to the native\neditor.\n"
                },
                {
                    "name": "Implementing Editors",
                    "content": "If you want to implement an editor, subclass SVN::Delta::Editor and implement the editors\ncallbacks. see the METHODS section below.\n\nCONSTRUCTOR - new(...)"
                },
                {
                    "name": "new",
                    "content": "Link to the native editor\n\nYou can also pass a hash array to new:\n\ndebug\nTurn on debug.\n\neditor\nAn arrayref of the editor/baton pair or another SVN::Delta::Editor object to link with.\n\nMETHODS\nPlease consult the svndelta.h section in the Subversion API. Member functions of\nsvndeltaeditort could be called as methods of SVN::Delta::Editor objects, with the editbaton\nomitted. The pool is also optional.\n\nIf you are subclassing, the methods take exactly the same arguments as the member functions\n(note that void  are returned data though as throughout the perl bindings), with the\neditbaton omitted.\n"
                }
            ]
        },
        "BUGS": {
            "content": "Functions returning editor/baton pair should really be typemapped to a SVN::Delta::Editor\nobject.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Chia-liang Kao <clkao@clkao.org>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Licensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements.  See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership.  The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License.  You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied.  See the License for the\nspecific language governing permissions and limitations\nunder the License.\n",
            "subsections": []
        }
    },
    "summary": "SVN::Delta - Subversion delta functions",
    "flags": [],
    "examples": [],
    "see_also": []
}