FreeBSD/contrib/subversion/subversion/libsvn_repos/load-fs-vtable.c
/* Make a revision baton, parsing the relevant HEADERS.
 *
 * Set RB->skipped iff the revision number is outside the range given in PB.
 */
Make a revision baton, parsing the relevant HEADERS.
Set RB->skipped iff the revision number is outside the range given in PB.
Make a revision baton parsing the relevant HEADERS . Set RB - > skipped iff the revision number is outside the range given in PB .
static struct revision_baton *
make_revision_baton(apr_hash_t *headers,
                    struct parse_baton *pb,
                    apr_pool_t *pool)
{
  struct revision_baton *rb = apr_pcalloc(pool, sizeof(*rb));
  const char *val;
  rb->pb = pb;
  rb->pool = pool;
  rb->rev = SVN_INVALID_REVNUM;
  rb->revprops = apr_array_make(rb->pool, 8, sizeof(svn_prop_t));
  if ((val = svn_hash_gets(headers, SVN_REPOS_DUMPFILE_REVISION_NUMBER)))
    {
      rb->rev = SVN_STR_TO_REV(val);
      rb->skipped = (SVN_IS_VALID_REVNUM(pb->start_rev)
                     && ((rb->rev < pb->start_rev) ||
                         (rb->rev > pb->end_rev)));
    }
  return rb;
}
static struct revision_baton * make_revision_baton ( apr_hash_t * headers , struct parse_baton * pb , apr_pool_t * pool ) { struct revision_baton * rb = apr_pcalloc ( pool , sizeof ( * rb ) ) ; const char * val ; rb -> pb = pb ; rb -> pool = pool ; rb -> rev = SVN_INVALID_REVNUM ; rb -> revprops = apr_array_make ( rb -> pool , 8 , sizeof ( svn_prop_t ) ) ; if ( ( val = svn_hash_gets ( headers , SVN_REPOS_DUMPFILE_REVISION_NUMBER ) ) ) { rb -> rev = SVN_STR_TO_REV ( val ) ; rb -> skipped = ( SVN_IS_VALID_REVNUM ( pb -> start_rev ) && ( ( rb -> rev < pb -> start_rev ) || ( rb -> rev > pb -> end_rev ) ) ) ; } return rb ; }
Make a revision baton, parsing the relevant HEADERS.
Make a revision baton parsing the relevant HEADERS .
/* If we're filtering revisions, is this one we'll skip? */