[Python-apps-commits] r712 - in packages/mercurial/trunk/debian (2 files)

nenolod-guest at users.alioth.debian.org nenolod-guest at users.alioth.debian.org
Tue Feb 26 14:58:04 UTC 2008


    Date: Tuesday, February 26, 2008 @ 14:58:03
  Author: nenolod-guest
Revision: 712

patches/deb_specific__use_sensible-editor.patch: Rediff against 1.0.

Modified:
  packages/mercurial/trunk/debian/changelog
  packages/mercurial/trunk/debian/patches/deb_specific__use_sensible-editor.patch

Modified: packages/mercurial/trunk/debian/changelog
===================================================================
--- packages/mercurial/trunk/debian/changelog	2008-02-25 22:02:38 UTC (rev 711)
+++ packages/mercurial/trunk/debian/changelog	2008-02-26 14:58:03 UTC (rev 712)
@@ -13,8 +13,12 @@
   * New suggested packages:
     + python-flup (contrib/hgwebdir.fcgi)
 
- -- Vincent Danjean <vdanjean at debian.org>  Sun, 24 Feb 2008 17:08:30 +0100
+  [ William Pitcock ]
+  * patches/deb_specific__use_sensible-editor.patch:
+    Rediff against 1.0 branch.
 
+ -- William Pitcock <nenolod at sacredspiral.co.uk>  Tue, 26 Feb 2008 09:00:52 -0600
+
 mercurial (0.9.5-3) unstable; urgency=low
 
   * [debian/control]

Modified: packages/mercurial/trunk/debian/patches/deb_specific__use_sensible-editor.patch
===================================================================
--- packages/mercurial/trunk/debian/patches/deb_specific__use_sensible-editor.patch	2008-02-25 22:02:38 UTC (rev 711)
+++ packages/mercurial/trunk/debian/patches/deb_specific__use_sensible-editor.patch	2008-02-26 14:58:03 UTC (rev 712)
@@ -1,42 +1,7 @@
-Take care of $VISUAL and default to 'editor' instead of 'vi'
-fix bug #447095, #448376
-Index: mercurial-0.9.5/hgmerge
-===================================================================
---- mercurial-0.9.5.orig/hgmerge	2008-01-21 22:13:43.000000000 +0100
-+++ mercurial-0.9.5/hgmerge	2008-01-21 22:13:44.000000000 +0100
-@@ -23,7 +23,7 @@
- OTHER="$3"
- 
- if [ -z "$EDITOR" ]; then
--    EDITOR="vi"
-+    EDITOR="sensible-editor"
- fi
- 
- # find decent versions of our utilities, insisting on the GNU versions where we
-Index: mercurial-0.9.5/mercurial/commands.py
-===================================================================
---- mercurial-0.9.5.orig/mercurial/commands.py	2008-01-21 22:11:18.000000000 +0100
-+++ mercurial-0.9.5/mercurial/commands.py	2008-01-21 22:13:44.000000000 +0100
-@@ -942,11 +942,11 @@
-     ui.status(_("Checking commit editor...\n"))
-     editor = (os.environ.get("HGEDITOR") or
-               ui.config("ui", "editor") or
--              os.environ.get("EDITOR", "vi"))
-+              os.environ.get("EDITOR", "sensible-editor"))
-     cmdpath = util.find_exe(editor) or util.find_exe(editor.split()[0])
-     if not cmdpath:
--        if editor == 'vi':
--            ui.write(_(" No commit editor set and can't find vi in PATH\n"))
-+        if editor == 'sensible-editor':
-+            ui.write(_(" No commit editor set and can't find 'sensible-editor' in PATH\n"))
-             ui.write(_(" (specify a commit editor in your .hgrc file)\n"))
-         else:
-             ui.write(_(" Can't find editor '%s' in PATH\n") % editor)
-Index: mercurial-0.9.5/doc/hgrc.5.txt
-===================================================================
---- mercurial-0.9.5.orig/doc/hgrc.5.txt	2008-01-21 22:11:18.000000000 +0100
-+++ mercurial-0.9.5/doc/hgrc.5.txt	2008-01-21 22:13:44.000000000 +0100
-@@ -427,7 +427,7 @@
+diff -r 434139080ed4 doc/hgrc.5.txt
+--- a/doc/hgrc.5.txt	Mon Jan 28 22:19:12 2008 -0500
++++ b/doc/hgrc.5.txt	Tue Feb 26 08:58:59 2008 -0600
+@@ -512,7 +512,7 @@ ui::
    debug;;
      Print debugging information.  True or False.  Default is False.
    editor;;
@@ -45,11 +10,22 @@
    fallbackencoding;;
      Encoding to try if it's not possible to decode the changelog using
      UTF-8.  Default is ISO-8859-1.
