Lines Matching refs:rep

0 /* rep-sharing.c --- the rep-sharing cache for fsfs
30 #include "rep-cache.h"
37 #include "rep-cache-db.h"
75 as a whole when creating a new rep cache and not simply default
132 _("Couldn't open rep-cache database '%s'"),
201 if (SVN_IS_VALID_REVNUM(max)) /* The rep-cache could be empty. */
214 representation_t *rep;
232 rep = apr_pcalloc(iterpool, sizeof(*rep));
233 svn_fs_fs__id_txn_reset(&rep->txn_id);
240 rep->has_sha1 = TRUE;
241 memcpy(rep->sha1_digest, checksum->digest, sizeof(rep->sha1_digest));
242 rep->revision = svn_sqlite__column_revnum(stmt, 1);
243 rep->item_index = svn_sqlite__column_int64(stmt, 2);
244 rep->size = svn_sqlite__column_int64(stmt, 3);
245 rep->expanded_size = svn_sqlite__column_int64(stmt, 4);
248 err = walker(rep, walker_baton, fs, iterpool);
274 representation_t *rep;
293 rep = apr_pcalloc(pool, sizeof(*rep));
294 svn_fs_fs__id_txn_reset(&(rep->txn_id));
295 memcpy(rep->sha1_digest, checksum->digest, sizeof(rep->sha1_digest));
296 rep->has_sha1 = TRUE;
297 rep->revision = svn_sqlite__column_revnum(stmt, 0);
298 rep->item_index = svn_sqlite__column_int64(stmt, 1);
299 rep->size = svn_sqlite__column_int64(stmt, 2);
300 rep->expanded_size = svn_sqlite__column_int64(stmt, 3);
303 rep = NULL;
307 if (rep)
311 SVN_ERR(svn_fs_fs__fixup_expanded_size(fs, rep, pool));
314 err = svn_fs_fs__ensure_revision_exists(rep->revision, fs, pool);
317 "Checksum '%s' in rep-cache is beyond HEAD",
322 *rep_p = rep;
328 representation_t *rep,
335 checksum.digest = rep->sha1_digest;
342 if (! rep->has_sha1)
350 (apr_int64_t) rep->revision,
351 (apr_int64_t) rep->item_index,
352 (apr_int64_t) rep->size,
353 (apr_int64_t) rep->expanded_size));