1

I have been using mercurial for a few months now and just the other day when I went to do an hg commit, my editor launched but with an empty file named something like "/tmp/hg-editor-I48e8Z.txt" and in my terminal it automatically returned an "abort: empty commit message" error.

It had been working fine and it still works fine for other users on the same machine. The only way I've been able to commit is to specify the commit message at the command line. I really don't like doing that because I like that I can double-check which files will be included in the changeset when the editor pops up.

Does anyone know what may have caused this/how to fix this?

This is on a Redhat Linux machine, Mercurial version 1.

4

2 回答 2

1

当然,我刚刚发现它是什么......

我错误地设置了我的EDITORVISUAL环境变量。

于 2013-05-10T13:08:12.290 回答
1

我使用 gvim。和:

export EDITOR = gvim

我有问题。更改为:

export EDITOR = 'gvim -f'

解决了这个问题。

于 2016-03-16T22:04:49.390 回答