Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 30525:86ebd2f61c31
debugcommands: move 'debugfsinfo' in the new module
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 17 Aug 2016 20:58:16 -0700 |
parents | 1ee358c3ed26 |
children | 9c10905f4b48 |
comparison
equal
deleted
inserted
replaced
30524:1ee358c3ed26 | 30525:86ebd2f61c31 |
---|---|
1856 Returns 0 on success, 1 if errors are encountered. | 1856 Returns 0 on success, 1 if errors are encountered. |
1857 """ | 1857 """ |
1858 with repo.wlock(False): | 1858 with repo.wlock(False): |
1859 return cmdutil.copy(ui, repo, pats, opts) | 1859 return cmdutil.copy(ui, repo, pats, opts) |
1860 | 1860 |
1861 @command('debugfsinfo', [], _('[PATH]'), norepo=True) | |
1862 def debugfsinfo(ui, path="."): | |
1863 """show information detected about current filesystem""" | |
1864 util.writefile('.debugfsinfo', '') | |
1865 ui.write(('exec: %s\n') % (util.checkexec(path) and 'yes' or 'no')) | |
1866 ui.write(('symlink: %s\n') % (util.checklink(path) and 'yes' or 'no')) | |
1867 ui.write(('hardlink: %s\n') % (util.checknlink(path) and 'yes' or 'no')) | |
1868 ui.write(('case-sensitive: %s\n') % (util.fscasesensitive('.debugfsinfo') | |
1869 and 'yes' or 'no')) | |
1870 os.unlink('.debugfsinfo') | |
1871 | |
1872 @command('debuggetbundle', | 1861 @command('debuggetbundle', |
1873 [('H', 'head', [], _('id of head node'), _('ID')), | 1862 [('H', 'head', [], _('id of head node'), _('ID')), |
1874 ('C', 'common', [], _('id of common node'), _('ID')), | 1863 ('C', 'common', [], _('id of common node'), _('ID')), |
1875 ('t', 'type', 'bzip2', _('bundle compression type to use'), _('TYPE'))], | 1864 ('t', 'type', 'bzip2', _('bundle compression type to use'), _('TYPE'))], |
1876 _('REPO FILE [-H|-C ID]...'), | 1865 _('REPO FILE [-H|-C ID]...'), |