tests/test-mq-qfold.t
changeset 26587 56b2bcea2529
parent 23172 e955549cd045
child 26780 bbf544b5f2e9
equal deleted inserted replaced
26586:d51c658d3f04 26587:56b2bcea2529
   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]