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

Re: Ok. I just had this brainstorm....

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-09-25 13:41:09 CEST

Files wrote:
> Ok.
>
> Do we have some way of entering a template for the log message?

I use this script to write a list of the file names in the format described in HACKING:

~/src/subversion> cat log-msg.sh
#!/bin/bash
# Write a log message template, listing the files that would be committed.
svn status "$@" | grep "^[^?]" | sed 's/^M...../*/' | sort

So I do, for example,

  ./log-msg.sh doc/boo/book/ > book.patch

  svn diff doc/book/book/ >> book.patch

  vim book.patch
  # Write the log message by looking at the diff, and then delete the diff part.
  # While doing this, realise that the patch isn't quite right. Go back and fix it.

  cat book.patch
  # Final check. Is it all correct? Did I remember to delete the diff part?

  svn commit -F book.patch doc/book/book/

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 25 13:42:11 2003

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.