* subversion/libsvn_wc/wc_db.c (moved_descendant_collect): New function extracted from... (moved_descendant_commit): ... this. Update recursive call. (commit_node): Collect moves that are about to be removed, and properly remove their recording if necessary. Stop removing locks recursively, let libsvn_client handle this properly.
* subversion/tests/libsvn_wc/op-depth-test.c (commit_moved_away_descendant): Extend test to verify for bad recording that previously occurred.