#!/bin/sh echo "[extensions]" >> $HGRCPATH echo "mq=" >> $HGRCPATH cat > $HGTMP/false < foo hg add foo # mq may keep a reference to the repository so __del__ will not be called # and .hg/journal.dirstate will not be deleted: HGEDITOR=$HGTMP/false hg ci HGEDITOR=$HGTMP/false hg ci exit 0