The variable $RANDOM is not POSIX so a portable /bin/sh may not define
it. When creating a directory with a random name it's better to use
mktemp, which, even though is not POSIX, exists in common Unixes
including Linux, OpenBSD, FreeBSD and MacOS X.
When using trap in a shell script, it's more portable to use signal
names, instead of numbers. Signal names (INT, KILL,...) are defined in
POSIX, whereas its corresponding numbers aren't.
Different binaries calculate MD5 checksums on different systems. Try
a couple known programs and only calculate and verify the checksum
if they exist. This should silence warnings on eg OpenBSD.
- "HG: merge resolve" isn't supported for a long time now.
- detection of unchanged commit message if signing is turned off.
- don't add manifest hash to commit message if not signing.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Revert hgeditor change to manifest bits
I'd rather have a blank line at the top.
This code primarily exists to show possible methods of signing
changesets so I'm not very concerned about conciseness or performance.
I should probably have all the signing commented out or disabled by
default.
manifest hash: 764da8d65bdaf9b45c7e3efd6cd2b4ee70979417
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFC01sdywK+sNU5EO8RAr2BAJ9Uq0XberFrYyehvmoKgE8p/j0XFQCdFPJr
DPDMbKeBHwK/yMiileBFW8o=
=DvnD
-----END PGP SIGNATURE-----
# HG changeset patch
# User Radoslaw "AstralStorm" Szkodzinski <astralstorm@gorzow.mm.pl>
# Node ID a4c688c8273e392b1bf33cfc736e00ec752a415e
# Parent be12687d4bf0ce16c4207bef85c188de66efbf53
hgeditor: Remove EMAIL default for HGUSER, comment editor selection
HGUSER is already set to EMAIL by Python code if needed
# HG changeset patch
# User Radoslaw "AstralStorm" Szkodzinski <astralstorm@gorzow.mm.pl>
# Node ID be12687d4bf0ce16c4207bef85c188de66efbf53
# Parent 341d27f865903223f8bf12382e3596167228a1c1
hgeditor: Simplify manifest hash adding
I hope no one will miss the colon.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Fixed diff generation in hgeditor if a list of files is given to hg commit.
manifest hash: 3eadc3637963778a35000fa75f229eb6b44ffc3d
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCvoRsW7P1GVgWeRoRArNpAJ4p5NQBkv1X+eHwWU7+aqoGkcqwlACgklk2
e/vr9qiIPcOVrbYViapZD9E=
=3fRb
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Improved hgeditor:
hgeditor now uses $EDITOR and sets options according to emacs/vim/...
Cleanup of temporary files.
Use simple 'hg diff' instead of calling it for every file.
Call gpg only if commit message was changed.
manifest hash: 5c56bf580f9c2ef2a7d8b680bfb73fdd3b232044
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCrowgW7P1GVgWeRoRApiOAJ0UI9/OY3yr4bv0no+KCcponSq+ZwCdFDUU
No8t9ni6/72zmlcpB13E63A=
=oSyb
-----END PGP SIGNATURE-----