equal
deleted
inserted
replaced
147 Test saving last-message.txt: |
147 Test saving last-message.txt: |
148 |
148 |
149 $ hg qrefresh -m "original message" |
149 $ hg qrefresh -m "original message" |
150 |
150 |
151 $ cat > $TESTTMP/commitfailure.py <<EOF |
151 $ cat > $TESTTMP/commitfailure.py <<EOF |
152 > from mercurial import util |
152 > from mercurial import error |
153 > def reposetup(ui, repo): |
153 > def reposetup(ui, repo): |
154 > class commitfailure(repo.__class__): |
154 > class commitfailure(repo.__class__): |
155 > def commit(self, *args, **kwargs): |
155 > def commit(self, *args, **kwargs): |
156 > raise util.Abort('emulating unexpected abort') |
156 > raise error.Abort('emulating unexpected abort') |
157 > repo.__class__ = commitfailure |
157 > repo.__class__ = commitfailure |
158 > EOF |
158 > EOF |
159 |
159 |
160 $ cat >> .hg/hgrc <<EOF |
160 $ cat >> .hg/hgrc <<EOF |
161 > [extensions] |
161 > [extensions] |