[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: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Fri, 11 Jul 2008 01:24:18 +0400

2008/7/10 Grant Edwards <grante_at_visi.com>:
> According to the svn book:
>
> 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. If I do "svn info" and then do an "svn log"
> on the URL returned by the "info" command, I see logs for "all
> files and directories inside of" of the URL.
>
> How do I get a log for all changes made to a working tree
> without having to do an "svn log" on each and every file and
> directory?
>
> --
> Grant Edwards
>

Returning to your first message.

IMHO, the answer is very simple, and it is where Subversion differs
from CVS.

Change to a file is always propagated to its parent directory.

Asking for the list of changes on the root of repository, you will
get the list of _all_ revisions, 1..N of the repository.

Asking at a subdirectory of it, you will get a sublist of it -- only
those revisions that occurred in that subdirectory or below it.

Asking for the list of changes on the root of a project, you will get
a list of all changes that occurred to that project. There is no need
to ask individual files.

I also suggest you to look at the chapter "Bubble-Up Method" here:
http://subversion.tigris.org/design.html#server.fs.struct.bubble-up
I find it very impressive.

Also, try to use -v option to svn log command. It lists the paths that
were changed in the revisions that you are listing.

About specifying the revision ranges:
There do exist some keywords, used instead of revision numbers,
such as HEAD, BASE etc. There is no need to know the exact
number - use the keyword instead. Read about them in the book.

---------------------------------------------------------------------
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 23:26:29 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.