This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Welcome to sources.redhat.com


On Tue, 2002-08-06 at 13:33, Jonathan Larmour wrote:
> Gary Thomas wrote:
> > On Tue, 2002-08-06 at 13:17, Jonathan Larmour wrote:
> > 
> > 
> >>Gary takes the former approach I believe, although perhaps he has emacs 
> >>macros or something to help him which might be why.
> >>
> >>Commit log messages are also important as they are what people see in the 
> >>ecos-cvs list, which I certainly read, and I'm pretty sure Gary does too. 
> >>Yeah, what fun lives we lead ;).
> > 
> > 
> > I *do* have emacs macros which help with this.
> 
> Okay, can you indulge me with a peek? :-).
> 

Here's what I have in my .emacs file:

    (require 'add-log)
    (global-set-key "\C-x4a" 'add-change-log-entry)
    ;; (defun user-mail-address () "gthomas@redhat.com")
    (defun user-mail-address () "gary@chez-thomas.org")
    (defun user-full-name () "Gary Thomas")

Then, to make a ChangeLog entry, I just go to the file/function where
the change was made, type ^X-4-a and it finds the appropriate ChangeLog
file, makes the basic entry and I just fill in the details.

What I normally do is to run a script to see what I've changed 
(cvs-patch), then run another script which runs emacs on all of the 
changed files so I can update the ChangeLog (do_ChangeLogs).  Then run 
the (cvs-patch) script one more time and commit.

#! /bin/sh

#cvs -q diff $* | FixPatch | tee /work/diffs
#cvs -q diff $* | FixPatch | no_srec >/work/diffs
cvs -q diff $* | no_srec >/work/diffs
#! /bin/sh

#grep Index $1 | sed -e "s/Index: //" | xargs -n1 xemacs $1
grep Index: /work/diffs | grep -v "%redact" | grep -v ChangeLog | grep -v .Sanitize | sed -e "s/Index: //" | xargs -n1 ${CVSEDITOR} /work/diffs


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]