changeset 49084 | ea98850a136e |
parent 49017 | f054a557aab8 |
parent 49048 | 020378f32d57 |
child 49164 | a932cad26d37 |
--- a/mercurial/debugcommands.py Fri Apr 15 11:20:49 2022 -0400 +++ b/mercurial/debugcommands.py Tue Apr 19 10:53:58 2022 -0400 @@ -2148,9 +2148,9 @@ """ if opts.get('force_free_lock'): - repo.svfs.unlink(b'lock') + repo.svfs.tryunlink(b'lock') if opts.get('force_free_wlock'): - repo.vfs.unlink(b'wlock') + repo.vfs.tryunlink(b'wlock') if opts.get('force_free_lock') or opts.get('force_free_wlock'): return 0