D2964: context: change default changeid from old form '' to '.'
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Thu Mar 29 16:46:19 UTC 2018
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
I don't think I've seen repo[''] in the codebase at least in the last
two years.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2964
AFFECTED FILES
mercurial/context.py
CHANGE DETAILS
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -415,7 +415,7 @@
"""A changecontext object makes access to data related to a particular
changeset convenient. It represents a read-only context already present in
the repo."""
- def __init__(self, repo, changeid=''):
+ def __init__(self, repo, changeid='.'):
"""changeid is a revision number, node, or tag"""
# since basectx.__new__ already took care of copying the object, we
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list