[PATCH 2 of 2] crecord: use ui.interface to choose curses interface

Augie Fackler raf at durin42.com
Wed Mar 16 12:51:15 EDT 2016


On Thu, Mar 10, 2016 at 07:47:38PM +0000, Simon Farnsworth wrote:
> # HG changeset patch
> # User Simon Farnsworth <simonfar at fb.com>
> # Date 1457639167 0
> #      Thu Mar 10 19:46:07 2016 +0000
> # Node ID ea0ec33267d78c83288160a57056637e53fd2644
> # Parent  77d0ac209cc8555d887b35313fad25e947aab7fa
> crecord: use ui.interface to choose curses interface

I'm happy with these, queued. Thanks for going through the effort of 5 rounds!

>
> use ui.interface to select curses mode, instead of experimental.crecord
>
> diff --git a/mercurial/crecord.py b/mercurial/crecord.py
> --- a/mercurial/crecord.py
> +++ b/mercurial/crecord.py
> @@ -54,7 +54,7 @@
>      This method returns True if curses is found (and that python is built with
>      it) and that the user has the correct flag for the ui.
>      """
> -    return curses and ui.configbool('experimental', 'crecord', False)
> +    return curses and ui.interface("chunkselection") == "curses"
>
>  _origstdout = sys.__stdout__ # used by gethw()
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list