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.

branch : stable
parent cd58b6284e03
......@@ -31,6 +31,7 @@ from .qtgui import (
from mercurial import (
match as matchmod,
from ..util import hglib
......@@ -650,8 +651,8 @@ def _populatesubrepos(roote, repo, nodeop, statusfilter, match):
smatch = matchmod.subdirmatcher(path, match)
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):
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