Mercurial > hg
changeset 31546:b71143b10f74
debug: use tryunlink
author | Ryan McElroy <rmcelroy@fb.com> |
---|---|
date | Tue, 21 Mar 2017 06:50:28 -0700 |
parents | 82b3ec04b652 |
children | ddadb6b0b58e |
files | mercurial/debugcommands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Tue Mar 21 06:50:28 2017 -0700 +++ b/mercurial/debugcommands.py Tue Mar 21 06:50:28 2017 -0700 @@ -794,7 +794,7 @@ ui.write(('hardlink: %s\n') % (util.checknlink(path) and 'yes' or 'no')) ui.write(('case-sensitive: %s\n') % (util.fscasesensitive('.debugfsinfo') and 'yes' or 'no')) - os.unlink('.debugfsinfo') + util.tryunlink('.debugfsinfo') @command('debuggetbundle', [('H', 'head', [], _('id of head node'), _('ID')),