Deleted Added
full compact
fs_fs.c (258569) fs_fs.c (262250)
1/* fs_fs.c --- filesystem operations specific to fs_fs
2 *
3 * ====================================================================
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the

--- 5366 unchanged lines hidden (view full) ---

5375 if (source && source->data_rep && target->data_rep)
5376 {
5377 struct rep_state *rep_state;
5378 struct rep_args *rep_args;
5379
5380 /* Read target's base rep if any. */
5381 SVN_ERR(create_rep_state(&rep_state, &rep_args, NULL, NULL,
5382 target->data_rep, fs, pool));
1/* fs_fs.c --- filesystem operations specific to fs_fs
2 *
3 * ====================================================================
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the

--- 5366 unchanged lines hidden (view full) ---

5375 if (source && source->data_rep && target->data_rep)
5376 {
5377 struct rep_state *rep_state;
5378 struct rep_args *rep_args;
5379
5380 /* Read target's base rep if any. */
5381 SVN_ERR(create_rep_state(&rep_state, &rep_args, NULL, NULL,
5382 target->data_rep, fs, pool));
5383 /* If that matches source, then use this delta as is. */
5383
5384 /* If that matches source, then use this delta as is.
5385 Note that we want an actual delta here. E.g. a self-delta would
5386 not be good enough. */
5384 if (rep_args->is_delta
5387 if (rep_args->is_delta
5385 && (rep_args->is_delta_vs_empty
5386 || (rep_args->base_revision == source->data_rep->revision
5387 && rep_args->base_offset == source->data_rep->offset)))
5388 && rep_args->base_revision == source->data_rep->revision
5389 && rep_args->base_offset == source->data_rep->offset)
5388 {
5389 /* Create the delta read baton. */
5390 struct delta_read_baton *drb = apr_pcalloc(pool, sizeof(*drb));
5391 drb->rs = rep_state;
5392 drb->checksum = svn_checksum_dup(target->data_rep->md5_checksum,
5393 pool);
5394 *stream_p = svn_txdelta_stream_create(drb, delta_read_next_window,
5395 delta_read_md5_digest, pool);

--- 6229 unchanged lines hidden ---
5390 {
5391 /* Create the delta read baton. */
5392 struct delta_read_baton *drb = apr_pcalloc(pool, sizeof(*drb));
5393 drb->rs = rep_state;
5394 drb->checksum = svn_checksum_dup(target->data_rep->md5_checksum,
5395 pool);
5396 *stream_p = svn_txdelta_stream_create(drb, delta_read_next_window,
5397 delta_read_md5_digest, pool);

--- 6229 unchanged lines hidden ---