export.c File Reference

export action. More...

#include <subversion-1/svn_delta.h>
#include <subversion-1/svn_ra.h>
#include <subversion-1/svn_error.h>
#include "export.h"
#include "helper.h"
#include "url.h"
#include "racallback.h"

Include dependency graph for export.c:

Go to the source code of this file.

Functions

int exp__do (struct estat *root, struct url_t *url)
 -.
int exp__work (struct estat *root, int argc, char *argv[])
 -.
Undefined functions
There are some callbacks that should never get called.

Rather than setting their pointer in the export_editor structure to NULL (and risk a SEGV if the ra layer definition changes), we use some nearly empty functions to cry if something unexpected happens.

svn_error_t * exp__invalid (const char *name)
 FSVS GCOV MARK: exp__invalid should not be executed.
svn_error_t * exp__delete (const char *path UNUSED, svn_revnum_t revision UNUSED, void *parent_baton UNUSED, apr_pool_t *pool UNUSED)
 FSVS GCOV MARK: exp__delete should not be executed.
svn_error_t * exp__open_dir (const char *path UNUSED, void *parent_baton UNUSED, svn_revnum_t base_revision UNUSED, apr_pool_t *dir_pool UNUSED, void **child_baton UNUSED)
 FSVS GCOV MARK: exp__open_dir should not be executed.
svn_error_t * exp__open_file (const char *path UNUSED, void *parent_baton UNUSED, svn_revnum_t base_revision UNUSED, apr_pool_t *file_pool UNUSED, void **file_baton UNUSED)
 FSVS GCOV MARK: exp__open_file should not be executed.

Variables

const svn_delta_editor_t export_editor
 The export editor functions.


Detailed Description

export action.

This is mostly the same as update; the difference is that we export the given URL to the current directory, and don't use a WAA area.

Definition in file export.c.


Function Documentation

svn_error_t* exp__delete ( const char *path  UNUSED,
svn_revnum_t revision  UNUSED,
void *parent_baton  UNUSED,
apr_pool_t *pool  UNUSED 
)

FSVS GCOV MARK: exp__delete should not be executed.

Definition at line 73 of file export.c.

References exp__invalid().

Here is the call graph for this function:

int exp__do ( struct estat root,
struct url_t url 
)

-.

This function exports url into the current working directory.

root must already be initialized.

The difference to update is that export expects an empty filesystem, ie. to fetch *all* nodes; it doesn't check whether some already exist locally.

Definition at line 140 of file export.c.

References current_url, export_editor, global_pool, opt_target_revision, url_t::session, STOP_HANDLE_SVNERR, STOPIF, STOPIF_SVNERR, url_t::target_rev, url__canonical_rev(), and url__open_session().

Referenced by co__work(), and exp__work().

Here is the call graph for this function:

Here is the caller graph for this function:

svn_error_t* exp__invalid ( const char *  name  ) 

FSVS GCOV MARK: exp__invalid should not be executed.

This function is used to write messages in case an undefined function gets called by the ra layer.

Definition at line 57 of file export.c.

References RETURN_SVNERR, and STOPIF_CODE_ERR.

Referenced by exp__delete(), exp__open_dir(), and exp__open_file().

Here is the caller graph for this function:

svn_error_t* exp__open_dir ( const char *path  UNUSED,
void *parent_baton  UNUSED,
svn_revnum_t base_revision  UNUSED,
apr_pool_t *dir_pool  UNUSED,
void **child_baton  UNUSED 
)

FSVS GCOV MARK: exp__open_dir should not be executed.

Definition at line 83 of file export.c.

References exp__invalid().

Here is the call graph for this function:

svn_error_t* exp__open_file ( const char *path  UNUSED,
void *parent_baton  UNUSED,
svn_revnum_t base_revision  UNUSED,
apr_pool_t *file_pool  UNUSED,
void **file_baton  UNUSED 
)

FSVS GCOV MARK: exp__open_file should not be executed.

Definition at line 94 of file export.c.

References exp__invalid().

Here is the call graph for this function:

int exp__work ( struct estat root,
int  argc,
char *  argv[] 
)

-.

This does a checkout of the given URL (using the various meta-data flags), but without writing to the WAA.

Definition at line 192 of file export.c.

References exp__do(), hlp__lstat(), estat::st, STOPIF, STOPIF_CODE_ERR, target_revision, and url__parse().

Here is the call graph for this function:


Variable Documentation

const svn_delta_editor_t export_editor

Initial value:

 
{
    .set_target_revision    = up__set_target_revision,

    .open_root                      = up__open_root,

    .delete_entry                   = exp__delete,
    .add_directory              = up__add_directory,
    .open_directory             = exp__open_dir,
    .change_dir_prop            = up__change_dir_prop,
    .close_directory            = up__close_directory,
    .absent_directory       = up__absent_directory,

    .add_file                       = up__add_file,
    .open_file                      = exp__open_file,
    .apply_textdelta            = up__apply_textdelta,
    .change_file_prop       = up__change_file_prop,
    .close_file                     = up__close_file,
    .absent_file                    = up__absent_file,

    .close_edit                     = up__close_edit,
    .abort_edit                     = up__abort_edit,
}
The export editor functions.

The functionality is the same as on update, so we simply use that functions.

Definition at line 109 of file export.c.

Referenced by exp__do().


Generated for fsvs by  doxygen 1.5.9