# HG changeset patch # User Ryan McElroy # Date 1490104228 25200 # Node ID b71143b10f74fa4316e6bdfc26a16b2179f2c2ea # Parent 82b3ec04b652276bb2c799fd42257ffe7ac879bc debug: use tryunlink diff -r 82b3ec04b652 -r b71143b10f74 mercurial/debugcommands.py --- 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')),