D3019: subrepo: use repo['.'] instead of repo['']

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Mon Apr 2 14:48:40 EDT 2018


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

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):



To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list