[PATCH] cmdutil: add special string that ignores rest of text

Ryan McElroy ryanmce at gmail.com
Tue Jan 3 23:40:46 UTC 2017


On Sat, Dec 31, 2016 at 9:41 PM, Sean Farley <sean at farley.io> wrote:

> # HG changeset patch
> # User Sean Farley <sean at farley.io>
> # Date 1483220196 21600
> #      Sat Dec 31 15:36:36 2016 -0600
> # Node ID bd762c3d68423f7fa9e5e2b97425ed7108e0b8fc
> # Parent  69459fdf3b1b06e4add68d4dbd36a585d818f3b1
> cmdutil: add special string that ignores rest of text
>
> Similar to git, we add a special string: "HG: ------------------------
> >8 ------------------------" that means anything below it is ignored in
> a commit message.
>
> This is helpful for integrating with third-party tools that display the
> diff in the editor buffer.
>

+1 on the feature, but this probably deserves a test
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170103/38b50427/attachment.html>


More information about the Mercurial-devel mailing list