configure external editor a script

Uwe Brauer oub at mat.ucm.es
Wed Oct 19 13:14:15 UTC 2016


Hi

Following
https://stackoverflow.com/questions/4291826/how-do-i-customize-the-commit-message-file-generated-by-hg-commit
I tried the following

editor = /home/oub/scripts/hg-commit-editor

With

#!/bin/sh
hg status --unknown | sed -e 's|^|HG: |' >> $1
/opt/emacs25/bin/emacsclient $1

Still the file for the commit message is opened in /tmp not in the local
repo directory.

Any comments?

Uwe Brauer 



More information about the Mercurial mailing list