tests/test-devel-warnings.t
changeset 28016 a2be6f0f58fb
parent 27275 f2cd240f2f7c
child 28498 d09be0b8a3c6
equal deleted inserted replaced
28015:a036e1ae1fbe 28016:a2be6f0f58fb
    68   > EOF
    68   > EOF
    69 
    69 
    70   $ hg init lock-checker
    70   $ hg init lock-checker
    71   $ cd lock-checker
    71   $ cd lock-checker
    72   $ hg buggylocking
    72   $ hg buggylocking
    73   devel-warn: transaction with no lock at: $TESTTMP/buggylocking.py:11 (buggylocking)
    73   devel-warn: transaction with no lock at: $TESTTMP/buggylocking.py:* (buggylocking) (glob)
    74   devel-warn: "wlock" acquired after "lock" at: $TESTTMP/buggylocking.py:13 (buggylocking)
    74   devel-warn: "wlock" acquired after "lock" at: $TESTTMP/buggylocking.py:* (buggylocking) (glob)
    75   $ cat << EOF >> $HGRCPATH
    75   $ cat << EOF >> $HGRCPATH
    76   > [devel]
    76   > [devel]
    77   > all=0
    77   > all=0
    78   > check-locks=1
    78   > check-locks=1
    79   > EOF
    79   > EOF
    80   $ hg buggylocking
    80   $ hg buggylocking
    81   devel-warn: transaction with no lock at: $TESTTMP/buggylocking.py:11 (buggylocking)
    81   devel-warn: transaction with no lock at: $TESTTMP/buggylocking.py:* (buggylocking) (glob)
    82   devel-warn: "wlock" acquired after "lock" at: $TESTTMP/buggylocking.py:13 (buggylocking)
    82   devel-warn: "wlock" acquired after "lock" at: $TESTTMP/buggylocking.py:* (buggylocking) (glob)
    83   $ hg buggylocking --traceback
    83   $ hg buggylocking --traceback
    84   devel-warn: transaction with no lock at:
    84   devel-warn: transaction with no lock at:
    85    */hg:* in * (glob)
    85    */hg:* in * (glob)
    86    */mercurial/dispatch.py:* in run (glob)
    86    */mercurial/dispatch.py:* in run (glob)
    87    */mercurial/dispatch.py:* in dispatch (glob)
    87    */mercurial/dispatch.py:* in dispatch (glob)
   110 
   110 
   111   $ echo a > a
   111   $ echo a > a
   112   $ hg add a
   112   $ hg add a
   113   $ hg commit -m a
   113   $ hg commit -m a
   114   $ hg stripintr
   114   $ hg stripintr
   115   saved backup bundle to $TESTTMP/lock-checker/.hg/strip-backup/cb9a9f314b8b-cc5ccb0b-backup.hg (glob)
   115   saved backup bundle to $TESTTMP/lock-checker/.hg/strip-backup/*-backup.hg (glob)
   116   abort: programming error: cannot strip from inside a transaction
   116   abort: programming error: cannot strip from inside a transaction
   117   (contact your extension maintainer)
   117   (contact your extension maintainer)
   118   [255]
   118   [255]
   119 
   119 
   120   $ hg log -r "oldstyle()" -T '{rev}\n'
   120   $ hg log -r "oldstyle()" -T '{rev}\n'
   121   devel-warn: revset "oldstyle" use list instead of smartset, (upgrade your code) at: */mercurial/revset.py:* (mfunc) (glob)
   121   devel-warn: revset "oldstyle" use list instead of smartset, (upgrade your code) at: */mercurial/revset.py:* (mfunc) (glob)
   122   0
   122   0
   123   $ hg oldanddeprecated
   123   $ hg oldanddeprecated
   124   devel-warn: foorbar is deprecated, go shopping
   124   devel-warn: foorbar is deprecated, go shopping
   125   (compatibility will be dropped after Mercurial-42.1337, update your code.) at: $TESTTMP/buggylocking.py:53 (oldanddeprecated)
   125   (compatibility will be dropped after Mercurial-42.1337, update your code.) at: $TESTTMP/buggylocking.py:* (oldanddeprecated) (glob)
   126 
   126 
   127   $ hg oldanddeprecated --traceback
   127   $ hg oldanddeprecated --traceback
   128   devel-warn: foorbar is deprecated, go shopping
   128   devel-warn: foorbar is deprecated, go shopping
   129   (compatibility will be dropped after Mercurial-42.1337, update your code.) at:
   129   (compatibility will be dropped after Mercurial-42.1337, update your code.) at:
   130    */hg:* in <module> (glob)
   130    */hg:* in <module> (glob)