# HG changeset patch # User Martin von Zweigbergk # Date 1522685881 25200 # Node ID de4849b67fe04ad454ee0e0a14437db84d0b284e # Parent 32857300846c6c42570565138b5371e46634f9da context: drop support for changeid='' (API) Since the previous commit, there seem to be no users who pass '' to repo.__getitem__, so let's drop support for it. It may seem like a small cost to keep support for it, but I've spent time being confused by it twice already. Differential Revision: https://phab.mercurial-scm.org/D3021 diff -r 32857300846c -r de4849b67fe0 mercurial/context.py --- a/mercurial/context.py Mon Apr 02 08:43:08 2018 -0700 +++ b/mercurial/context.py Mon Apr 02 09:18:01 2018 -0700 @@ -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)