# HG changeset patch # User Gregory Szorc # Date 2017-12-19 05:02:49 # Node ID a4cd8f527a7f1e34770027d218afabdb9daa863d # Parent a10a0d5561a902deb2a556eb8f560a7e41b97228 githelp: clean up reflog help This referenced commands that don't exist in core. The new help isn't great since it references an experimental extension. But it is better than nothing. While we're here, also add test coverage. Differential Revision: https://phab.mercurial-scm.org/D1727 diff --git a/hgext/githelp.py b/hgext/githelp.py --- a/hgext/githelp.py +++ b/hgext/githelp.py @@ -793,9 +793,7 @@ def reflog(ui, repo, *args, **kwargs): ui.status(str(cmd), "\n\n") ui.status(_("note: in hg commits can be deleted from repo but we always" - " have backups.\n" - "Please use 'hg backups --restore' or 'hg reset'" + - " to restore from backups.\n")) + " have backups.\n")) def reset(ui, repo, *args, **kwargs): cmdoptions = [ diff --git a/tests/test-githelp.t b/tests/test-githelp.t --- a/tests/test-githelp.t +++ b/tests/test-githelp.t @@ -271,3 +271,15 @@ githelp for add note: use hg addremove to remove files that have been deleted. hg add + +githelp for reflog + + $ hg githelp -- git reflog + hg journal + + note: in hg commits can be deleted from repo but we always have backups. + + $ hg githelp -- git reflog --all + hg journal --all + + note: in hg commits can be deleted from repo but we always have backups.