{
    "content": [
        {
            "type": "text",
            "text": "# SVN::Repos (perldoc)\n\n## NAME\n\nSVN::Repos - Subversion repository functions\n\n## SYNOPSIS\n\nuse SVN::Core;\nuse SVN::Repos;\nuse SVN::Fs;\nmy $repos = SVN::Repos::open('/path/to/repos');\nprint $repos->fs()->youngestrev;\n\n## DESCRIPTION\n\nSVN::Repos wraps the object-oriented \"svnrepost\" functions, providing access to a Subversion\nrepository on the local filesystem.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (1 subsections)\n- **AUTHORS**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "SVN::Repos",
        "section": "",
        "mode": "perldoc",
        "summary": "SVN::Repos - Subversion repository functions",
        "synopsis": "use SVN::Core;\nuse SVN::Repos;\nuse SVN::Fs;\nmy $repos = SVN::Repos::open('/path/to/repos');\nprint $repos->fs()->youngestrev;",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": [
                    {
                        "name": "create",
                        "lines": 150
                    }
                ]
            },
            {
                "name": "AUTHORS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 17,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "SVN::Repos - Subversion repository functions\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use SVN::Core;\nuse SVN::Repos;\nuse SVN::Fs;\n\nmy $repos = SVN::Repos::open('/path/to/repos');\nprint $repos->fs()->youngestrev;\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "SVN::Repos wraps the object-oriented \"svnrepost\" functions, providing access to a Subversion\nrepository on the local filesystem.\n\nCONSTRUCTORS\nSVN::Repos::open($path)\nThis function opens an existing repository, and returns an \"SVN::Repos\" object.\n",
                "subsections": [
                    {
                        "name": "create",
                        "content": "This function creates a new repository, and returns an \"SVN::Repos\" object.\n\nMETHODS\n$repos->dumpfs($dumpfh, $feedbackfh, $startrev, $endrev, $incremental, $cancelcallback)\n$repos->dumpfs2($dumpfh, $feedbackfh, $startrev, $endrev, $incremental, $deltify,\n$cancelcallback)\nCreate a dump file of the repository from revision $startrev to $endrev , store it into\nthe filehandle $dumpfh, and write feedback on the progress of the operation to filehandle\n$feedbackfh.\n\nIf $incremental is TRUE, the first revision dumped will be a diff against the previous\nrevision (usually it looks like a full dump of the tree).\n\nIf $usedeltas is TRUE, output only node properties which have changed relative to the\nprevious contents, and output text contents as svndiff data against the previous contents.\nRegardless of how this flag is set, the first revision of a non-incremental dump will be\ndone with full plain text. A dump with @a usedeltas set cannot be loaded by Subversion\n1.0.x.\n\nIf $cancelcallback is not \"undef\", it must be a code reference that is called periodically\nto determine whether the client wishes to cancel the dump. See \"CANCELLATION CALLBACK\" in\nSVN::Client for details.\n\nExample:\n\nuse SVN::Core;\nuse SVN::Repos;\n\nmy $repos = SVN::Repos::open('/repo/sandbox');\n\nopen my $fh, \">/tmp/tmp.dump\" or die \"Cannot open file: $!\\n\";\n\nmy $startrev   = 10;\nmy $endrev     = 20;\nmy $incremental = 1;\nmy $deltify     = 1;\n\n$repos->dumpfs2($fh, \\*STDOUT,          # Dump file => $fh, Feedback => STDOUT\n$startrev, $endrev,   # Revision Range\n$incremental, $deltify, # Options\nundef);                 # Cancel Callback\n\nclose $fh;\n\n$repos->loadfs($dumpfilefh, $feedbackfh, $uuidaction, $parentdir, $cancelcallback);\n$repos->loadfs2($dumpfilefh, $feedbackfh, $uuidaction, $parentdir, $useprecommithook,\n$usepostcommithook, $cancelcallback);\nLoads a dumpfile specified by the $dumpfilefh filehandle into the repository. If the\ndumpstream contains copy history that is unavailable in the repository, an error will be\nthrown.\n\nThe repository's UUID will be updated iff the dumpstream contains a UUID and $uuidaction is\nnot equal to $SVN::Repos::loaduuidignore and either the repository contains no revisions\nor $uuidaction is equal to $SVN::Repos::loaduuidforce.\n\nIf the dumpstream contains no UUID, then $uuidaction is ignored and the repository UUID is\nnot touched.\n\nIf $parentdir is not null, then the parser will reparent all the loaded nodes, from root to\n@a parentdir. The directory $parentdir must be an existing directory in the repository.\n\nIf $useprecommithook is set, call the repository's pre-commit hook before committing each\nloaded revision.\n\nIf $usepostcommithook is set, call the repository's post-commit hook after committing\neach loaded revision.\n\nIf $cancelcallback is not \"undef\", it must be a code reference that is called periodically\nto determine whether the client wishes to cancel the load. See \"CANCELLATION CALLBACK\" in\nSVN::Client for details.\n\nYou must at least provide \"undef\" for these parameters for the method call to work.\n\nExample: use SVN::Core; use SVN::Repos;\n\nmy $repos = SVN::Repos::open('/repo/testrepo');\n\nopen my $fh, \"/repo/sandbox.dump\" or die \"Cannot open file: $!\\n\";\n\nmy $parentdir = '/';\nmy $useprecommithook  = 0;\nmy $usepostcommithook = 0;\n\n$repos->loadfs2($fh, \\*STDOUT,\n$SVN::Repos::loaduuidignore, # Ignore uuid\n$parentdir,\n$useprecommithook,  # Use pre-commit hook?\n$usepostcommithook, # Use post-commit hook?\nundef, undef);\n\n\nclose $fh;\n\n$repos->fs()\nReturns the \"SVN::Fs\" object for this repository.\n\n$repos->getlogs([$path, ...], $start, $end, $discoverchangedpaths, $strictnodehistory,\n$receiver)\nIterates over all the revisions that affect the list of paths passed as the first parameter,\nstarting at $start, and ending at $end.\n\n$receiver is called for each change. The arguments to $receiver are:\n\n$self\nThe \"SVN::Repos\" object.\n\n$paths\n\"undef\" if $discoverchangedpaths is false. Otherwise, contains a hash of paths that\nhave changed in this revision.\n\n$rev\nThe revision this change occurred in.\n\n$date\nThe date and time the revision occurred.\n\n$msg\nThe log message associated with this revision.\n\n$pool\nAn \"SVN::Pool\" object which may be used in the function.\n\nIf $strictnodehistory is true then copies will not be traversed.\n\nADDITIONAL METHODS\nThe following methods work, but are not currently documented in this file. Please consult the\nsvnrepos.h section in the Subversion API for more details.\n\n$repos->getcommiteditor(...)\n$repos->getcommiteditor2(...)\n$repos->path(...)\n$repos->dbenv(...)\n$repos->lockdir(...)\n$repos->dblockfile(...)\n$repos->hookdir(...)\n$repos->startcommithook(...)\n$repos->precommithook(...)\n$repos->postcommithook(...)\n$repos->prerevpropchange(...)\n$repos->postrevpropchange(...)\n$repos->datedrevision(...)\n$repos->fscommittxn(...)\n$repos->fsbeingtxnforcommit(...)\n$repos->fsbeingtxnforupdate(...)\n$repos->fschangerevprop(...)\n$repos->nodeeditor(...)\n$repos->dumpfs(...)\n$repos->loadfs(...)\n$repos->getfsbuildparser(...)\n"
                    }
                ]
            },
            "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": []
            }
        }
    }
}