[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] 'svn patch' should remove empty dir

From: Julian Foad <julian.foad_at_wandisco.com>
Date: Mon, 01 Mar 2010 06:18:32 +0000

On Sat, 2010-02-27, Daniel Näslund wrote:
> Reviews welcome!
>
> [[[
> Make 'svn patch' able to remove dirs beeing empty after patching, taken
> into account both versioned and unversioned files and dirs.
>
> * subversion/tests/cmdline/patch_tests.py
> (patch_remove_empty_dir): New.
> (test_list): Add new test.
>
> * subversion/libsvn_client/patch.c
> (status_baton): New.
> (find_existing_children, is_dir_empty,
> add_target_to_hash_keyed_by_parent_dir, is_dir_empty,
> sort_compare_nr_of_path_elements,
> maybe_condense_deleted_targets): New functions
> (apply_patches): Call maybe_condense_deleted_targets(). Check if a
> target has a patch associated with it before calling
> svn_diff__close_patch() since we're creating targets to delete dirs
> and those have no associated patch.
>
> Patch by: Daniel Näslund <daniel{_AT_}longitudo.com>
> Review by: julianf, stsp, neels

Huh? - - - - - ^^

Trying to twist my arm into reviewing it by posting a patch that says I
have? :-)

- Julian
Received on 2010-03-01 07:19:12 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.