Commit c2c3c450 authored by Matt Harbison's avatar Matt Harbison

manifestmodel: use scmutil.revsymbol() to translate subrepo state to context

Yet another ProgrammingError in __getitem()__ complaining '' isn't supported.  I
can't effectively test this because fiddling with the manifest view crashes
thg.exe with the PyQt libraries that I have available locally.

--HG--
branch : stable
parent cd58b6284e03
......@@ -31,6 +31,7 @@ from .qtgui import (
from mercurial import (
error,
match as matchmod,
scmutil,
)
from ..util import hglib
......@@ -650,8 +651,8 @@ def _populatesubrepos(roote, repo, nodeop, statusfilter, match):
smatch = matchmod.subdirmatcher(path, match)
try:
srepo = ctx.sub(path)._repo
e.ctx = srepo[substate[1]]
e.pctx = srepo[psubstate[1] or 'null']
e.ctx = scmutil.revsymbol(srepo, substate[1])
e.pctx = scmutil.revsymbol(srepo, psubstate[1] or 'null')
_populaterepo(e, srepo, nodeop, statusfilter, smatch)
except (error.RepoError, EnvironmentError):
pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment