comparison mercurial/commands.py @ 19616:f959b60e3025

debugfs: add hardlink support reporting
author Matt Mackall <mpm@selenic.com>
date Wed, 14 Aug 2013 12:42:22 -0500
parents f37b5a17e6a0
children ff00839e8bb3
comparison
equal deleted inserted replaced
19615:77d434760857 19616:f959b60e3025
1921 def debugfsinfo(ui, path = "."): 1921 def debugfsinfo(ui, path = "."):
1922 """show information detected about current filesystem""" 1922 """show information detected about current filesystem"""
1923 util.writefile('.debugfsinfo', '') 1923 util.writefile('.debugfsinfo', '')
1924 ui.write(('exec: %s\n') % (util.checkexec(path) and 'yes' or 'no')) 1924 ui.write(('exec: %s\n') % (util.checkexec(path) and 'yes' or 'no'))
1925 ui.write(('symlink: %s\n') % (util.checklink(path) and 'yes' or 'no')) 1925 ui.write(('symlink: %s\n') % (util.checklink(path) and 'yes' or 'no'))
1926 ui.write(('hardlink: %s\n') % (util.checknlink(path) and 'yes' or 'no'))
1926 ui.write(('case-sensitive: %s\n') % (util.checkcase('.debugfsinfo') 1927 ui.write(('case-sensitive: %s\n') % (util.checkcase('.debugfsinfo')
1927 and 'yes' or 'no')) 1928 and 'yes' or 'no'))
1928 os.unlink('.debugfsinfo') 1929 os.unlink('.debugfsinfo')
1929 1930
1930 @command('debuggetbundle', 1931 @command('debuggetbundle',