Patchwork [stable] debian: configure editor and pager to sensible-\1 by default

login
register
mail settings
Submitter Augie Fackler
Date April 22, 2017, 6:19 p.m.
Message ID <b5b6bd456279f011ec94.1492885148@imladris.local>
Download mbox | patch
Permalink /patch/20278/
State Superseded
Headers show

Comments

Augie Fackler - April 22, 2017, 6:19 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1492878557 14400
#      Sat Apr 22 12:29:17 2017 -0400
# Branch stable
# Node ID b5b6bd456279f011ec94f2a16a708d2833dd8119
# Parent  befefdd34cf80d4604ee96899196d946a0058e9f
debian: configure editor and pager to sensible-\1 by default

Now that environment variables override system-wide hgrc settings, we
can default Mercurial to sensible-editor and sensible-pager by default
for debian users.
Yuya Nishihara - April 23, 2017, 11:07 a.m.
On Sat, 22 Apr 2017 14:19:08 -0400, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <augie@google.com>
> # Date 1492878557 14400
> #      Sat Apr 22 12:29:17 2017 -0400
> # Branch stable
> # Node ID b5b6bd456279f011ec94f2a16a708d2833dd8119
> # Parent  befefdd34cf80d4604ee96899196d946a0058e9f
> debian: configure editor and pager to sensible-\1 by default
> 
> Now that environment variables override system-wide hgrc settings, we
> can default Mercurial to sensible-editor and sensible-pager by default
> for debian users.
> 
> diff --git a/contrib/debian/default-tools.rc b/contrib/debian/default-tools.rc
> new file mode 100644
> --- /dev/null
> +++ b/contrib/debian/default-tools.rc
> @@ -0,0 +1,3 @@
> +[ui]
> +editor = sensible-editor
> +pager = sensible-pager

should be "[pager] pager =".

  [ui]
  editor =
  color =

but ugh,

  [pager]
  pager =

This seems a bit confusing. ;)
Augie Fackler - April 23, 2017, 1:30 p.m.
> On Apr 23, 2017, at 7:07 AM, Yuya Nishihara <yuya@tcha.org> wrote:
> 
> On Sat, 22 Apr 2017 14:19:08 -0400, Augie Fackler wrote:
>> # HG changeset patch
>> # User Augie Fackler <augie@google.com>
>> # Date 1492878557 14400
>> #      Sat Apr 22 12:29:17 2017 -0400
>> # Branch stable
>> # Node ID b5b6bd456279f011ec94f2a16a708d2833dd8119
>> # Parent  befefdd34cf80d4604ee96899196d946a0058e9f
>> debian: configure editor and pager to sensible-\1 by default
>> 
>> Now that environment variables override system-wide hgrc settings, we
>> can default Mercurial to sensible-editor and sensible-pager by default
>> for debian users.
>> 
>> diff --git a/contrib/debian/default-tools.rc b/contrib/debian/default-tools.rc
>> new file mode 100644
>> --- /dev/null
>> +++ b/contrib/debian/default-tools.rc
>> @@ -0,0 +1,3 @@
>> +[ui]
>> +editor = sensible-editor
>> +pager = sensible-pager
> 
> should be "[pager] pager =".
> 
>  [ui]
>  editor =
>  color =
> 
> but ugh,
> 
>  [pager]
>  pager =
> 
> This seems a bit confusing. ;)

Indeed. Ugh. v2 on its way.

Patch

diff --git a/contrib/debian/default-tools.rc b/contrib/debian/default-tools.rc
new file mode 100644
--- /dev/null
+++ b/contrib/debian/default-tools.rc
@@ -0,0 +1,3 @@ 
+[ui]
+editor = sensible-editor
+pager = sensible-pager