equal
deleted
inserted
replaced
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() |