login
Header Space

 
 

Re: [PATCH] name-rev: Fix non-shortest description

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: Uwe <ukleinek@...>, <git@...>, <gitster@...>
Date: Tuesday, August 28, 2007 - 7:11 am

On Tue, Aug 28, 2007 at 12:02:22PM +0100, Johannes Schindelin wrote:


OK, I think we're on the same page.


Can't that number get stale if the pointed-to rev_name improves? That
is, if I have named a rev "foo~20^2~5", and another rev points at it
with "^2~30", then in the second rev we know that the number of merge
traversals is 2. But what if foo~20^2~5 is actually "bar", and when we
process the "bar" ref, our merge traversal number _should_ shrink to 1.
But it won't, since when we're processing the pointed-to rev, we don't
know which commits point to it.

I have a feeling we would eventually hit the pointing-from rev and fix
it (since the new value will always be better than the old), but I'm not
sure I'm comfortable relying on that without more proof.


You would also, of course, need the parent number.


I do wonder if this would actually have worse performance due to jumping
all over the cache. I think there's no way to do without writing it.

-Peff
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
name-rev does not show the shortest path, Uwe , (Thu Aug 23, 6:38 am)
[PATCH] name-rev: Fix non-shortest description, Johannes Schindelin, (Mon Aug 27, 7:37 am)
Re: [PATCH] name-rev: Fix non-shortest description, Jeff King, (Tue Aug 28, 4:20 am)
Re: [PATCH] name-rev: Fix non-shortest description, Johannes Schindelin, (Tue Aug 28, 5:15 am)
Re: [PATCH] name-rev: Fix non-shortest description, Jeff King, (Tue Aug 28, 5:25 am)
Re: [PATCH] name-rev: Fix non-shortest description, Johannes Schindelin, (Tue Aug 28, 6:03 am)
Re: [PATCH] name-rev: Fix non-shortest description, Jeff King, (Tue Aug 28, 6:26 am)
Re: [PATCH] name-rev: Fix non-shortest description, Johannes Schindelin, (Tue Aug 28, 7:02 am)
Re: [PATCH] name-rev: Fix non-shortest description, Jeff King, (Tue Aug 28, 7:11 am)
Re: [PATCH] name-rev: Fix non-shortest description, Johannes Schindelin, (Tue Aug 28, 7:28 am)
Re: [PATCH] name-rev: Fix non-shortest description, Jeff King, (Tue Aug 28, 7:34 am)
Re: [PATCH] name-rev: Fix non-shortest description, Johannes Schindelin, (Tue Aug 28, 4:39 am)
Re: [PATCH] name-rev: Fix non-shortest description, Jeff King, (Tue Aug 28, 5:00 am)
Re: [PATCH] name-rev: Fix non-shortest description, Jeff King, (Tue Aug 28, 5:26 am)
Re: name-rev does not show the shortest path, Julian Phillips, (Fri Aug 24, 7:55 am)
Re: name-rev does not show the shortest path, Julian Phillips, (Fri Aug 24, 11:21 am)
Re: name-rev does not show the shortest path, Junio C Hamano, (Fri Aug 24, 2:33 pm)
Re: name-rev does not show the shortest path, Johannes Schindelin, (Sat Aug 25, 11:04 am)
Re: name-rev does not show the shortest path, Jeff King, (Sun Aug 26, 5:23 am)
Re: name-rev does not show the shortest path, Johannes Schindelin, (Sun Aug 26, 11:38 am)
Re: name-rev does not show the shortest path, Jeff King, (Mon Aug 27, 5:24 am)
Re: name-rev does not show the shortest path, Johannes Schindelin, (Mon Aug 27, 5:57 am)
Re: name-rev does not show the shortest path, Johannes Schindelin, (Mon Aug 27, 7:18 am)
speck-geostationary