Synchronize from repository - sync-repos command. More...
#include <apr_md5.h>
#include <apr_pools.h>
#include <apr_user.h>
#include <apr_file_io.h>
#include <subversion-1/svn_delta.h>
#include <subversion-1/svn_ra.h>
#include <subversion-1/svn_error.h>
#include <subversion-1/svn_string.h>
#include <subversion-1/svn_time.h>
#include <sys/types.h>
#include <unistd.h>
#include <ctype.h>
#include <time.h>
#include <fcntl.h>
#include "global.h"
#include "status.h"
#include "checksum.h"
#include "est_ops.h"
#include "cache.h"
#include "revert.h"
#include "props.h"
#include "commit.h"
#include "waa.h"
#include "url.h"
#include "update.h"
#include "racallback.h"
#include "helper.h"
Go to the source code of this file.
Functions | |
int | sync___recurse (struct estat *cur_dir, apr_pool_t *pool) |
Get entries of directory, and fill tree. | |
int | sync__progress (struct estat *sts) |
Repository callback. | |
int | sync__work (struct estat *root, int argc, char *argv[]) |
-. |
Synchronize from repository - sync-repos command.
Load the repository tree and store it as last used- so that the next commit sends all changes against this current repository state.
Definition in file sync.c.
int sync___recurse | ( | struct estat * | cur_dir, | |
apr_pool_t * | pool | |||
) |
Get entries of directory, and fill tree.
Most of the data should already be here; we just fill the length of the entries in.
Definition at line 102 of file sync.c.
References cb__add_entry(), url_t::current_rev, current_url, DEBUGP, DEBUGP_dump_estat(), hlp__local2utf8(), hlp__utf82local(), link_spec, ops__build_path(), ops__string_to_dev(), estat::parent, propval_updatepipe, rev__get_text_into_buffer(), url_t::session, STOPIF, STOPIF_SVNERR, url__current_has_precedence(), url__full_url(), and st___bit_info::val.
Referenced by sync__work().
int sync__progress | ( | struct estat * | sts | ) |
Repository callback.
Here we get most data - all properties and the tree structure.
Definition at line 244 of file sync.c.
References sstat_t::ctim, sstat_t::dev, estat::flags, FS_META_GROUP, FS_META_MTIME, FS_META_OWNER, FS_META_UMODE, sstat_t::gid, hlp__lstat(), sstat_t::ino, sstat_t::mode, sstat_t::mtim, estat::new_rev_mode_packed, ops__build_path(), PACKED_to_MODE_T, estat::remote_status, RF_CHECK, S_ISANYSPECIAL, sstat_t::size, estat::st, st__rm_status, STOPIF, estat::to_be_sorted, sstat_t::uid, waa__delete_byext(), WAA__FILE_MD5s_EXT, and WAA__PROP_EXT.
int sync__work | ( | struct estat * | root, | |
int | argc, | |||
char * | argv[] | |||
) |
-.
Could possibly be folded into the new update.
Definition at line 350 of file sync.c.
References cb__record_changes(), ci__set_revision(), url_t::current_rev, current_url, estat::flags, hlp__lstat(), opt__verbosity(), url_t::pool, RF_CHECK, estat::st, STOP_HANDLE_SVNERR, STOPIF, STOPIF_CODE_ERR, sync___recurse(), url_t::url, url__iterator(), url__load_nonempty_list(), url__output_list(), VERBOSITY_VERYQUIET, WAA__COPYFROM_EXT, waa__delete_byext(), waa__find_base(), waa__output_tree(), and wc_path.