From patchwork Mon Apr 2 18:48:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3019: subrepo: use repo['.'] instead of repo[''] From: phabricator X-Patchwork-Id: 30139 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Mon, 2 Apr 2018 18:48:40 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG78e9e63c13f5: subrepo: use repo['.'] instead of repo[''] (authored by martinvonz, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3019?vs=7510&id=7518 REVISION DETAIL https://phab.mercurial-scm.org/D3019 AFFECTED FILES mercurial/subrepo.py CHANGE DETAILS To: martinvonz, #hg-reviewers, pulkit Cc: mercurial-devel diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -603,7 +603,7 @@ @annotatesubrepoerror def phase(self, state): - return self._repo[state].phase() + return self._repo[state or '.'].phase() @annotatesubrepoerror def remove(self):