from mercurial import commands, extensions, util
from mercurial.i18n import _
"""Gets the version information for an extension.
This code was inspired by Django Debug Toolbar's VersionDebugPanel.
extension = extensions.find(name)
def versions(ui, **opts):
"""display the version information for Mercurial and all installed extensions
Displays only extensions with a version by default.