You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Kumar McMillan <ku...@gmail.com> on 2007/03/12 19:08:55 UTC

a suggestion for svn log --recursive (combined log for all paths along a URL)

Hi.
I've looked through the the list archives and didn't find any subjects on this.

What I find myself wanting to do a lot is type `svn log --recursive`
which would log all activity in the directory structure that I'm in,
not just on the directory object itself.  This is very useful, say, to
find all changesets from the last merge since a changeset can
sometimes be missed by simply typing svn log <directory>

Attached is a working implementation in python, which uses svn list
--recursive $URL (as obtained by svn info).  It's very simple, but
this should be built into svn!  I'm hoping someone might be kene
enough to translate this patch into code ;)

-Kumar

Re: a suggestion for svn log --recursive (combined log for all paths along a URL)

Posted by Kumar McMillan <ku...@gmail.com>.
grr, there it bit me again!  svn log --stop-on-copy missed several
revisions within the directory tree.  Although I don't see a pattern
to it and it's most likely a bug that has been fixed in a more recent
version of the server.  we're running 1.2.3 :(  I will upgrade and
report back.  Otherwise, the script I attached earlier will show all
revisions in a directory tree.

On 3/12/07, Kumar McMillan <ku...@gmail.com> wrote:
> On 3/12/07, Ben Collins-Sussman <su...@red-bean.com> wrote:
> > > What I find myself wanting to do a lot is type `svn log --recursive`
> >
> > I'm confused, if I type 'svn log some_directory', then it shows me
> > every change which has ever affected *any* path within the directory,
> > at any depth.  It's already recursive as you describe.
>
> oh good!  In my hazy memory I remember doing `svn log path/subpath`
> and finding messages that weren't in `svn log path`.  Maybe that was a
> bug or some other issue that has since been resolved because, going
> back through some branches now, I can't reproduce it.  Sorry for the
> noise.
>

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

Re: a suggestion for svn log --recursive (combined log for all paths along a URL)

Posted by Kumar McMillan <ku...@gmail.com>.
On 3/12/07, Ben Collins-Sussman <su...@red-bean.com> wrote:
> > What I find myself wanting to do a lot is type `svn log --recursive`
>
> I'm confused, if I type 'svn log some_directory', then it shows me
> every change which has ever affected *any* path within the directory,
> at any depth.  It's already recursive as you describe.

oh good!  In my hazy memory I remember doing `svn log path/subpath`
and finding messages that weren't in `svn log path`.  Maybe that was a
bug or some other issue that has since been resolved because, going
back through some branches now, I can't reproduce it.  Sorry for the
noise.

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

Re: a suggestion for svn log --recursive (combined log for all paths along a URL)

Posted by Ben Collins-Sussman <su...@red-bean.com>.
On 3/12/07, Kumar McMillan <ku...@gmail.com> wrote:
> Hi.
> I've looked through the the list archives and didn't find any subjects on this.
>
> What I find myself wanting to do a lot is type `svn log --recursive`
> which would log all activity in the directory structure that I'm in,
> not just on the directory object itself.  This is very useful, say, to
> find all changesets from the last merge since a changeset can
> sometimes be missed by simply typing svn log <directory>

I'm confused, if I type 'svn log some_directory', then it shows me
every change which has ever affected *any* path within the directory,
at any depth.  It's already recursive as you describe.

You say that you can miss a changeset by typing 'svn log
some_directory', what problem are you describing?  Is it perhaps the
classic case where some_directory is at an old revision, and thus
you're only seeing commits from OLD_REV down to r0?  This bites
newbies a lot;  just run 'svn up' to bring everything in your working
copy to HEAD, and then I guarantee that 'svn log some_directory' will
show every commit that ever affected anything within the directory.

Or, are you talking about some other problem?

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