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

Re: force commit comments

From: Juanma Barranquero <lektu_at_terra.es>
Date: 2003-11-23 16:56:42 CET

On 23 Nov 2003 00:26:17 -0600, "C. Michael Pilato" <cmpilato@collab.net> wrote:

> If I'm not mistaken, Subversion itself has never disallowed this. So,
> the message just needs to be tweaked a bit.

OTOH, I don't know how to do which I intended, other than as I
previously suggested (via post-commit).

The reason is that pre-commit receives the arguments REPOS-NAME and
TXN-NAME, which can be used with "svnlook propget" to get svn:log; but
to modify the log message, the only way is via "svnadmin setlog" (or
"svn propset"), which do not understand txn names, only revision numbers...

So, unless I'm mistaken, if modification of revision properties in
pre-commit is to be valid, some support should be added (some way to
filter the property data, perhaps).

Related: why does "svnadmin setlog" only accept the log message as a
file:

  setlog: usage: svnadmin setlog REPOS_PATH -r REVISION FILE

while "svn propset" also admits passing the log as an argument

  2. propset PROPNAME --revprop -r REV [PROPVAL | -F VALFILE] [URL]

which is sometimes much more convenient? (In my case, it would eliminate
the need for a uniquely-named temporary file, for example).

Thanks,

                                                           /L/e/k/t/u

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Nov 23 16:57:39 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.