You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Anne Hammond <ha...@txcorp.com> on 2007/02/20 22:19:22 UTC

post-commit without diffs

When commits are issued, the diffs are emailed to all the
members of the mailman list.  (see post-commit hook below)

Is it possible, for commits with many differences, to exclude
the diffs?  Or does --with-diffs specify that all the differences
should be included in the email?

Thanks in advance,
Anne

[hammond@fusion hooks]$ more post-commit
#!/bin/sh

REPOS="$1"
REV="$2"
PATH=/usr/bin:/bin
PROJECT=gsimf

svnnotify --repos-path "$REPOS" \
           --revision "$REV" \
           --svnlook /usr/bin/svnlook \
           --to $PROJECT-no-reply@fusion.xxcorp.com \
           --from $PROJECT-no-reply@fusion.txcorp.com \
           --with-diff --subject-cx





Anne M. Hammond - Systems / Network Administration - Tech-X Corp
                   hammond_at_txcorp.com 720-974-1840

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

Re: post-commit without diffs

Posted by "Anne M. Hammond" <ha...@txcorp.com>.
Thanks Karl.  post-commit could be set up
--max-diff-length LENGTH

I have determined that the user doesn't really want any
diffs in the email, so have removed --with-diff.

Anne

Anne M. Hammond - Systems / Network Administration - Tech-X Corp
                   hammond_at_txcorp.com 720-974-1840

On Tue, 20 Feb 2007, karl.kornel@mindspeed.com wrote:

> Anne Hammond <ha...@txcorp.com> wrote on 02/20/2007 02:19:22 PM:
>
>> When commits are issued, the diffs are emailed to all the
>> members of the mailman list.  (see post-commit hook below)
>>
>> Is it possible, for commits with many differences, to exclude
>> the diffs?  Or does --with-diffs specify that all the differences
>> should be included in the email?
>>
>> <<<snip>>>
>>
>> svnnotify --repos-path "$REPOS" \
>>            --revision "$REV" \
>>            --svnlook /usr/bin/svnlook \
>>            --to $PROJECT-no-reply@fusion.xxcorp.com \
>>            --from $PROJECT-no-reply@fusion.txcorp.com \
>>            --with-diff --subject-cx
>> <<<snip>>>
>
> This sounds like a question particular to the svnnotify command.  If it's
> the command as what's documented at
> <http://search.cpan.org/dist/SVN-Notify/bin/svnnotify>, then presumably
> you could use the '--max-diff-length' option.
>
> -- A. Karl Kornel, Mindspeed Technologies, Inc.
> karl.kornel@mindspeed.com -- (949) 579-3503
> "Remember the Rules: Separation & Optimization"
>

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

Re: post-commit without diffs

Posted by ka...@mindspeed.com.
Anne Hammond <ha...@txcorp.com> wrote on 02/20/2007 02:19:22 PM:

> When commits are issued, the diffs are emailed to all the
> members of the mailman list.  (see post-commit hook below)
> 
> Is it possible, for commits with many differences, to exclude
> the diffs?  Or does --with-diffs specify that all the differences
> should be included in the email?
> 
> <<<snip>>>
> 
> svnnotify --repos-path "$REPOS" \
>            --revision "$REV" \
>            --svnlook /usr/bin/svnlook \
>            --to $PROJECT-no-reply@fusion.xxcorp.com \
>            --from $PROJECT-no-reply@fusion.txcorp.com \
>            --with-diff --subject-cx
> <<<snip>>>

This sounds like a question particular to the svnnotify command.  If it's 
the command as what's documented at 
<http://search.cpan.org/dist/SVN-Notify/bin/svnnotify>, then presumably 
you could use the '--max-diff-length' option.

-- A. Karl Kornel, Mindspeed Technologies, Inc.
karl.kornel@mindspeed.com -- (949) 579-3503
"Remember the Rules: Separation & Optimization"

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