You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by cm...@collab.net on 2002/05/03 00:50:35 UTC

Re: [Issue 692] Changed - 'svn log' on an empty repository gives confusing error

issues@subversion.tigris.org writes:

> + ------- Additional Comments From kfogel@tigris.org  2002-05-02 15:17 -------
> + Wow, Hadaka.  You really know how to find 'em.
> + 
> + The mysterious second error is due to this code in
> + tree.c:txn_body_revisions_changed():
> + 
> +   /* Hack up TMP_ID so that it represents its own predecessor.
> +      Node IDs come in pairs, terminated by a trailing -1. So
> +      we process a pair until the ID gets down to zero, then
> +      mock up the -1 so we'll process the previous one.  */
> +   tmp_id->digits[len - 1]--;
> +   if (tmp_id->digits[len - 1] == 0)
> +     tmp_id->digits[len - 2] = -1;
> + 
> + Notice how if tmp_id is [0, 0, -1] -- that is, node "0.0" -- this
> + decrement algorithm fails.  It produces node [0, -1], hence the
> + error :-).
> + 
> + Fixing right now.

I promised Amy I wouldn't code tonight, so I'm sending this mail as a
reminder for myself (or someone else) to verify that this bug does not
also exist in svn_fs_check_related (another place that I recall where
such ID decrementing takes place).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [Issue 692] Changed - 'svn log' on an empty repository gives confusing error

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
cmpilato@collab.net writes:
> I promised Amy I wouldn't code tonight, so I'm sending this mail as a
> reminder for myself (or someone else) to verify that this bug does not
> also exist in svn_fs_check_related (another place that I recall where
> such ID decrementing takes place).

:-)

In general, I think we're going to want macros or functions for
incrementing, decrementing, and condition-checking on IDs.  No one but
those (future) functions should be directly manipulating
id->digits[blah].


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org