Show More
@@ -1858,17 +1858,6 def copy(ui, repo, *pats, **opts): | |||||
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')), |
@@ -8,6 +8,7 | |||||
8 | from __future__ import absolute_import |
|
8 | from __future__ import absolute_import | |
9 |
|
9 | |||
10 | import operator |
|
10 | import operator | |
|
11 | import os | |||
11 | import random |
|
12 | import random | |
12 |
|
13 | |||
13 | from .i18n import _ |
|
14 | from .i18n import _ | |
@@ -585,3 +586,14 def debugfileset(ui, repo, expr, **opts) | |||||
585 |
|
586 | |||
586 | for f in ctx.getfileset(expr): |
|
587 | for f in ctx.getfileset(expr): | |
587 | ui.write("%s\n" % f) |
|
588 | ui.write("%s\n" % f) | |
|
589 | ||||
|
590 | @command('debugfsinfo', [], _('[PATH]'), norepo=True) | |||
|
591 | def debugfsinfo(ui, path="."): | |||
|
592 | """show information detected about current filesystem""" | |||
|
593 | util.writefile('.debugfsinfo', '') | |||
|
594 | ui.write(('exec: %s\n') % (util.checkexec(path) and 'yes' or 'no')) | |||
|
595 | ui.write(('symlink: %s\n') % (util.checklink(path) and 'yes' or 'no')) | |||
|
596 | ui.write(('hardlink: %s\n') % (util.checknlink(path) and 'yes' or 'no')) | |||
|
597 | ui.write(('case-sensitive: %s\n') % (util.fscasesensitive('.debugfsinfo') | |||
|
598 | and 'yes' or 'no')) | |||
|
599 | os.unlink('.debugfsinfo') |
General Comments 0
You need to be logged in to leave comments.
Login now