tests/test-devel-warnings.t
changeset 32337 46ba2cdda476
parent 32040 0fb78cb90ca7
child 32340 9c023179e8d0
equal deleted inserted replaced
32336:ff874d34c856 32337:46ba2cdda476
     1 
     1 
     2   $ cat << EOF > buggylocking.py
     2   $ cat << EOF > buggylocking.py
     3   > """A small extension that tests our developer warnings
     3   > """A small extension that tests our developer warnings
     4   > """
     4   > """
     5   > 
     5   > 
     6   > from mercurial import cmdutil, repair, util
     6   > from mercurial import registrar, repair, util
     7   > 
     7   > 
     8   > cmdtable = {}
     8   > cmdtable = {}
     9   > command = cmdutil.command(cmdtable)
     9   > command = registrar.command(cmdtable)
    10   > 
    10   > 
    11   > @command('buggylocking', [], '')
    11   > @command('buggylocking', [], '')
    12   > def buggylocking(ui, repo):
    12   > def buggylocking(ui, repo):
    13   >     lo = repo.lock()
    13   >     lo = repo.lock()
    14   >     wl = repo.wlock()
    14   >     wl = repo.wlock()