hgeditor
changeset 665 40fd5722c669
parent 664 e1fbc1982372
child 666 0100a43788ca
equal deleted inserted replaced
664:e1fbc1982372 665:40fd5722c669
    20 
    20 
    21 if grep -q "^HG: merge resolve" "$1" ; then
    21 if grep -q "^HG: merge resolve" "$1" ; then
    22     # we don't sign merges
    22     # we don't sign merges
    23     exec $EDITOR "$1"
    23     exec $EDITOR "$1"
    24 else
    24 else
       
    25     # Remove temporary files even if we get interrupted
       
    26     trap "cleanup_exit 255" TERM KILL INT QUIT ABRT
    25     T1=`mktemp`; T2=`mktemp`
    27     T1=`mktemp`; T2=`mktemp`
    26 
    28 
    27     # Add manifest hash in order to sign whole repository state.
    29     # Add manifest hash in order to sign whole repository state.
    28     # Remove HG: prefix, as we want that to be stored.
    30     # Remove HG: prefix, as we want that to be stored.
    29     grep '^HG: manifest hash' "$1" | cut -b 5- >> "$T1"
    31     grep '^HG: manifest hash' "$1" | cut -b 5- >> "$T1"