You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Moretti, Giovanni" <G....@massey.ac.nz> on 2004/07/15 00:15:50 UTC

How to get Log messages into sourcefiles (like CVS $Log$)

Subversion doesn't support the $Log$ keyword, but I quite like having
the comment trail provided by my commit log entries appended as comments
at the bottom of source code files - $Id$ at the top, $Log$ at the
bottom.

Obviously you'd only want Log entries for commits for those revisions in
which particular file changed, not all repository commits ...

Any suggestions?

Thanks
Giovanni
========================================================================
 Giovanni Moretti  |  Institute of Information Sciences and Technology
 Senior Lecturer   |  Massey University, Palmerston North, New Zealand
 Computer Science  |  Ph 64-6-3505799x2474 == Fax 64-6-3502259 == ZL2BOI

------------------------------------------------------------------------
 http://www-ist.massey.ac.nz/moretti      mailto:G.Moretti@massey.ac.nz

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


Re: How to get Log messages into sourcefiles (like CVS $Log$)

Posted by Ben Collins-Sussman <su...@collab.net>.
On Wed, 2004-07-14 at 19:15, Moretti, Giovanni wrote:
> Subversion doesn't support the $Log$ keyword, but I quite like having
> the comment trail provided by my commit log entries appended as comments
> at the bottom of source code files - $Id$ at the top, $Log$ at the
> bottom.
> 
> Obviously you'd only want Log entries for commits for those revisions in
> which particular file changed, not all repository commits ...
> 
> Any suggestions?

Run 'svn log foo.c >> foo.c' ??  Seriously, one of the reasons svn has
no $Log$ keyword because it's so ridiculously easy to get the log of a
file with the 'svn log' command.



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