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

login
register
mail settings
Submitter phabricator
Date April 2, 2018, 6:48 p.m.
Message ID <c42778fb99fbffa2e28b526bd4e3a3ff@localhost.localdomain>
Download mbox | patch
Permalink /patch/30139/
State Not Applicable
Headers show

Comments

phabricator - April 2, 2018, 6:48 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG78e9e63c13f5: subrepo: use repo[&#039;.&#039;] instead of repo[&#039;&#039;] (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

Patch

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