monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] fixing old commit messages


From: Stephen Leake
Subject: Re: [Monotone-devel] fixing old commit messages
Date: Sat, 14 Jun 2014 14:32:21 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt)

Hendrik Boom <address@hidden> writes:

> Is there any way to edit an old commit message?

The commit message for a revision is stored in the "changlog" cert:

$ mtn ls certs h:org.opentoken
mtn: expanding selection 'h:org.opentoken'
mtn: expanded to '99db28068fc5a79e3e6137777f8d64dc273a4870'
------------------------------------------------------------------------
Key   : address@hidden (ed5da650ec...)
Sig   : ok
Name  : author
Value : address@hidden
------------------------------------------------------------------------
Key   : address@hidden (ed5da650ec...)
Sig   : ok
Name  : branch
Value : org.opentoken
------------------------------------------------------------------------
Key   : address@hidden (ed5da650ec...)
Sig   : ok
Name  : changelog
Value : * opentoken-recognizer-graphic_character.adb (Analyze): fix if/then 
layout
      : * opentoken-recognizer-html_entity.adb (Analyze):
      : * opentoken-recognizer-real.adb:
      : * opentoken-token-enumerated-analyzer.adb (Find_Best_Match):
------------------------------------------------------------------------
Key   : address@hidden (ed5da650ec...)
Sig   : ok
Name  : date
Value : 2014-06-14T06:41:14


You can't delete or change an old cert, but you can add a new one:

$ mtn cert h:org.opentoken changelog "additional changelog"

However, that might cause problems with tools that expect only one
changelog per revision.

So the best answer is "no, you can't change commit messages".

Part of the point of the name "monotone" is that history changes
monotonically; you can only add to it, never subtract (a change is a
subtract plus add).

-- 
-- Stephe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]