D595: cmdutil: rectify comment in amend
singhsrb (Saurabh Singh)
phabricator at mercurial-scm.org
Thu Aug 31 22:01:40 EDT 2017
singhsrb created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Comment was ambiguous as there can be two parents of a changeset in mercurial.
This commit fixes the comment to clarify that the first parent is being
considered.
TEST PLAN
ran the test suite
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D595
AFFECTED FILES
mercurial/cmdutil.py
CHANGE DETAILS
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -3067,7 +3067,7 @@
# |
# old o - changeset to amend
# |
- # base o - parent of amending changeset
+ # base o - first parent of the changeset to amend
# Update extra dict from amended commit (e.g. to preserve graft
# source)
To: singhsrb, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list