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

Re: How to get a "recursive" log?

From: Paul Koning <Paul_Koning_at_dell.com>
Date: Thu, 10 Jul 2008 15:17:17 -0400

>>>>> "Grant" == Grant Edwards <grante_at_visi.com> writes:

 Grant> On 2008-07-10, Erik Huelsmann <ehuels_at_gmail.com> wrote:
>>>> Shows log messages from the repository. If no arguments are
>>>> supplied, svn log shows the log messages for all files and
>>>> directories inside of (and including) the current working
>>>> directory of your working copy.
>>>>
>>>> That's sure not how it seems to work when I do it. When I do an
>>>> "svn log" in a working copy, all I see are changes to the
>>>> directory itself.
>>> Perhaps I'm misunderstanding what the phrase "inside of" means
>>> in this context. [What _does_ it mean in this context?]
>> Could you provide a script which shows the problem?

 Grant> See below. I've truncated the output from that last "svn log"
 Grant> command, since it was quite long (as it should have been).

>> (BTW: I think you're experiencing the consequences of 'mixed
>> revision working copies'.)

 Grant> Sorry, I've no clue what that means.

The other day I pointed out that each file in a working directory has
an associated revision number -- that's the revision number
corresponding to the content of that file. If you commit a change to
one file, that one file's rev number is updated, but the rest still
reflect the last checkout or update.

So suppose you have this sequence:

   svn co <foo>
   checked out rev 12
   ...
   svn co bar.txt
   committed rev 18

File bar.txt is now marked as rev 18 in your w.d. but the rest of the
w.d. is at rev 12. (If you do "svn update" it will all be at rev 18,
or above if other commits have happened.)

Finally...

Commands in general default to the rev of whatever you point to. For
example, "svn log" without rev range means the range is 1 to the rev
of the file or directory you specified. If you don't specify one, "."
is assumed.

So in this example, "svn log" means "svn log ." and since . is at rev
12 that means "svn log . -r 1:12" (or 12:1, I forget).

On the other hand, svn log applied to a repository default to 1
through latest rev.

In summary -- roughly speaking, svn log will show you the log up to
the point of you last "svn update". If you want the full log, either
do an svn update, or find out the current repository head rev number
and specify that explicitly in the svn log command.

    paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-10 21:18:36 CEST

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.