##// END OF EJS Templates
darwin: use vim, not vi, to avoid data-loss inducing posix behavior...
Kyle Lippincott -
r45085:c23877cb stable
parent child Browse files
Show More
@@ -1914,6 +1914,12 b' class ui(object):'
1914 # instead default to E to plumb commit messages to
1914 # instead default to E to plumb commit messages to
1915 # avoid confusion.
1915 # avoid confusion.
1916 editor = b'E'
1916 editor = b'E'
1917 elif pycompat.isdarwin:
1918 # vi on darwin is POSIX compatible to a fault, and that includes
1919 # exiting non-zero if you make any mistake when running an ex
1920 # command. Proof: `vi -c ':unknown' -c ':qa'; echo $?` produces 1,
1921 # while s/vi/vim/ doesn't.
1922 editor = b'vim'
1917 else:
1923 else:
1918 editor = b'vi'
1924 editor = b'vi'
1919 return encoding.environ.get(b"HGEDITOR") or self.config(
1925 return encoding.environ.get(b"HGEDITOR") or self.config(
General Comments 0
You need to be logged in to leave comments. Login now