Thread (8 messages) flat view 8 messages, 4 authors, 2016-06-15

Re: [PATCH] Additional merge-base tests

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:42:32

Possibly related (same subject, not in this thread)

Hi,

On Tue, 4 Jul 2006, Jakub Narebski wrote:
Junio C Hamano wrote:

quoted
The problem ALASCM's example demonstrates does rely on clock
skews.  The timestamps used in the example looked like this:


   1   1
  /  \/  \
 4  -1   4
 |   |   |
 3  -2   3
 |   |   |
 2  -3   2
   \ |  /
     0

The crucial clock skew the case relies on is that the tip of the
middle branch (-1) is older than the common commit (0).  But the
topmost commits with timestamp 1 could be with timestamp 5 to
correct the clock skew and still make the example "fail".

   5   5
  /  \/  \
 4  -1   4
 |   |   |
 3  -2   3
 |   |   |
 2  -3   2
   \ |  /
     0
So would putting timestamp for merge be MAX(now, parents timestamps)
solve the problem?
If there is an evil committer, the parents could have bogus timestamps, 
too. But then, I would not pull from such an evil person...

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help