equal
deleted
inserted
replaced
987 fullname = ':' + name |
987 fullname = ':' + name |
988 internals[fullname] = func |
988 internals[fullname] = func |
989 internals['internal:' + name] = func |
989 internals['internal:' + name] = func |
990 internalsdoc[fullname] = func |
990 internalsdoc[fullname] = func |
991 |
991 |
|
992 capabilities = sorted([k for k, v in func.capabilities.items() if v]) |
|
993 if capabilities: |
|
994 capdesc = _("(actual capabilities: %s)") % ', '.join(capabilities) |
|
995 func.__doc__ = (func.__doc__ + |
|
996 pycompat.sysstr("\n\n %s" % capdesc)) |
|
997 |
992 # load built-in merge tools explicitly to setup internalsdoc |
998 # load built-in merge tools explicitly to setup internalsdoc |
993 loadinternalmerge(None, None, internaltool) |
999 loadinternalmerge(None, None, internaltool) |
994 |
1000 |
995 # tell hggettext to extract docstrings from these functions: |
1001 # tell hggettext to extract docstrings from these functions: |
996 i18nfunctions = internals.values() |
1002 i18nfunctions = internals.values() |