Commit Graph

20 Commits

Author SHA1 Message Date
Will Maier
398523c89b Find the system's MD5 binary.
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.
2006-07-28 13:46:19 -05:00
Thomas Arendsen Hein
df7f5fd30b Run commit message editor in the repo root (like hooks).
This makes the hgeditor script work with hg commit -R path/to/repo
2006-02-09 07:01:23 +01:00
Benoit Boissinot
b0eaf87a0b remove the gpg stuff from hgeditor (superseded by the signing extension)
remove the gpg stuff from hgeditor, update the comments to make it clear
it can be used to show a diff while commiting
2005-12-27 13:12:53 -06:00
Thomas Arendsen Hein
6fdb10d194 Don't show the diff in hgeditor if there are no changes in file contents. 2005-08-22 19:56:52 +02:00
Thomas Arendsen Hein
a40b8a51f1 Cleaned up trap handling:
- Use numbers instead of signal names
- No need to explicitly call "cleanup_exit RC" to exit with return code RC.
2005-08-04 17:43:05 +01:00
Thomas Arendsen Hein
5f67aa274a Replaced mktemp and usage of ${par:=word}. 2005-07-29 14:52:45 +01:00
mpm@selenic.com
25ec404288 hgeditor: hide checksum mismatch message from md5sum 2005-07-23 10:08:40 -05:00
Thomas Arendsen Hein
fb0e81a33b Fixes and cleanups to hgeditor:
- "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.
2005-07-22 07:30:52 +01:00
Matt Mackall
46fc83f49e Turn off signing with hgeditor by default
manifest hash: f2732475351ee22d78e0dab629db03f1f215b21f
2005-07-11 21:56:29 -08:00
Matt Mackall
ff7902e87d Revert hgeditor change to manifest bits
-----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-----
2005-07-11 21:54:37 -08:00
Matt Mackall
373738fbe0 Revert hgeditor md5sum change
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Revert hgeditor md5sum change

My copy of md5sum doesn't do --status

manifest hash 509a316ca72aca095c590fb120eb2ee8260814dd
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFC01pKywK+sNU5EO8RAkDWAJ0dWHz3Vp5oR2be9k3d1Km2Br53xgCgrBLF
Ja2tOYCu/nP4sh3CsOsIO78=
=zHkj
-----END PGP SIGNATURE-----
2005-07-11 21:51:06 -08:00
Radoslaw "AstralStorm" Szkodzinski
3a46ae804a hgeditor: Remove EMAIL default for HGUSER, comment editor selection
# 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
2005-07-10 16:00:56 -08:00
Radoslaw "AstralStorm" Szkodzinski
20c9bc8998 hgeditor: Remove temporary files even if interrupted
# HG changeset patch
# User Radoslaw "AstralStorm" Szkodzinski <astralstorm@gorzow.mm.pl>
# Node ID 1292f1fd015767d9682ba2ff5f8377fb6760c3a5
# Parent  a4c688c8273e392b1bf33cfc736e00ec752a415e
hgeditor: Remove temporary files even if interrupted

Index: hg/hgeditor
===================================================================
2005-07-10 16:00:49 -08:00
Radoslaw "AstralStorm" Szkodzinski
4ca432b9b9 hgeditor: Simplify manifest hash adding
# 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.
2005-07-10 16:00:30 -08:00
Radoslaw "AstralStorm" Szkodzinski
df02adee87 hgeditor: Fix some parameters to commands
# HG changeset patch
# User Radoslaw "AstralStorm" Szkodzinski <astralstorm@gorzow.mm.pl>
# Node ID 341d27f865903223f8bf12382e3596167228a1c1
# Parent  5c5d1484b51a53918575a199ab8985160f0ce2d7
hgeditor: Fix some parameters to commands
2005-07-10 16:00:24 -08:00
Thomas Arendsen Hein
51ae3ccedf Remove bashisms and use /bin/sh instead of /bin/bash.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Remove bashisms and use /bin/sh instead of /bin/bash.

manifest hash: 25560e04ff8ac33a6d8b82d2328b4e90578bee4c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCxOEjW7P1GVgWeRoRAm9XAJ9IjlbMerPYEhKQQu7Ufcm6630cDwCfdXJ3
865XH6YVMuCYNjf3eibwQaM=
=r3gh
-----END PGP SIGNATURE-----
2005-07-01 07:22:27 +01:00
Thomas Arendsen Hein
79292b8175 Fixed diff generation in hgeditor if a list of files is given to hg commit.
-----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-----
2005-06-26 11:33:16 +01:00
Thomas Arendsen Hein
5077823176 Improved hgeditor:
-----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-----
2005-06-14 08:49:52 +01:00
mpm@selenic.com
9cb4207872 Mark the usual things executable
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark the usual things executable

manifest hash: e55dde46fd1a97ce338c1ac71278b67ca9d96bf7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCpz5RywK+sNU5EO8RAnypAJwLpjrQ09nMSJUELtCondHI0fvuVACfQu2J
mFi9D3L9ULGO457NWB4h3kY=
=3bcD
-----END PGP SIGNATURE-----
2005-06-08 10:52:01 -08:00
mpm@selenic.com
68acd15143 Add $HGEDITOR hook and example script
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Add $HGEDITOR hook and example script

This hook makes signing commits easier.

manifest hash: ba8723e4b52323528dfa681a58658a5b4b2c02e4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCmONFywK+sNU5EO8RAj87AKCEa5r9EepdYPiYRGo/jAjjwCIcVACfeBPe
QDInXr7karo6/P8d2bM/tVU=
=rxIQ
-----END PGP SIGNATURE-----
2005-05-28 13:31:49 -08:00