Mercurial > public > mercurial-scm > hg
comparison mercurial/debugcommands.py @ 31546:b71143b10f74
debug: use tryunlink
author | Ryan McElroy <rmcelroy@fb.com> |
---|---|
date | Tue, 21 Mar 2017 06:50:28 -0700 |
parents | 468bc8a1863d |
children | 6262e30b0c09 |
comparison
equal
deleted
inserted
replaced
31545:82b3ec04b652 | 31546:b71143b10f74 |
---|---|
792 ui.write(('exec: %s\n') % (util.checkexec(path) and 'yes' or 'no')) | 792 ui.write(('exec: %s\n') % (util.checkexec(path) and 'yes' or 'no')) |
793 ui.write(('symlink: %s\n') % (util.checklink(path) and 'yes' or 'no')) | 793 ui.write(('symlink: %s\n') % (util.checklink(path) and 'yes' or 'no')) |
794 ui.write(('hardlink: %s\n') % (util.checknlink(path) and 'yes' or 'no')) | 794 ui.write(('hardlink: %s\n') % (util.checknlink(path) and 'yes' or 'no')) |
795 ui.write(('case-sensitive: %s\n') % (util.fscasesensitive('.debugfsinfo') | 795 ui.write(('case-sensitive: %s\n') % (util.fscasesensitive('.debugfsinfo') |
796 and 'yes' or 'no')) | 796 and 'yes' or 'no')) |
797 os.unlink('.debugfsinfo') | 797 util.tryunlink('.debugfsinfo') |
798 | 798 |
799 @command('debuggetbundle', | 799 @command('debuggetbundle', |
800 [('H', 'head', [], _('id of head node'), _('ID')), | 800 [('H', 'head', [], _('id of head node'), _('ID')), |
801 ('C', 'common', [], _('id of common node'), _('ID')), | 801 ('C', 'common', [], _('id of common node'), _('ID')), |
802 ('t', 'type', 'bzip2', _('bundle compression type to use'), _('TYPE'))], | 802 ('t', 'type', 'bzip2', _('bundle compression type to use'), _('TYPE'))], |