Show More
@@ -788,14 +788,17 def debugfileset(ui, repo, expr, **opts) | |||
|
788 | 788 | @command('debugfsinfo', [], _('[PATH]'), norepo=True) |
|
789 | 789 | def debugfsinfo(ui, path="."): |
|
790 | 790 | """show information detected about current filesystem""" |
|
791 | util.writefile('.debugfsinfo', '') | |
|
792 | 791 | ui.write(('exec: %s\n') % (util.checkexec(path) and 'yes' or 'no')) |
|
793 | 792 | ui.write(('fstype: %s\n') % (util.getfstype(path) or '(unknown)')) |
|
794 | 793 | ui.write(('symlink: %s\n') % (util.checklink(path) and 'yes' or 'no')) |
|
795 | 794 | ui.write(('hardlink: %s\n') % (util.checknlink(path) and 'yes' or 'no')) |
|
796 | ui.write(('case-sensitive: %s\n') % (util.fscasesensitive('.debugfsinfo') | |
|
797 | and 'yes' or 'no')) | |
|
798 | util.tryunlink('.debugfsinfo') | |
|
795 | casesensitive = '(unknown)' | |
|
796 | try: | |
|
797 | with tempfile.NamedTemporaryFile(prefix='.debugfsinfo', dir=path) as f: | |
|
798 | casesensitive = util.fscasesensitive(f.name) and 'yes' or 'no' | |
|
799 | except OSError: | |
|
800 | pass | |
|
801 | ui.write(('case-sensitive: %s\n') % casesensitive) | |
|
799 | 802 | |
|
800 | 803 | @command('debuggetbundle', |
|
801 | 804 | [('H', 'head', [], _('id of head node'), _('ID')), |
General Comments 0
You need to be logged in to leave comments.
Login now