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 2009/01/21 08:41:31 UTC
Re: svn commit: r35330 - trunk/subversion/include
Hrm. What happens if third-party code creates one of these hashes, and
only puts an svn_log_changed_path_t in there? (rather than path2)
On Mon, Jan 19, 2009 at 19:14, Hyrum K. Wright <hy...@hyrumwright.org> wrote:
> Author: hwright
> Date: Mon Jan 19 10:14:52 2009
> New Revision: 35330
>
> Log:
> * subversion/include/svn_types.h
> (svn_log_entry_t): Followup to r35329: Update docstring.
>
> Suggested by: rhuijben
>
> Modified:
> trunk/subversion/include/svn_types.h
>
> Modified: trunk/subversion/include/svn_types.h
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/include/svn_types.h?pathrev=35330&r1=35329&r2=35330
> ==============================================================================
> --- trunk/subversion/include/svn_types.h Mon Jan 19 09:59:38 2009 (r35329)
> +++ trunk/subversion/include/svn_types.h Mon Jan 19 10:14:52 2009 (r35330)
> @@ -613,7 +613,7 @@ svn_log_changed_path_dup(const svn_log_c
> typedef struct svn_log_entry_t
> {
> /** A hash containing as keys every path committed in @a revision; the
> - * values are (@c svn_log_changed_path_t *) stuctures.
> + * values are (@c svn_log_changed_path2_t *) stuctures.
> *
> * ### The only reason @a changed_paths is not qualified with `const' is
> * that we usually want to loop over it, and apr_hash_first() doesn't
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=495&dsMessageId=1035215
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1040706
RE: svn commit: r35330 - trunk/subversion/include
Posted by Bert Huijben <rh...@sharpsvn.net>.
> -----Original Message-----
> From: Greg Stein [mailto:gstein@gmail.com]
> Sent: woensdag 21 januari 2009 9:42
> To: dev@subversion.tigris.org
> Subject: Re: svn commit: r35330 - trunk/subversion/include
>
> Hrm. What happens if third-party code creates one of these hashes, and
> only puts an svn_log_changed_path_t in there? (rather than path2)
I thought about this (revving the api/field was the actual suggestion
referenced below).
But to have a problem there would have to be third party code that creates
svn_log_entry_t instances for fourth party code..
If that third and fourth assume the same api level, there is no problem (As
they both expect new or old).. Only when they expect different api levels we
(or they) would have a real problem.
One possible solution would be to add an extra field with the new hash type
and just use the same apr_hash_t value. (And document that to be the case),
but that would break those same clients (unless they build fallback code),
as they would expect the second field to be filled..
Revving the entire log api would be another option...
We should have declared the structure future extensible from the start to
make sure we don't get these issues... (like I did with
svn_log_changed_path2_t now)
Bert
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1040774