FreeBSD/contrib/subversion/subversion/svnfsfs/dump-index-cmd.c
/* Read the repository at PATH beginning with revision START_REVISION and
 * return the result in *FS.  Allocate caches with MEMSIZE bytes total
 * capacity.  Use POOL for non-cache allocations.
 */
Read the repository at PATH beginning with revision START_REVISION and
return the result in *FS.  Allocate caches with MEMSIZE bytes total
capacity.  Use POOL for non-cache allocations.
Read the repository at PATH beginning with revision START_REVISION and return the result in * FS . Allocate caches with MEMSIZE bytes total capacity . Use POOL for non - cache allocations .
static svn_error_t *
dump_index(const char *path,
           svn_revnum_t revision,
           apr_pool_t *pool)
{
  svn_fs_t *fs;
  SVN_ERR(open_fs(&fs, path, pool));
  printf("       Start       Length Type   Revision     Item Checksum\n");
  SVN_ERR(svn_fs_fs__dump_index(fs, revision, dump_index_entry, NULL,
                                check_cancel, NULL, pool));
  return SVN_NO_ERROR;
}
static svn_error_t * dump_index ( const char * path , svn_revnum_t revision , apr_pool_t * pool ) { svn_fs_t * fs ; SVN_ERR ( open_fs ( & fs , path , pool ) ) ; printf ( " \n " ) ; SVN_ERR ( svn_fs_fs__dump_index ( fs , revision , dump_index_entry , NULL , check_cancel , NULL , pool ) ) ; return SVN_NO_ERROR ; }
Read the repository at PATH beginning with revision START_REVISION and
 return the result in *FS.
Read the repository at PATH beginning with revision START_REVISION and return the result in * FS .
/* Check repository type and open it. */ /* Write header line. */ /* Dump the whole index contents */