changeset 37154:05c13e5aa9ec

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
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 29 Mar 2018 09:34:17 -0700
parents 335e19c6b7fa
children 0348c778bf70
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Wed Mar 21 23:36:11 2018 +0530
+++ b/mercurial/context.py	Thu Mar 29 09:34:17 2018 -0700
@@ -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