Tuesday, October 30, 2012

Mercurial: change the commit message

I used to type the commit message for my mercurial operation with mistake typing incorrect modifier of my activity. If the server doesn't know this activity Id, my push will be rejected, Sad but true.

There is an article below about how to change the commit message and make developer happy.
It helps me to get rid of my promlems. Although, author didn't mention in this article that the user name must be also specified in hgrc. Without username I was surprised with the message: abort: no username supplied (see "hg help config")

That's my hgrc with a proper content:

default = <repo_url>
histedit = <full path to hg_histedit.py>
; editor used to enter commit logs, etc.  Most text editors will work.
editor = notepad
username =vbashuro

No comments:

Post a Comment