Show More
@@ -23,17 +23,9 b' case "${EDITOR:=vi}" in' | |||
|
23 | 23 | ;; |
|
24 | 24 | esac |
|
25 | 25 | |
|
26 | if grep -q "^HG: merge resolve" "$1" ; then | |
|
27 | # we don't sign merges | |
|
28 | exec $EDITOR "$1" | |
|
29 | else | |
|
30 | 26 |
|
|
31 | 27 |
|
|
32 | 28 |
|
|
33 | MANIFEST=`grep '^HG: manifest hash' "$1" | cut -b 19-` | |
|
34 | ||
|
35 | echo -e "\n\nmanifest hash: $MANIFEST" >> "$T1" | |
|
36 | grep -vE '^(HG: manifest hash .*)?$' "$1" >> "$T1" | |
|
37 | 29 | ( |
|
38 | 30 |
|
|
39 | 31 |
|
@@ -41,11 +33,18 b' else' | |||
|
41 | 33 |
|
|
42 | 34 | ) |
|
43 | 35 | |
|
36 | echo > "$T1" | |
|
37 | if [ "$SIGN" == "1" ]; then | |
|
38 | MANIFEST=`grep '^HG: manifest hash' "$1" | cut -b 19-` | |
|
39 | echo -e "\nmanifest hash: $MANIFEST" >> "$T1" | |
|
40 | fi | |
|
41 | grep -vE '^(HG: manifest hash .*)?$' "$1" >> "$T1" | |
|
42 | ||
|
44 | 43 |
|
|
45 | 44 |
|
|
45 | echo "$CHECKSUM" | md5sum -c 2>/dev/null && cleanup_exit 13 | |
|
46 | 46 | |
|
47 | 47 |
|
|
48 | echo "$CHECKSUM" | md5sum -c 2>/dev/null && cleanup_exit 13 | |
|
49 | 48 | { |
|
50 | 49 |
|
|
51 | 50 |
|
@@ -54,6 +53,5 b' else' | |||
|
54 | 53 |
|
|
55 | 54 |
|
|
56 | 55 | fi |
|
56 | ||
|
57 | 57 |
|
|
58 | fi | |
|
59 |
General Comments 0
You need to be logged in to leave comments.
Login now