You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by etienne studer <et...@canoo.com> on 2003/05/26 13:14:26 UTC

revision dates for svn log

Hello

I do not understand why I get an entry for rev527 in example1 and rev528 in
example2. The revisions were created before the date I specified in svn log
command, respectively:


ex.1: why is 527 listed?

svn log -r {"17 Apr 2003 15:57:50 +0100"}:HEAD
.../trunk/playground/fooBar.txt
------------------------------------------------------------------------
rev 527:  martin | 2003-04-17 15:24:47 +0100 (Thu, 17 Apr 2003) | 2 lines

------------------------------------------------------------------------
rev 528:  martin | 2003-04-17 15:57:50 +0100 (Thu, 17 Apr 2003) | 2 lines


ex.2: why is 528 listed?

svn log -r {"17 Apr 2003 16:07:55 +0100"}:HEAD
.../trunk/playground/fooBar.txt
------------------------------------------------------------------------
rev 528:  martin | 2003-04-17 15:57:50 +0100 (Thu, 17 Apr 2003) | 2 lines


ex.3: as expected!

svn log -r {"17 Apr 2003 16:07:57 +0100"}:HEAD
.../trunk/playground/fooBar.txt
------------------------------------------------------------------------


Can anyone explain this to me? Thanks.

Best regards, Etienne



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

RE: revision dates for svn log

Posted by etienne studer <et...@canoo.com>.
Thanks for your explanations!

Aha. That's a surprise to me: svn log -r{DATE} does not tell me all changes
that are newer than this date, but it uses the revisison "active" at that
time to start with (unlike cvs).

You asked me if I deleted the file in example 3: no I didnt't. An empty log
output is returned because between the last rep. modification of the file
and the date specified in the svn log -r{DATE} a new rep. revision has been
generated (through an independend repository action).

Is this all as you expect it? To me it looks not very intuitive when working
with svn log and dates: in one case I get a log message and in the other
case I don't don't get a log message although both specified dates are after
the last repository modification of the file.

Etienne





> -----Original Message-----
> From: sussman@collab.net [mailto:sussman@collab.net]
> Sent: Montag, 26. Mai 2003 15:05
> To: etienne studer
> Cc: dev@subversion.tigris.org
> Subject: Re: revision dates for svn log
>
>
> "etienne studer" <et...@canoo.com> writes:
>
> > ex.1: why is 527 listed?
> >
> > svn log -r {"17 Apr 2003 15:57:50 +0100"}:HEAD
> > .../trunk/playground/fooBar.txt
> > ------------------------------------------------------------------------
> > rev 527:  martin | 2003-04-17 15:24:47 +0100 (Thu, 17 Apr 2003)
> | 2 lines
> >
> > ------------------------------------------------------------------------
> > rev 528:  martin | 2003-04-17 15:57:50 +0100 (Thu, 17 Apr 2003)
> | 2 lines
> >
>
>
> At 15:57:50, the latest revision of fooBar.txt was 527.  Revision 528
> didn't exist yet.  When a date is resolved into a revision, this
> "border" case rounds down.
>
> > ex.2: why is 528 listed?
> >
> > svn log -r {"17 Apr 2003 16:07:55 +0100"}:HEAD
> > .../trunk/playground/fooBar.txt
> > ------------------------------------------------------------------------
> > rev 528:  martin | 2003-04-17 15:57:50 +0100 (Thu, 17 Apr 2003)
> | 2 lines
> >
>
>
> At 16:07:55, revision 528 was the latest revision of fooBar.txt, and
> it's *still* the latest revsiion of fooBar.txt.
>
>
> > ex.3: as expected!
> >
> > svn log -r {"17 Apr 2003 16:07:57 +0100"}:HEAD
> > .../trunk/playground/fooBar.txt
> > ------------------------------------------------------------------------
>
> I don't understand... did you delete fooBar.txt after 16:07:55?
> That would explain why you see no log mesage for fooBar.txt.
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: revision dates for svn log

Posted by Ben Collins-Sussman <su...@collab.net>.
"etienne studer" <et...@canoo.com> writes:

> ex.1: why is 527 listed?
> 
> svn log -r {"17 Apr 2003 15:57:50 +0100"}:HEAD
> .../trunk/playground/fooBar.txt
> ------------------------------------------------------------------------
> rev 527:  martin | 2003-04-17 15:24:47 +0100 (Thu, 17 Apr 2003) | 2 lines
> 
> ------------------------------------------------------------------------
> rev 528:  martin | 2003-04-17 15:57:50 +0100 (Thu, 17 Apr 2003) | 2 lines
> 


At 15:57:50, the latest revision of fooBar.txt was 527.  Revision 528
didn't exist yet.  When a date is resolved into a revision, this
"border" case rounds down.

> ex.2: why is 528 listed?
> 
> svn log -r {"17 Apr 2003 16:07:55 +0100"}:HEAD
> .../trunk/playground/fooBar.txt
> ------------------------------------------------------------------------
> rev 528:  martin | 2003-04-17 15:57:50 +0100 (Thu, 17 Apr 2003) | 2 lines
> 


At 16:07:55, revision 528 was the latest revision of fooBar.txt, and
it's *still* the latest revsiion of fooBar.txt.


> ex.3: as expected!
> 
> svn log -r {"17 Apr 2003 16:07:57 +0100"}:HEAD
> .../trunk/playground/fooBar.txt
> ------------------------------------------------------------------------

I don't understand... did you delete fooBar.txt after 16:07:55?
That would explain why you see no log mesage for fooBar.txt.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org