Update mercurial to 1.5.1

Changed the default commit editor to nano
This commit is contained in:
Chris Roberts
2010-05-01 05:57:10 +00:00
parent 4e880e7882
commit bb3e3bb491
3 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
DESCRIPTION="Mercurial is a free, distributed source control management tool"
HOMEPAGE="http://mercurial.selenic.com/"
SRC_URI="http://mercurial.selenic.com/release/mercurial-1.5.1.tar.gz"
CHECKSUM_MD5="22eac5602d777f9601e23700e641503f"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd mercurial-1.5.1
python setup.py build --force
}
INSTALL {
cd mercurial-1.5.1
if [ -n ${DESTDIR} ];then
python setup.py install --root="${DESTDIR}" --prefix="/boot/common" --force
else
python setup.py install --prefix="/boot/common" --force
fi
}

View File

@@ -1,5 +1,5 @@
Package: Mercurial
Version: 1.5
Version: 1.5.1
Copyright: 2005-2010 Matt Mackall et al.
License: GNU GPL v2
URL: http://mercurial.selenic.com

View File

@@ -0,0 +1,12 @@
diff -up mercurial-1.5.1/mercurial/ui.py.orig mercurial-1.5.1/mercurial/ui.py
--- mercurial-1.5.1/mercurial/ui.py.orig 2010-04-30 23:51:42.741605376 -0600
+++ mercurial-1.5.1/mercurial/ui.py 2010-04-30 23:52:08.309854208 -0600
@@ -384,7 +384,7 @@ 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", "nano"))
def progress(self, topic, pos, item="", unit="", total=None):
'''show a progress message