Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1462419ECF for ; Tue, 19 Apr 2016 20:27:14 +0000 (UTC) Received: (qmail 71647 invoked by uid 500); 19 Apr 2016 20:27:13 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 71614 invoked by uid 500); 19 Apr 2016 20:27:13 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 71604 invoked by uid 99); 19 Apr 2016 20:27:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Apr 2016 20:27:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D5CEDC1342 for ; Tue, 19 Apr 2016 20:27:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=icloud.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id O7bayybHLyiw for ; Tue, 19 Apr 2016 20:27:11 +0000 (UTC) Received: from pv33p04im-asmtp001.me.com (pv33p04im-asmtp001.me.com [17.143.181.10]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C31EA5F245 for ; Tue, 19 Apr 2016 20:27:10 +0000 (UTC) Received: from process-dkim-sign-daemon.pv33p04im-asmtp001.me.com by pv33p04im-asmtp001.me.com (Oracle Communications Messaging Server 7.0.5.36.0 64bit (built Sep 8 2015)) id <0O5W00K00DJCII00@pv33p04im-asmtp001.me.com> for users@subversion.apache.org; Tue, 19 Apr 2016 20:27:04 +0000 (GMT) Received: from lethe.bwi.bestwestern.com (unknown [206.201.173.136]) by pv33p04im-asmtp001.me.com (Oracle Communications Messaging Server 7.0.5.36.0 64bit (built Sep 8 2015)) with ESMTPSA id <0O5W00ECUE51PQ50@pv33p04im-asmtp001.me.com>; Tue, 19 Apr 2016 20:27:02 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-04-19_14:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1011 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1604190345 Content-type: text/plain; charset=us-ascii MIME-version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Is it possible to change content of a commit by pre-commit hook? From: Joseph Bruni In-reply-to: Date: Tue, 19 Apr 2016 13:27:01 -0700 Cc: users@subversion.apache.org Content-transfer-encoding: quoted-printable Message-id: References: To: thiemo.kellner@post.ch X-Mailer: Apple Mail (2.3124) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=4d515a; t=1461097624; bh=pZy2QuDjs+cELyV+RsI4YUrydWtA25rXLRlU4IuXVNw=; h=Content-type:MIME-version:Subject:From:Date:Message-id:To; b=JYRqUdrUt3CeibST3xB6/9B7Lr6Nd9BPyYsLgcgGVa7vfPJeFiuHtrH4WGVBDhgqE /PmdFmhOlBvk79nBGsh0SB/lCwxO2YKo58+vAh2UtX/OUUySbQQzEaREETO+fFTwTe D7z0goG2C7+CvK1gBQMZf399xne10JBa/67zW+DYgUPgSHa1vOtEPdikwERwoP8Tqd aVNWM6QdkXB5yP5eFs1AOu/cgSkTdSsLVgCHv5zcvXVOHq1QOpN/wJ2r1xJXIB03Z4 25JcRqZoXMdXxhizJ5zetDgJefDD25IOouGLo7dB0F14fQRaDJzl8b+246UZFoUlpv 6GWN330nk3Tfg== > On Apr 19, 2016, at 12:44 AM, thiemo.kellner@post.ch wrote: >=20 > Hi all >=20 > We export PowerCenter workflows as XML to commit those to subversion. = We would like to make sure that the description attribute of the tags = contain subversion information like Rev or Header. Is it possible to = change the content i.e. the value of the xml description attribute by = commit hook? I had a look at red bean book and search the net for hints. = I only found 'svnlook cat' to echo the content of the file but I did not = find a means to alter the content. Is it possible to achieve or do I = need to make a check on the content and fail the commit if the required = bits of information in the content is not present? >=20 > Kind regards >=20 > Thiemo Have you tried using keywords? = http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.keywords.htm= l You might be able to use a pre-commit hook to verify that the keywords = are present and that the svn:keywords property is set on the file -- not = the modify the content but to reject the commit if they are missing.=