Patchwork D3021: context: drop support for changeid='' (API)

login
register
mail settings
Submitter phabricator
Date April 2, 2018, 6:48 p.m.
Message ID <2729880176574b3371a59717b2b546f6@localhost.localdomain>
Download mbox | patch
Permalink /patch/30141/
State Not Applicable
Headers show

Comments

phabricator - April 2, 2018, 6:48 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG21811e4643ea: context: drop support for changeid=&#039;&#039; (API) (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3021?vs=7512&id=7519

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

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
@@ -411,9 +411,6 @@ 
         """changeid is a revision number, node, or tag"""
         super(changectx, self).__init__(repo)
 
-        if changeid == '':
-            changeid = '.'
-
         try:
             if isinstance(changeid, int):
                 self._node = repo.changelog.node(changeid)