-Index: mercurial-0.9.5/doc/ja/hgrc.5.ja.txt
-===================================================================
---- mercurial-0.9.5.orig/doc/ja/hgrc.5.ja.txt	2008-01-21 22:11:18.000000000 +0100
-+++ mercurial-0.9.5/doc/ja/hgrc.5.ja.txt	2008-01-21 22:13:44.000000000 +0100
-@@ -119,7 +119,7 @@
+diff -r 434139080ed4 doc/ja/hg.1.ja.txt
+--- a/doc/ja/hg.1.ja.txt	Mon Jan 28 22:19:12 2008 -0500
++++ b/doc/ja/hg.1.ja.txt	Tue Feb 26 08:58:59 2008 -0600
+@@ -813,7 +813,7 @@ EDITOR::
+ EDITOR::
+     これは hgmerge スクリプト中で使われるエディタの名前です。もし
+     HGEDITOR が設定されていなければ、コミット時のメッセージに使わ
+-    れます。デフォルトは 'vi' です。
++    れます。デフォルトは 'sensible-editor' です。
+ 
+ PYTHONPATH::
+     これはインポートされるモジュールを見つけるために Python によっ
+diff -r 434139080ed4 doc/ja/hgrc.5.ja.txt
+--- a/doc/ja/hgrc.5.ja.txt	Mon Jan 28 22:19:12 2008 -0500
++++ b/doc/ja/hgrc.5.ja.txt	Tue Feb 26 08:58:59 2008 -0600
+@@ -119,7 +119,7 @@ ui::
      では False です。
    editor;;
      コミット中に使用するエディタです。デフォルトは $EDITOR か
@@ -58,42 +34,39 @@
    interactive;;
      ユーザに対してプロンプトを出すようにします。True か False を取
      ります。デフォルトでは True です。
-Index: mercurial-0.9.5/mercurial/help.py
-===================================================================
---- mercurial-0.9.5.orig/mercurial/help.py	2008-01-21 22:11:18.000000000 +0100
-+++ mercurial-0.9.5/mercurial/help.py	2008-01-21 22:13:44.000000000 +0100
-@@ -96,7 +96,7 @@
+diff -r 434139080ed4 hgeditor
+--- a/hgeditor	Mon Jan 28 22:19:12 2008 -0500
++++ b/hgeditor	Tue Feb 26 08:58:59 2008 -0600
+@@ -7,7 +7,7 @@
+ # only for Mercurial, modify this:
+ case "${EDITOR}" in
+     "")
+-        EDITOR="vi"
++        EDITOR="sensible-editor"
+         ;;
+     emacs)
+         EDITOR="$EDITOR -nw"
+diff -r 434139080ed4 mercurial/commands.py
+--- a/mercurial/commands.py	Mon Jan 28 22:19:12 2008 -0500
++++ b/mercurial/commands.py	Tue Feb 26 08:58:59 2008 -0600
+@@ -835,8 +835,8 @@ def debuginstall(ui):
+     editor = ui.geteditor()
+     cmdpath = util.find_exe(editor) or util.find_exe(editor.split()[0])
+     if not cmdpath:
+-        if editor == 'vi':
+-            ui.write(_(" No commit editor set and can't find vi in PATH\n"))
++        if editor == 'sensible-editor':
++            ui.write(_(" No commit editor set and can't find sensible-editor in PATH\n"))
+             ui.write(_(" (specify a commit editor in your .hgrc file)\n"))
+         else:
+             ui.write(_(" Can't find editor '%s' in PATH\n") % editor)
+diff -r 434139080ed4 mercurial/ui.py
+--- a/mercurial/ui.py	Mon Jan 28 22:19:12 2008 -0500
++++ b/mercurial/ui.py	Tue Feb 26 08:58:59 2008 -0600
+@@ -476,5 +476,5 @@ class ui(object):
+         return (os.environ.get("HGEDITOR") or
+                 self.config("ui", "editor") or
+                 os.environ.get("VISUAL") or
+-                os.environ.get("EDITOR", "vi"))
++                os.environ.get("EDITOR", "sensible-editor"))
  
- EDITOR::
-     This is the name of the editor used in the hgmerge script. It will be
--    used for commit messages if HGEDITOR isn't set. Defaults to 'vi'.
-+    used for commit messages if HGEDITOR isn't set. Defaults to 'sensible-editor'.
- 
- PYTHONPATH::
-     This is used by Python to find imported modules and may need to be set
-Index: mercurial-0.9.5/mercurial/ui.py
-===================================================================
---- mercurial-0.9.5.orig/mercurial/ui.py	2008-01-21 22:11:18.000000000 +0100
-+++ mercurial-0.9.5/mercurial/ui.py	2008-01-21 22:13:44.000000000 +0100
-@@ -437,7 +437,7 @@
- 
-             editor = (os.environ.get("HGEDITOR") or
-                     self.config("ui", "editor") or
--                    os.environ.get("EDITOR", "vi"))
-+                    os.environ.get("EDITOR", "sensible-editor"))
- 
-             util.system("%s \"%s\"" % (editor, name),
-                         environ={'HGUSER': user},
-Index: mercurial-0.9.5/doc/ja/hg.1.ja.txt
-===================================================================
---- mercurial-0.9.5.orig/doc/ja/hg.1.ja.txt	2008-01-21 22:13:57.000000000 +0100
-+++ mercurial-0.9.5/doc/ja/hg.1.ja.txt	2008-01-21 22:14:07.000000000 +0100
-@@ -813,7 +813,7 @@
- EDITOR::
-     これは hgmerge スクリプト中で使われるエディタの名前です。もし
-     HGEDITOR が設定されていなければ、コミット時のメッセージに使わ
--    れます。デフォルトは 'vi' です。
-+    れます。デフォルトは 'sensible-editor' です。
- 
- PYTHONPATH::
-     これはインポートされるモジュールを見つけるために Python によっ




More information about the Python-apps-commits mailing list