[PATCH 4/7] hgeditor: Remove EMAIL default for HGUSER, comment editor selection

Radoslaw AstralStorm Szkodzinski astralstorm at gorzow.mm.pl
Fri Jul 8 12:17:44 UTC 2005


# HG changeset patch
# User Radoslaw "AstralStorm" Szkodzinski <astralstorm at gorzow.mm.pl>
# Node ID a4c688c8273e392b1bf33cfc736e00ec752a415e
# Parent  be12687d4bf0ce16c4207bef85c188de66efbf53
hgeditor: Remove EMAIL default for HGUSER, comment editor selection 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hgeditor: Remove EMAIL default for HGUSER, comment editor selection 

HGUSER is already set to EMAIL by Python code if needed


Changeset summary:
 hgeditor |    4 	3 +	1 -
 1 files changed, 3 insertions(+), 1 deletion(-)

manifest hash af4c77979c86725d1fa8a369b0f5aa7f9a1348dc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1-ecc0.1.6 (GNU/Linux)

iD8DBQFCzmzMlUMEU9HxC6IRAtdyAJ9Q/BR16mSLP5z/2uk2jJl53hmA0QCfbxM4
vy2EpYHtXT1fx9kxsIqnnEM=
=Ycjc
-----END PGP SIGNATURE-----

diff -r be12687d4bf0 -r a4c688c8273e hgeditor
--- a/hgeditor	Fri Jul  8 12:05:30 2005
+++ b/hgeditor	Fri Jul  8 12:08:44 2005
@@ -9,6 +9,8 @@
     exit $1
 }
 
+# If you want to pass your favourite editor some other parameters
+# only for Mercurial, modify this:
 case "${EDITOR:=vi}" in
     emacs)
         EDITOR="$EDITOR -nw"
@@ -42,7 +44,7 @@
     {
         head -n 1 "$T1"
         echo
-        grep -v "^HG:" "$T1" | gpg -t -a -u "${HGUSER:-$EMAIL}" --clearsign
+        grep -v "^HG:" "$T1" | gpg -t -a -u "${HGUSER}" --clearsign
     } > "$T2" && mv "$T2" "$1"
     cleanup_exit $?
 fi



More information about the Mercurial mailing list