comparison tests/test-devel-warnings.t @ 30574:f8c9a7d2bbbf

localrepo: use ProgrammingError This is an example usage of ProgrammingError. Let's start migrating RuntimeError to ProgrammingError. The code only runs when devel.all-warnings or devel.check-locks is set, so it does not affect the end-user experience.
author Jun Wu <quark@fb.com>
date Tue, 06 Dec 2016 17:06:39 +0000
parents 4338f87dbf6f
children bc315e669a32
comparison
equal deleted inserted replaced
30573:b0ebab239f90 30574:f8c9a7d2bbbf
172 ** If that fixes the bug please report it to the extension author. 172 ** If that fixes the bug please report it to the extension author.
173 ** Python * (glob) 173 ** Python * (glob)
174 ** Mercurial Distributed SCM (*) (glob) 174 ** Mercurial Distributed SCM (*) (glob)
175 ** Extensions loaded: * (glob) 175 ** Extensions loaded: * (glob)
176 Traceback (most recent call last): 176 Traceback (most recent call last):
177 RuntimeError: programming error: transaction requires locking 177 mercurial.error.ProgrammingError: transaction requires locking
178 178
179 $ cd .. 179 $ cd ..