Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 49139:ea98850a136e
merge with stable
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 19 Apr 2022 10:53:58 -0400 |
parents | f054a557aab8 020378f32d57 |
children | a932cad26d37 |
comparison
equal
deleted
inserted
replaced
49138:1c00777702da | 49139:ea98850a136e |
---|---|
2146 Returns 0 if no locks are held. | 2146 Returns 0 if no locks are held. |
2147 | 2147 |
2148 """ | 2148 """ |
2149 | 2149 |
2150 if opts.get('force_free_lock'): | 2150 if opts.get('force_free_lock'): |
2151 repo.svfs.unlink(b'lock') | 2151 repo.svfs.tryunlink(b'lock') |
2152 if opts.get('force_free_wlock'): | 2152 if opts.get('force_free_wlock'): |
2153 repo.vfs.unlink(b'wlock') | 2153 repo.vfs.tryunlink(b'wlock') |
2154 if opts.get('force_free_lock') or opts.get('force_free_wlock'): | 2154 if opts.get('force_free_lock') or opts.get('force_free_wlock'): |
2155 return 0 | 2155 return 0 |
2156 | 2156 |
2157 locks = [] | 2157 locks = [] |
2158 try: | 2158 try: |