Re: ciabot scripts and merge flood prevention

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Raymond
Date: Saturday, April 24, 2010 - 9:05 am

Joey Hess <joey@kitenet.net>:

For the record, Joey suggests this:

while read oldrev newrev refname; do
    branchname=${refname#refs/heads/}
    [ "$branchname" = "master" ] && branchname=
    for merged in $(git rev-parse --symbolic-full-name --not --branches | egrep -v "^\^$refname$" | git rev-list --reverse --stdin $oldrev..$newrev); do
        ciabot_git.pl $merged $branchname
    done
done

with discussion that is short enough to reproduce here.

buxy writes:

I had noticed the strange errors on tag creation and was planning to
do something about it.  What I see happening is that the existing 
git rev-list call generates a list beginning with a commit ID consisting
of all zeros when the hook is called as the result of a tag push.

He also links to this: 

http://git.gnome.org/cgit/gitadmin-bin/tree/post-receive-notify-cia


I had noticed this. I didn't change it because (a) I wasn't sure how far
back the --reverse argument went, and (b) I've been thinking about implmenting
some switches to change the calling interface so that the rev list 
expansion is dome internally. It needs to be smarter to banish the
tag-push problem.

I expect to be able to tackle this within the next four days.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ciabot scripts and merge flood prevention, Joey Hess, (Sat Apr 24, 8:05 am)
Re: ciabot scripts and merge flood prevention, Eric Raymond, (Sat Apr 24, 9:05 am)