#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"
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 | |
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. |
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.
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().
-.
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, opt_target_revision, url_t::pool, 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().
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().
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().
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().
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, url__close_session(), and url__parse().
const svn_delta_editor_t export_editor |
{ .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().