[RFC] Amend commit messages
Georg Brandl
g.brandl at gmx.net
Wed Feb 23 13:47:09 CST 2011
On 23.02.2011 14:35, Martin Geisler wrote:
>>> You can actually change these so-called revision properties with
>>> Subversion, but it requires that the server has been configured to allow
>>> it. First you enable the rev-prop-change hook
>>>
>>> $ ln -s /bin/true<repo>/hooks/pre-revprop-change
>>>
>>> and then you can change things like the author:
>>>
>>> $ svn propset --revprop -r HEAD svn:author "alice"
>>>
>>> Voila, mutable history in SVN!
>>
>> Ah I was not aware of this. (Altering history seems a bit scary when
>> you don’t have a local repository to experiment in.) But either way,
>> we’ve never used this at work and we survived just fine. Yes, in a few
>> cases it mentions a wrong bug or revision number, or the commit
>> message is unfinished — oh well, odds are that no-one will actually
>> look at it anyway. I’m pretty sure this is not really commonly used
>> SVN functionality?
>
> I agree, I've not heard of anybody using this functionality much. I use
> it myself in a test script where I want repeatable output from SVN, but
> I hope nobody really use it apart from that :)
FWIW, it's enabled for the Python SVN, and it's quite useful to correct
commit messages -- usually two seconds after the actual commit. This is
"hg rollback" territory, so I personally wouldn't have any use for more
than that functionality in Mercurial.
Georg
More information about the Mercurial-devel
mailing list