Reverse the order so the trac comments match the commits in chronological order.
authorStephen Haberman <stephen@exigencecorp.com>
Thu, 10 Jul 2008 03:00:50 +0000 (22:00 -0500)
committerStephen Haberman <stephen@exigencecorp.com>
Thu, 10 Jul 2008 03:00:50 +0000 (22:00 -0500)
server/post-receive-trac

index a67e1e5..11f5ac7 100644 (file)
@@ -6,9 +6,9 @@ TRAC_ENV=/srv/trac/cbas
 while read oldrev newrev refname ; do
        if expr "$oldrev" : '0*$' >/dev/null
        then
-               git rev-parse --not --branches | grep -v $(git rev-parse $refname) | git rev-list --stdin $newrev
+               git rev-parse --not --branches | grep -v $(git rev-parse $refname) | git rev-list --reverse --stdin $newrev
        else
-               git rev-parse --not --branches | grep -v $(git rev-parse $refname) | git rev-list --stdin $oldrev..$newrev
+               git rev-parse --not --branches | grep -v $(git rev-parse $refname) | git rev-list --reverse --stdin $oldrev..$newrev
        fi | while read commit ; do
                /home/BIPFS/shaberman/local/bin/python /srv/git/hooks/server/post-receive-trac.py "$TRAC_ENV" "$commit"
        done