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 DE6A41902B for ; Sun, 24 Apr 2016 00:43:46 +0000 (UTC) Received: (qmail 33350 invoked by uid 500); 24 Apr 2016 00:43:45 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 33308 invoked by uid 500); 24 Apr 2016 00:43:45 -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 33298 invoked by uid 99); 24 Apr 2016 00:43:45 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Apr 2016 00:43:45 +0000 Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 2B9D91A009D for ; Sun, 24 Apr 2016 00:43:45 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id k142so148220009oib.1 for ; Sat, 23 Apr 2016 17:43:45 -0700 (PDT) X-Gm-Message-State: AOPr4FWqsScCN9AhJNGrPabE/2wzzi8dKMT55BdEBAJp/O5E2Pfh5DXQSegnTkFinrjgz43fAbWkpqi3Mos0YQ== MIME-Version: 1.0 X-Received: by 10.202.51.87 with SMTP id z84mr11024456oiz.5.1461458624452; Sat, 23 Apr 2016 17:43:44 -0700 (PDT) Received: by 10.202.189.9 with HTTP; Sat, 23 Apr 2016 17:43:44 -0700 (PDT) In-Reply-To: <20160423221918.GC5310@tarsus.local2> References: <20160423214838.GA5310@tarsus.local2> <20160423221918.GC5310@tarsus.local2> Date: Sat, 23 Apr 2016 17:43:44 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Modifying transaction properties (svnadmin setrevprop) From: Ryan J Ollos To: Daniel Shahaf Cc: users@subversion.apache.org Content-Type: multipart/alternative; boundary=001a113cf4f02a24820531305acd --001a113cf4f02a24820531305acd Content-Type: text/plain; charset=UTF-8 On Sat, Apr 23, 2016 at 3:19 PM, Daniel Shahaf wrote: > Daniel Shahaf wrote on Sat, Apr 23, 2016 at 21:48:38 +0000: > > Ryan J Ollos wrote on Sat, Apr 23, 2016 at 14:23:37 -0700: > > > For a long time I've known the rule "don't modify a transaction in a > > > pre-commit hook", documented in (1) and recently repeated in (2). > > > > > > I was therefore surprised to read about the "svnadmin setrevprop" > command > > > (3) in 1.9, and to see an example of modifying transaction properties > in > > > the hook-scripts: "persist-ephemeral-txnprops.py" (4). > > > > > > Are there some conditions under which it's okay to modify the > transaction, > > > or are there only specific use-cases when this should be done? > > I think I can give a simpler answer: anything you can do using only > svnadmin/svnlook is okay. The rule you quote refers to people who > directly use the svn_fs_* APIs, or DAV clients. > > Cheers, > > Daniel > Thanks, that makes sense. In the past, I have applied the rule in an overly-restrictive way when considering pre-/post-commit hook use cases. - Ryan --001a113cf4f02a24820531305acd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Sat, Apr 23, 2016 at 3:19 PM, Daniel Shahaf <danielsh@apache.org<= /a>> wrote:
Da= niel Shahaf wrote on Sat, Apr 23, 2016 at 21:48:38 +0000:
> Ryan J Ollos wrote on Sat, Apr 23, 2016 at 14:23:37 -0700:
> > For a long time I've known the rule "don't modify a = transaction in a
> > pre-commit hook", documented in (1) and recently repeated in= (2).
> >
> > I was therefore surprised to read about the "svnadmin setrev= prop" command
> > (3) in 1.9, and to see an example of modifying transaction proper= ties in
> > the hook-scripts: "persist-ephemeral-txnprops.py" (4).<= br> > >
> > Are there some conditions under which it's okay to modify the= transaction,
> > or are there only specific use-cases when this should be done?
I think I can give a simpler answer: anything you can do using only<= br> svnadmin/svnlook is okay.=C2=A0 The rule you quote refers to people who
directly use the svn_fs_* APIs, or DAV clients.

Cheers,

Daniel

Thanks, that makes sense. In the= past, I have applied the rule in an overly-restrictive way when considerin= g pre-/post-commit hook use cases.

- Ryan

--001a113cf4f02a24820531305acd--