changing commit comments

Douglas Philips dgou at mac.com
Tue Jul 15 09:17:46 CDT 2008


On 2008 Jul 15, at 9:59 AM, Thomas wrote:

> I think the Mercurial team didn't bother making this process easy,
> because when you commit your bogus message, someone can right after
> clone/pull from your repo, so even if you fix the commit message, the
> other user will still have the wrong commit message.

That is only true if you -push- right after you commit, or if you are  
committing to a published repository.
The longer the time between when you commit and when you decide/notice  
that you want to change the message, the greater the chance that the  
changeset has become visible to someone else.
But if it is a case of realizing it before you've done something else  
(for whatever reason, the actual act of committing seems to trigger  
remorse in a lot of people), you can just rollback and recommit with  
no one else any the wiser. :)

--Doug



More information about the Mercurial mailing list