Mercurial > hg > mercurial-crew-with-dirclash
comparison hgeditor @ 663:562404de61fb
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
author | Radoslaw "AstralStorm" Szkodzinski <astralstorm@gorzow.mm.pl> |
---|---|
date | Sun, 10 Jul 2005 16:00:24 -0800 |
parents | 4fc63e22b1fe |
children | e1fbc1982372 |
comparison
equal
deleted
inserted
replaced
662:b55a78595ef6 | 663:562404de61fb |
---|---|
34 done | 34 done |
35 ) | 35 ) |
36 | 36 |
37 CHECKSUM=`md5sum "$T1"` | 37 CHECKSUM=`md5sum "$T1"` |
38 $EDITOR "$T1" "$T2" || cleanup_exit $? | 38 $EDITOR "$T1" "$T2" || cleanup_exit $? |
39 echo "$CHECKSUM" | md5sum -c 2>/dev/null && cleanup_exit 0 | 39 echo "$CHECKSUM" | md5sum -c --status && cleanup_exit 13 |
40 { | 40 { |
41 head -1 "$T1" | 41 head -n 1 "$T1" |
42 echo | 42 echo |
43 grep -v "^HG:" "$T1" | gpg -a -u "${HGUSER:-$EMAIL}" --clearsign | 43 grep -v "^HG:" "$T1" | gpg -t -a -u "${HGUSER:-$EMAIL}" --clearsign |
44 } > "$T2" && mv "$T2" "$1" | 44 } > "$T2" && mv "$T2" "$1" |
45 cleanup_exit $? | 45 cleanup_exit $? |
46 fi | 46 fi |
47 | 47 |