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

Re: Missing log info (WAS: getting a repository's latest revision)

From: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2004-10-12 16:55:44 CEST

On Oct 12, 2004, at 9:43 AM, Garrett Rooney wrote:

> Scott Palmer wrote:
>> On Oct 11, 2004, at 9:58 PM, Rob Hills wrote:
>>> Hi All,
>>>
>>> On 11 Oct 2004 at 12:24, Lorenz wrote:
>>>
>>>> You always will get an empty log message (dashed line only) if the
>>>> target-file or the target-directory (and any of it's subdirectories)
>>>> did not change in the requested revision.
>>>>
>>>> Using the root directory of the repositiory on the other hand should
>>>> always give you a non empty result.
>>>
>>>
>>> From my testing, that is not correct either. Issuing:
>>> svn log -r head http://our.repos.server/svn/projects/myproject
>>>
>>> (url details changed to protect the guilty ;-)
>>> using a valid URL on our server (that is a directory, not a file)
>>> still returns the empty
>>> list.
>>>
>> I have also observed that svn log -r HEAD always gives an empty list
>> (just the dashed line), at least I have never seen it do anything
>> different. If I issue "svn log" on the root of my working copy it
>> does not include the latest revision or two.
>> Here's an example:
>> $ svn up
>> At revision 112.
>> $ svn ci -m "fixed stuff"
>> Sending Blah/src/something.java
>> Sending Blah/src/something_else.java
>> Transmitting file data ..
>> Committed revision 113.
>> $ svn log
>> ----------------------------------------------------------------------
>> --
>> r111 | scott.palmer | 2004-10-09 01:33:18 -0400 (Sat, 09 Oct 2004) |
>> 1 line
>> some comment
>> ----------------------------------------------------------------------
>> --
>> r110 | scott.palmer | 2004-10-08 23:52:09 -0400 (Fri, 08 Oct 2004) |
>> 1 line
>> some other comment
>> ...
>> Notice that rev 112 and rev 113, both of which had log messages (I've
>> manually replaced the path info and log text for posting) , you can
>> see that for 113 in the above transcript, do not show up in the log.
>> All of the above commands were from the root of my working copy. All
>> modifications to the repository were included in that working copy.
>> That doesn't seem right to me.
>
> You will always see some log message if you run 'svn log -rHEAD' on
> the root of you REPOSITORY, not your working copy. Your working copy
> is not necessarily checked out from the top level of the repository
> (in fact it almost certainly isn't), so HEAD of the repository might
> be a change in some other directory.

But in this case HEAD of the repository is most definitely NOT in some
other directory. I made that clear in my transcript (notice the commit
followed immediately by a log, no change directories in-between) and my
description of it when I said, "All modifications to the repository
were included in that working copy".

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 12 16:56:29 2004

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.