diff --git a/mercurial_keyring.py b/mercurial_keyring.py --- a/mercurial_keyring.py +++ b/mercurial_keyring.py @@ -680,7 +680,7 @@ def _smtp(ui): def cmd_keyring_check(ui, repo, *path_args, **opts): """ Prints basic info (whether password is currently saved, and how is - it identified) for given path or all defined repo paths. + it identified) for given path or for all defined repo paths which are HTTP. """ import re @@ -718,11 +718,23 @@ def cmd_keyring_check(ui, repo, *path_ar name, final_url)) +def cmd_keyring_clear(ui, repo, path, **opts): + """ + Drops password bound to given path (if any). + """ + # TODO + ui.status(_("Not yet implemented")) + cmdtable = { "keyring_check": ( cmd_keyring_check, [], + "keyring_check [PATH]", + ), + "keyring_clear": ( + cmd_keyring_clear, + [], "keyring_check PATH", ), }