subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Näslund <dan...@longitudo.com>
Subject [PATCH] #3493 svn patch skips missing directories
Date Mon, 11 Jan 2010 19:42:33 GMT
Hi!

[[[
Fix #3493 - svn patch skips missing dirs.

* subversion/libsvn_client/patch.c
  (svn_client_patch): Replace the last adm_access calls. Needed to be
    able to use the write-locks in svn_client__make_local_parents().
  (apply_textdiffs, apply_one_patch): Change ctx parameter to be non
    const.
  (apply_one_patch): Create intermediate missing dirs.
  (resolve_target_path): Don't mark the target to be skipped if there is
    no containing dir. Walk the tree to the wc-root checking if one of
    the dirs above our target is scheduled for deletion.

* subversion/tests/cmdline/patch_tests.py
  (patch_add_new_dir): New. Tests for adding files with missing dirs and
    the case where one of the dirs above is scheduled for deletion.

Patch by: Daniel Näslund <daniel{_AT_}longitudo.com>
]]]

Right now the code does not skip when one of the dirs in the patch
file is a wc file. But I'm not sure that it's needed.

Daniel

Mime
View raw message