Revert hgeditor md5sum change
authorMatt Mackall <mpm@selenic.com>
Mon, 11 Jul 2005 21:51:06 -0800
changeset 682 d6723636c1726e8b872a5dc8401944aab215e705
parent 681 32b6bbf1c37be0a1841260a5859aca07dc4c9317
child 683 104d2aee3b442f2ee4b2e9d059bc1d8981526e81
push id1
push usergszorc@mozilla.com
push dateWed, 18 Mar 2015 16:34:57 +0000
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-----
hgeditor
--- a/hgeditor
+++ b/hgeditor
@@ -37,17 +37,17 @@ else
         cd "`hg root`"
         grep '^HG: changed' "$1" | cut -b 13- | while read changed; do
             hg diff "$changed" >> "$T2"
         done
     )
 
     CHECKSUM=`md5sum "$T1"`
     $EDITOR "$T1" "$T2" || cleanup_exit $?
-    echo "$CHECKSUM" | md5sum -c --status && cleanup_exit 13
+    echo "$CHECKSUM" | md5sum -c 2>/dev/null && cleanup_exit 13
     {
         head -n 1 "$T1"
         echo
         grep -v "^HG:" "$T1" | gpg -t -a -u "${HGUSER}" --clearsign
     } > "$T2" && mv "$T2" "$1"
     cleanup_exit $?
 fi