From patchwork Sat Dec 23 01:40:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D1727: githelp: clean up reflog help From: phabricator X-Patchwork-Id: 26419 Message-Id: <5eea6e12b1acfed2ff563e84ec08107a@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Sat, 23 Dec 2017 01:40:00 +0000 indygreg updated this revision to Diff 4595. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D1727?vs=4546&id=4595 REVISION DETAIL https://phab.mercurial-scm.org/D1727 AFFECTED FILES hgext/githelp.py tests/test-githelp.t CHANGE DETAILS To: indygreg, #hg-reviewers, durin42 Cc: mercurial-devel 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 @@ 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. diff --git a/hgext/githelp.py b/hgext/githelp.py --- a/hgext/githelp.py +++ b/hgext/githelp.py @@ -794,9 +794,7 @@ 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 = [