# HG changeset patch # User Martin von Zweigbergk # Date 2018-04-02 15:43:08 # Node ID 32857300846c6c42570565138b5371e46634f9da # Parent 9233620105258d52736d8041133bf6276a1c034e subrepo: use repo['.'] instead of repo[''] The "state" value (a revision) passed to abstractsubrepo.phase() can be '' to represent the currently checked out revisions. Let's convert that to the more common '.'. I think this is the last of use of repo['.'] in core. Differential Revision: https://phab.mercurial-scm.org/D3019 diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -603,7 +603,7 @@ class hgsubrepo(abstractsubrepo): @annotatesubrepoerror def phase(self, state): - return self._repo[state].phase() + return self._repo[state or '.'].phase() @annotatesubrepoerror def remove(self):