diff mercurial/debugcommands.py @ 35394:a43b2dd95e4f

debuglocks: add tests (and fix typo in early return)
author Paul Morelle <paul.morelle@octobus.net>
date Sun, 12 Nov 2017 15:34:19 +0100
parents 9144e898cad5
children 12055fb3ba30
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Sun Dec 10 22:50:57 2017 -0500
+++ b/mercurial/debugcommands.py	Sun Nov 12 15:34:19 2017 +0100
@@ -1302,7 +1302,7 @@
         repo.svfs.unlink('lock')
     if opts.get(r'force_wlock'):
         repo.vfs.unlink('wlock')
-    if opts.get(r'force_lock') or opts.get(r'force_lock'):
+    if opts.get(r'force_lock') or opts.get(r'force_wlock'):
         return 0
 
     now = time.time()