[PATCH 0 of 1] handling of commit messages starting with "#"

Matt Mackall mpm at selenic.com
Sun Jun 20 10:04:33 CDT 2010


On Sat, Jun 19, 2010 at 12:53:04PM +0200, Georg Brandl wrote:
> However, IMO both are still somewhat broken; for example, hg import
> will not read a commit message starting with "# " and prompt for
> a new message.
> 
> If it is accepted that commit messages starting with "# ", and
> sometimes "#", will cause problems at least for import and transplant
> (and as I just tested, it also affects mq patches), maybe hg
> should not let the user use such messages, or at least warn them.
> 
> (For transplant and maybe mq, a different format for storing the
> changesets/headers could also devised.)

This last is probably the right thing to do - add an end of headers
mark of some sort. Perhaps something like "# --". If the mark isn't
found, we take the first non-# line as the start of the message.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial-devel mailing list