Use vi if $EDITOR is unset.
authorThomas Arendsen Hein <thomas@intevation.de>
Fri, 10 Jun 2005 07:52:39 +0100
changeset 304 38fb7d23b78d
parent 303 15a9e55e7ea5
child 306 f06a4a3b86a7
Use vi if $EDITOR is unset.
hgmerge
--- a/hgmerge
+++ b/hgmerge
@@ -11,6 +11,8 @@ LOCAL=$1
 BASE=$2
 OTHER=$3
 
+EDITOR="${EDITOR:-vi}"
+
 # Back up our file
 cp $LOCAL $LOCAL.orig