You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Greg Stein <gs...@gmail.com> on 2010/04/19 22:18:41 UTC

Re: svn commit: r935756 - in /subversion/trunk/subversion/libsvn_wc: adm_ops.c lock.c update_editor.c wc.h

On Mon, Apr 19, 2010 at 18:01,  <hw...@apache.org> wrote:
> Author: hwright
> Date: Mon Apr 19 22:01:30 2010
> New Revision: 935756
>
> URL: http://svn.apache.org/viewvc?rev=935756&view=rev
> Log:
> Remove a temporary API.  This also allows reverting an added directory which is
> the CWD.
>
> * subversion/libsvn_wc/wc.h
>  (svn_wc__temp_get_relpath): Remove.
>
> * subversion/libsvn_wc/adm_ops.c
>  (revert_entry): Don't use the API, and in the process, allow a revert of
>    an added directory if it is the CWD.

You might want to clarify that the code (contrary to issue #854) is
now capable of performing a revert on the current directory.

>...
> +++ subversion/trunk/subversion/libsvn_wc/adm_ops.c Mon Apr 19 22:01:30 2010
>...
> @@ -2029,7 +2014,8 @@ revert_internal(svn_wc__db_t *db,
>                                            pool, pool));
>   if (unversioned && tree_conflict == NULL)
>     return svn_error_createf(SVN_ERR_UNVERSIONED_RESOURCE, NULL,
> -                             _("Cannot revert unversioned item '%s'"), path);
> +                             _("Cannot revert unversioned item '%s'"),
> +                             local_abspath);

Shouldn't this use svn_dirent_local_style() ??

>...
> +++ subversion/trunk/subversion/libsvn_wc/update_editor.c Mon Apr 19 22:01:30 2010
>...
> @@ -5282,7 +5278,7 @@ make_editor(svn_revnum_t *target_revisio
>                                                 &inner_baton,
>                                                 inner_editor,
>                                                 inner_baton,
> -                                                anchor,
> +                                                anchor_abspath,
>                                                 target_basename,
>                                                 wc_ctx->db,
>                                                 result_pool));

Woah. The ambient depth filter still uses eb->anchor distinctly from
eb->anchor_abspath. You can't make the above change unless/until you
change that filter.

>...

Cheers,
-g