Re: svn commit: r40493 - in trunk/subversion: libsvn_fs_base libsvn_fs_fs libsvn_ra_neon libsvn_ra_serf tests/cmdline

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.subversion.rapidsvn.devel,gmane.comp.version-control.subversion.svn
Organization CollabNet, Inc.
Message-ID <4AFD03DF.9080001__9697.90314925394$1258095620$gmane$org@collab.net>
Paul T. Burba wrote:
> Author: pburba
> Date: Thu Nov 12 18:37:57 2009
> New Revision: 40493

[...]

> Modified: trunk/subversion/libsvn_fs_base/lock.c
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/libsvn_fs_base/lock.c?pathrev=40493&r1=40492&r2=40493
> ==============================================================================
> --- trunk/subversion/libsvn_fs_base/lock.c	Thu Nov 12 15:37:51 2009	(r40492)
> +++ trunk/subversion/libsvn_fs_base/lock.c	Thu Nov 12 18:37:57 2009	(r40493)
> @@ -98,9 +98,18 @@ txn_body_lock(void *baton, trail_t *trai
>    /* While our locking implementation easily supports the locking of
>       nonexistent paths, we deliberately choose not to allow such madness. */
>    if (kind == svn_node_none)
> -    return svn_error_createf(SVN_ERR_FS_NOT_FOUND, NULL,
> -                             "Path '%s' doesn't exist in HEAD revision",
> -                             args->path);
> +    {
> +      if (SVN_IS_VALID_REVNUM(args->current_rev))
> +        return svn_error_createf(
> +          SVN_ERR_FS_OUT_OF_DATE, NULL,
> +          _("Path '%s' doesn't exist in HEAD revision"),
> +          args->path);
> +      else
> +        return svn_error_createf(
> +          SVN_ERR_FS_NOT_FOUND, NULL,
> +          _("Path '%s' doesn't exist in HEAD revision"),
> +          args->path);
> +    }

Did you intend to leave both error messages the same even though the error
*codes* differ?  That seems non-normal, but perhaps has good reasoning in
this case that I can't detect from the provided context?

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=495&dsMessageId=2417436
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkr9A98ACgkQokEGqRcG/W7UPQCgmycA2NbCRH/mm506ZxACO+xK
AMIAn1WLlI+qy4ofvP3BKSTpu1O3OkXp
=FF9w
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.