D1727: githelp: clean up reflog help
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Tue Dec 19 05:36:47 UTC 2017
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
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.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D1727
AFFECTED FILES
hgext/githelp.py
tests/test-githelp.t
CHANGE DETAILS
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
@@ -787,9 +787,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 = [
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list