Feature Request / Question

Greg Ward greg-hg at gerg.ca
Thu Jan 6 20:08:41 CST 2011


On Thu, Jan 6, 2011 at 4:36 PM, Kyle Tippetts <ktippetts at mac.com> wrote:
> One feature that I would like to see is the ability to have running comments without having to resort to using hooks. Something simple like:
>
> hg comment "fixed problem XYZ in mycode.py"
> hg comment "fixed problem 2 in somethingelse.py"
>
>
> Then on commit mercurial can check to see if there are any comments and prepend to the commit comments file like so:
>
> fixed problem XYZ in mycode.py
> fixed problem 2 in somethingelse.py

Keep your comments in a text file, say /tmp/commitmsg.txt.  Then use
"hg commit -l /tmp/commitmsg.txt".  Works like a charm.

Although most people would argue that problem XYZ and problem 2 really
should be separate changesets.  Just commit as you go.

Greg


More information about the Mercurial mailing list