Show More
@@ -489,6 +489,14 b" def debugcomplete(ui, cmd='', **opts):" | |||||
489 | clist.sort() |
|
489 | clist.sort() | |
490 | ui.write("%s\n" % "\n".join(clist)) |
|
490 | ui.write("%s\n" % "\n".join(clist)) | |
491 |
|
491 | |||
|
492 | def debugfsinfo(ui, path = "."): | |||
|
493 | file('.debugfsinfo', 'w').write('') | |||
|
494 | ui.write('exec: %s\n' % (util.checkexec(path) and 'yes' or 'no')) | |||
|
495 | ui.write('symlink: %s\n' % (util.checklink(path) and 'yes' or 'no')) | |||
|
496 | ui.write('case-sensitive: %s\n' % (util.checkfolding('.debugfsinfo') | |||
|
497 | and 'yes' or 'no')) | |||
|
498 | os.unlink('.debugfsinfo') | |||
|
499 | ||||
492 | def debugrebuildstate(ui, repo, rev=""): |
|
500 | def debugrebuildstate(ui, repo, rev=""): | |
493 | """rebuild the dirstate as it would look like for the given revision""" |
|
501 | """rebuild the dirstate as it would look like for the given revision""" | |
494 | if rev == "": |
|
502 | if rev == "": | |
@@ -2717,6 +2725,7 b' table = {' | |||||
2717 | [('e', 'extended', None, _('try extended date formats'))], |
|
2725 | [('e', 'extended', None, _('try extended date formats'))], | |
2718 | _('debugdate [-e] DATE [RANGE]')), |
|
2726 | _('debugdate [-e] DATE [RANGE]')), | |
2719 | "debugdata": (debugdata, [], _('debugdata FILE REV')), |
|
2727 | "debugdata": (debugdata, [], _('debugdata FILE REV')), | |
|
2728 | "debugfsinfo": (debugfsinfo, [], _('debugfsinfo [PATH]')), | |||
2720 | "debugindex": (debugindex, [], _('debugindex FILE')), |
|
2729 | "debugindex": (debugindex, [], _('debugindex FILE')), | |
2721 | "debugindexdot": (debugindexdot, [], _('debugindexdot FILE')), |
|
2730 | "debugindexdot": (debugindexdot, [], _('debugindexdot FILE')), | |
2722 | "debugrename": |
|
2731 | "debugrename": | |
@@ -2981,5 +2990,5 b' table = {' | |||||
2981 | } |
|
2990 | } | |
2982 |
|
2991 | |||
2983 | norepo = ("clone init version help debugancestor debugcomplete debugdata" |
|
2992 | norepo = ("clone init version help debugancestor debugcomplete debugdata" | |
2984 | " debugindex debugindexdot debugdate debuginstall") |
|
2993 | " debugindex debugindexdot debugdate debuginstall debugfsinfo") | |
2985 | optionalrepo = ("identify paths serve showconfig") |
|
2994 | optionalrepo = ("identify paths serve showconfig") |
General Comments 0
You need to be logged in to leave comments.
Login now