tests/test-devel-warnings.t
changeset 28822 b7782424dec8
parent 28498 d09be0b8a3c6
child 29146 b175d9cc3ee8
equal deleted inserted replaced
28821:d3369dc6c1d0 28822:b7782424dec8
     9   > command = cmdutil.command(cmdtable)
     9   > command = cmdutil.command(cmdtable)
    10   > 
    10   > 
    11   > @command('buggylocking', [], '')
    11   > @command('buggylocking', [], '')
    12   > def buggylocking(ui, repo):
    12   > def buggylocking(ui, repo):
    13   >     tr = repo.transaction('buggy')
    13   >     tr = repo.transaction('buggy')
       
    14   >     # make sure we rollback the transaction as we don't want to rely on the__del__
       
    15   >     tr.release()
    14   >     lo = repo.lock()
    16   >     lo = repo.lock()
    15   >     wl = repo.wlock()
    17   >     wl = repo.wlock()
    16   >     wl.release()
    18   >     wl.release()
    17   >     lo.release()
    19   >     lo.release()
    18   > 
    20   >