You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rodolfo Schulz de Lima <ro...@rodsoft.org> on 2003/11/19 22:34:57 UTC

Log message format

I see that the log messages in the subversion repository are very well
formatted, with descriptions for each modified file, and in some cases
the name of the function modified. Are those logs hand formatted, or
before editing there's some script that sees the diffs between the last
revision and the modified files, indicating which functions were
modified, etc?

Regards,
Rodolfo Lima

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

Re: Log message format

Posted by Julian Foad <ju...@btopenworld.com>.
Rodolfo Schulz de Lima wrote:
> On Wed, Nov 19, 2003 at 04:41:52PM -0600, Ben Collins-Sussman wrote:
> 
>>They're all hand-written, part of our project's policy.
>>
>>However, many of us use an emacs function to help create these sorts of
>>log messages as we work.  It's really nice.  See svn-log-message in
>>/trunk/tools/dev/svn-dev.el
> 
> Nice. The only bad think is that I'm vi-addicted :( (or :), dunno)

I use Vim, and I use this little script to prepare an approximate log message template ready for me to fill in the descriptions:

~> cat ~/bin/svnlogmsg
#!/bin/bash
# Write a log message template, listing the files that would be committed.
FILES=`svn st "$@" | grep "^[^?]" | sed 's/^M......//' | sort`
echo
for FILE in $FILES; do
  echo "* $FILE"
  svn diff --diff-cmd diff -x -up $FILE | sed -e "s/^@@ [^@]* @@ \(.*\)\> *(.*$/  (\1): /" -e "t" -e "d" | uniq
done
echo
svn diff -x -up "$@"


I use it like this:
~> svnlogmsg [Files/Directories to be committed] > logmsg.txt
~> vim logmsg.txt

and it produces the formatted list of file names and function names (to the extent that "diff -p" can guess them), followed by a diff for me to look at, which I delete afterwards.

- Julian


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

Re: Log message format

Posted by "Jostein Chr. Andersen" <jo...@josander.net>.
On Wednesday 19 November 2003 23.49, Rodolfo Schulz de Lima wrote:
> On Wed, Nov 19, 2003 at 04:41:52PM -0600, Ben Collins-Sussman wrote:
> > They're all hand-written, part of our project's policy.
> >
> > However, many of us use an emacs function to help create these sorts
> > of log messages as we work.  It's really nice.  See svn-log-message
> > in /trunk/tools/dev/svn-dev.el
>
> Nice. The only bad think is that I'm vi-addicted :( (or :), dunno)

http://www.vim.org/scripts/script.php?script_id=743

J.
-- 
Jostein Chr. Andersen <jo...@josander.net>
http://www.josander.net/


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

Re: Log message format

Posted by kf...@collab.net.
Rodolfo Schulz de Lima <ro...@rodsoft.org> writes:
> Nice. The only bad think is that I'm vi-addicted :( (or :), dunno)

If something similar can be written for vi, we'd put it in
svn-dev.vim, in that same directory.

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

Re: Log message format

Posted by Rodolfo Schulz de Lima <ro...@rodsoft.org>.
On Wed, Nov 19, 2003 at 04:41:52PM -0600, Ben Collins-Sussman wrote:
> They're all hand-written, part of our project's policy.
> 
> However, many of us use an emacs function to help create these sorts of
> log messages as we work.  It's really nice.  See svn-log-message in
> /trunk/tools/dev/svn-dev.el

Nice. The only bad think is that I'm vi-addicted :( (or :), dunno)

Best regards,
Rodolfo Lima

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

Re: Log message format

Posted by Ben Collins-Sussman <su...@collab.net>.
On Wed, 2003-11-19 at 16:34, Rodolfo Schulz de Lima wrote:
> I see that the log messages in the subversion repository are very well
> formatted, with descriptions for each modified file, and in some cases
> the name of the function modified. Are those logs hand formatted, or
> before editing there's some script that sees the diffs between the last
> revision and the modified files, indicating which functions were
> modified, etc?

They're all hand-written, part of our project's policy.

However, many of us use an emacs function to help create these sorts of
log messages as we work.  It's really nice.  See svn-log-message in
/trunk/tools/dev/svn-dev.el




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