You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kurt Schaefer <ku...@gmail.com> on 2008/04/17 01:31:50 UTC

commit message for out-of-date files

So say I do a:

svn status -u

and I see that file.c is out of data:

      *    2343   src\file.c

I'd really like to find out what the commit message was for the commit
that made it that way. If you just do an svn log on the file, it only
shows you the commit messages up until  the version I have in
my tree.  All well and good.

I can see the diff of the new stuff by doing:

svn diff src\file.c -r HEAD

But I can't seem to get the commit message for the new stuff.

svn log src\file.c -r HEAD

I get a:

-------------------------------------------------------------------

I've poked around a bit, and don't know how to get the commit message.

This seems like something people would want to do all the time, but
I'm having trouble finding how to do it.  I don't want to update the file
before reading the commit message.  Help!

I've tried doing a:

svn status -u -v src\file.c

    *  2342  2330 personwhoeditedthefile src\file.c

so I can figure out who edited the file, but neither of those revision
numbers gives me the comment of interest via svn log with the -r flag.
I just don't know how to do this.  Keep in mind that I don't want to do
an update just to see what the commit message is (was).   The
whole point is I'd like to find out what the changes are about
non-destructively.

   Thanks for you help,
        -Kurt

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

Re: commit message for out-of-date files

Posted by Lorenz <lo...@yahoo.com>.
Kurt Schaefer wrote:

>[...]
>I can see the diff of the new stuff by doing:
>
>svn diff src\file.c -r HEAD
>
>But I can't seem to get the commit message for the new stuff.
>
>svn log src\file.c -r HEAD

try 'svn log src\file.c -r HEAD:1'
or 'svn log scr\file.c -r HEAD:BASE'
or 'svn log scr\file.c -r BASE:HEAD'

-r HEAD alone tells svn to get the log for the HEAD revison only, and
that might not exist unless the file has been changed in that
revision.


-- 

Lorenz


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

Re: commit message for out-of-date files

Posted by Kurt Schaefer <ku...@gmail.com>.
> svn log $REPO_URL/src/file.c

Oh!  You're right.  That works. I guess I was just confused as to why
diff worked with the
-r HEAD, but log did not.  If I specify the full URL it seems to work fine.

Thanks!
    -Kurt

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

Re: commit message for out-of-date files

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 16, 2008, at 8:31 PM, Kurt Schaefer wrote:
> So say I do a:
>
> svn status -u
>
> and I see that file.c is out of data:
>
>       *    2343   src\file.c
>
> I'd really like to find out what the commit message was for the commit
> that made it that way. If you just do an svn log on the file, it only
> shows you the commit messages up until  the version I have in
> my tree.  All well and good.
>
> I can see the diff of the new stuff by doing:
>
> svn diff src\file.c -r HEAD
>
> But I can't seem to get the commit message for the new stuff.
>
> svn log src\file.c -r HEAD
>
> I get a:
>
> -------------------------------------------------------------------
>
> I've poked around a bit, and don't know how to get the commit message.
>
> This seems like something people would want to do all the time, but
> I'm having trouble finding how to do it.  I don't want to update  
> the file
> before reading the commit message.  Help!

Maybe:

svn log $REPO_URL/src/file.c


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