# HG changeset patch # User Martin von Zweigbergk # Date 2018-03-29 16:34:17 # Node ID 05c13e5aa9ec99093af8f79130a89160baf1374d # Parent 335e19c6b7fafcc249a1c5a349d2764bfaf6f50f context: change default changeid from old form '' to '.' I don't think I've seen repo[''] in the codebase at least in the last two years. Differential Revision: https://phab.mercurial-scm.org/D2964 diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -415,7 +415,7 @@ class changectx(basectx): """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