[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: "svn diff" and "svn log" timestamp weirdness

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2005-09-01 11:36:21 CEST

Ph. Marek wrote:
> Another idea:
>
> If I understand the issue correctly, we end with a timestamp X given by the
> user, and find in the repository the timestamps W and Y, where W <= X <=Y and
> W < Y, and have to choose between W and Y.
>
> Why not take the nearest? Ie.
[...]
> And for the case that both differences are equal (unlikly, as microseconds are
> stored), we could throw a warning - "given timestamp is equally likely to W
> and Y, take one".
>
> How's that?

That's absolutely horrible. Imagine the last two changes were in 2005-01-01
and 2005-06-06. Then if I asked for 2005-05-05 it would give me the 2005-06-06
version, wrong by over a month.

Having a warning just for the exact midway point is equally horrible: the
choice being made does not suddenly become "unsafe" at the exact midpoint, it
smoothly becomes less safe the further you are from either end.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 1 11:37:10 2005

This is an archived mail posted to the Subversion Dev mailing list.