--- a/tests/test-devel-warnings.t Tue Jul 11 12:27:58 2017 +0200
+++ b/tests/test-devel-warnings.t Tue Jul 11 12:38:17 2017 +0200
@@ -44,6 +44,11 @@
> wl.release()
> lo.release()
>
+ > @command(b'no-wlock-write', [], '')
+ > def nowlockwrite(ui, repo):
+ > with repo.vfs(b'branch', 'a'):
+ > pass
+ >
> @command(b'stripintr', [], '')
> def stripintr(ui, repo):
> lo = repo.lock()
@@ -104,6 +109,11 @@
$ hg properlocking
$ hg nowaitlocking
+Writing without lock
+
+ $ hg no-wlock-write
+ devel-warn: write with no wlock: "branch" at: $TESTTMP/buggylocking.py:* (nowlockwrite) (glob)
+
Stripping from a transaction
$ echo a > a