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

Re: Trouble With Dates

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-05-03 07:01:12 CEST

On May 2, 2007, at 18:37, Hilco Wijbenga wrote:

> I've used CVS2SVN to move our CVS repository into our Subversion
> repository. I'm not sure that's related but I thought I'd mention it.
>
> If I run 'svn log FILE -r {2004-01-01}:{2007-12-31}' I nicely get all
> log entries (entries in 2005 and 2007). If, however, I try 'svn log
> FILE -r {2005-01-01}:{2007-12-31}' I get nothing! (Well, I get a
> single line of '-'.)
>
> According to the Subversion book Subversion simply translates the
> dates to revisions and then uses those. If I do that manually I get
> the log entries as expected (svn log FILE -r 1234:2345).
>
> So apparently the translation from date to revision is not working
> properly. Reading the Subversion book leads me to believe that perhaps
> the timestamp properties are missing? But if that's the case then how
> come the log entries *do* contain a timestamp? Are they not the same
> thing?
>
> If my conclusion is correct, how do I create the necessary
> timestamp properties?

Do you mean, you imported your CVS repository into your existing
Subversion repository? Or was the Subversion repository empty when
you imported into it?

If there was already something in the Subversion repository, then
that means that all your revisions proceed chronologically to the
point when you imported your CVS repository, at which point, time
goes backward, then forward again. This messes up the ability of
Subversion to identify revisions by date. And there isn't really a
solution. You can use the date feature to find revisions created from
now on, but not earlier revisions (reliably).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 3 07:02:01 2007

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

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