Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can we customize the default commit message used by the fetch extension?

The default commit message that fetch uses, "Automated merge with ...." is long, ugly and litters the history with local directory paths. I'd like to replace it with a simple "Automated merge" or just "Merge".

like image 210
Plumenator Avatar asked Feb 18 '11 05:02

Plumenator


1 Answers

By default the message is not customizable (check out "library.zip" under your Mercurial install folder, you'll see the message in plain text under hgext\fetch.pyc).

So the only way is to update source code of "fetch" - try this version, I just changed the message to "Fetch merge" and it works like a blast :)

You'd need to remove library.zip\hgext\fetch.pyc and put there fetch.py (plain python file) with the content from the link above.

like image 54
andreister Avatar answered Oct 22 '22 16:10

andreister