[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: Ph. Marek <philipp.marek_at_bmlv.gv.at>
Date: 2005-09-01 10:59:09 CEST

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.
        if (X-W < Y-X)
          use W;
          use Y;

That would allow choosing revisions within 1 second, too:


        X=sometime.4 (with 00000 omitted)

Here W would be taken.

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?



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:00:11 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.