From users-return-27821-archive-asf-public=cust-asf.ponee.io@subversion.apache.org Mon Feb 25 09:22:49 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 65BDC180626 for ; Mon, 25 Feb 2019 10:22:49 +0100 (CET) Received: (qmail 49257 invoked by uid 500); 25 Feb 2019 09:22:43 -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 49246 invoked by uid 99); 25 Feb 2019 09:22:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2019 09:22:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id E62C6C22FA for ; Mon, 25 Feb 2019 09:22:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, UNPARSEABLE_RELAY=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 3Ew_4dZeDXUI for ; Mon, 25 Feb 2019 09:22:39 +0000 (UTC) Received: from mx0.elegosoft.com (mx0.elegosoft.com [78.47.87.163]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 8BBD86108F for ; Mon, 25 Feb 2019 09:22:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx0.elegosoft.com (Postfix) with ESMTP id 3473A17095A; Mon, 25 Feb 2019 10:22:33 +0100 (CET) Received: from mx0.elegosoft.com ([127.0.0.1]) by localhost (mx0.elegosoft.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hue_h8lLDpVy; Mon, 25 Feb 2019 10:22:27 +0100 (CET) Received: from ted.stsp.name (ted.stsp.name [217.197.84.34]) by mx0.elegosoft.com (Postfix) with ESMTPSA id 57BA9170923; Mon, 25 Feb 2019 10:22:27 +0100 (CET) Received: from localhost (ted.stsp.name [local]) by ted.stsp.name (OpenSMTPD) with ESMTPA id 28f704c6; Mon, 25 Feb 2019 10:22:26 +0100 (CET) Date: Mon, 25 Feb 2019 10:22:26 +0100 From: Stefan Sperling To: wuzhouhui Cc: users@subversion.apache.org Subject: Re: working copy hook Message-ID: <20190225092226.GS61773@ted.stsp.name> Mail-Followup-To: wuzhouhui , users@subversion.apache.org References: <4b17f87a.261cf.16923ec594b.Coremail.wuzhouhui14@mails.ucas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4b17f87a.261cf.16923ec594b.Coremail.wuzhouhui14@mails.ucas.ac.cn> User-Agent: Mutt/1.10.1 (2018-07-13) On Mon, Feb 25, 2019 at 05:11:25PM +0800, wuzhouhui wrote: > Could Subversion support working copy hook? Because I want to ensure > new commit won't introduce any building error, e.g. always running > "make html" before "svn commit". > > Thanks. There are only server-side hooks. But you can use branches to solve this problem. You could commit to a "staging" branch, and have a post-commit hook on the server which runs a build test on commits to this branch, and then performs an automatic merge to a "production" branch if the build was successful. If the build fails, such a server-side hook could avoid merging changes to the "production" branch until the "staging" branch has been fixed in a future commit.