Mercurial > hg
view tests/test-notify-changegroup @ 8071:9f14b66830a8
transaction: only delete journal on successful abort/commit
This solves that the journal file was always deleted when the transaction
was deleted, no matter whether the abort (rollback) succeeded or not.
Thus, never supporting a hg recover. The journal file is now only deleted
on close (commit) or a successful abort.
author | Henrik Stuart <henrik.stuart@edlund.dk> |
---|---|
date | Thu, 16 Apr 2009 15:41:25 +0200 |
parents | b714aac1f7b3 |
children | ca6ede0988d5 |
line wrap: on
line source
#!/bin/sh cat <<EOF >> $HGRCPATH [extensions] notify= [hooks] changegroup.notify = python:hgext.notify.hook [notify] sources = push diffstat = False maxsubject = 200 [usersubs] foo@bar = * [reposubs] * = baz EOF hg init a echo % clone hg --traceback clone a b echo a > b/a echo % commit hg --traceback --cwd b commit -Ama echo a >> b/a echo % commit hg --traceback --cwd b commit -Amb echo % push hg --traceback --cwd b push ../a 2>&1 | python -c 'import sys,re; print re.sub("\n\t", " ", sys.stdin.read()),' | sed -e 's/\(Message-Id:\).*/\1/' \ -e 's/changeset \([0-9a-f]* *\)in .*test-notif/changeset \1in test-notif/' \ -e 's/^Subject: .*test-notify/Subject: test-notify/' \ -e 's/^details: .*test-notify/details: test-notify/' \ -e 's/^Date:.*/Date:/'