Mercurial > hg
changeset 37267:de4849b67fe0
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
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 02 Apr 2018 09:18:01 -0700 |
parents | 32857300846c |
children | a53b87e20132 |
files | mercurial/context.py |
diffstat | 1 files changed, 0 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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)