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

[patch] log output, part 1

From: Ben Collins <bcollins_at_debian.org>
Date: 2002-02-24 17:48:19 CET

This patch implements the minimum that I think the log command needs.
The old way that svn_repos_get_logs() worked is if you retrieved a log
(regardless of any files you specified on the command line), you got all
log entries for all revisions.

Now, if you manually enable discover_changed_paths, the functionality
was to check for delta's if --verbose, and use that to decide if the
revision applied to the files you specific on the command line. This
meant that you would only get a correct log listing with --verbose.

This patch enables the ability of trimming logs to only the revisions
that apply to the files you specified on the command line (e.g. "svn log
Makefile" would only show logs/revs where Makefile was modified).

I've still not enabled checking for changed_paths (hence, this is part
one), but this patch allows the former case without requiring the latter
case.

        * libsvn_fs/tree.c(svn_fs_changed_thisrev): New function. Used to
        see if a path was modified as of a certain rev in the passed
        root.
        * include/svn_fs.h(svn_fs_changed_thisrev): Declare new
        function.
        * libsvn_repos/log.c(svn_repos_get_logs): If the user passed
        paths, use svn_fs_changed_thisrev() to see if any of them
        changed for this particular revision. This will trim the logs to
        just those where paths were modified. Remove old code that did
        this differently (and less efficiently).

-- 
 .----------=======-=-======-=========-----------=====------------=-=-----.
/       Ben Collins    --    Debian GNU/Linux    --    WatchGuard.com      \
`          bcollins@debian.org   --   Ben.Collins@watchguard.com           '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'


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

Received on Sat Oct 21 14:37:09 2006

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

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