Patchwork D2964: context: change default changeid from old form '' to '.'

login
register
mail settings
Submitter phabricator
Date March 29, 2018, 6:04 p.m.
Message ID <1dba00bcf61b884371200829500949c3@localhost.localdomain>
Download mbox | patch
Permalink /patch/29940/
State Not Applicable
Headers show

Comments

phabricator - March 29, 2018, 6:04 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG05c13e5aa9ec: context: change default changeid from old form &#039;&#039; to &#039;.&#039; (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2964?vs=7362&id=7364

REVISION DETAIL
  https://phab.mercurial-scm.org/D2964

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

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