[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Change prevprops in pre-commit

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Mon, 08 Sep 2014 10:26:13 -0400

On 09/08/2014 09:26 AM, Philip Martin wrote:
> Sergey Azarkevich <azarkevich_at_gmail.com> writes:
>> I see in pre-commit hook template that changing revisions properties in
>> transaction are allowed.
>> But I can't find way for it (I want change svn:author to more readable).
>> Is here way for this with svn, svnadmin, svnlook ... or other standard
>> tool? Or I should use Subversion API and write simple tool?
> I think we should provide command line support for setting txnprops.
> The code is simple enough, the iterface is a bit harder. There was was
> some debate on IRC as to whether it should be
> svnlook propset -t txn
> or
> svnadmin settxnprop -t txn

Why not just 'svnadmin setrevprop -t txn' ? New option, but not a new
subcommand. I don't think it all that important to distinguish between
"transaction props" and "revision props" once we get outside our API
space and into user command space. Our users understand "revision
props" as properties on revisions, and transactions as revisions-to-be
... the rest is fairly trivial inference.

(And yes, 'svnlook' should be kept read-only.)

C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Enterprise Cloud Development
Received on 2014-09-08 16:26:53 CEST

This is an archived mail posted to the Subversion Dev mailing list.