diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -981,6 +981,9 @@ class commitablectx(basectx): def unknown(self): assert self._unknown is not None # must call status first return self._unknown + def ignored(self): + assert self._ignored is not None # must call status first + return self._ignored class workingctx(commitablectx): """A workingctx object makes access to data related to @@ -1008,9 +1011,6 @@ class workingctx(commitablectx): p = p[:-1] return [changectx(self._repo, x) for x in p] - def ignored(self): - assert self._ignored is not None # must call status first - return self._ignored def clean(self): assert self._clean is not None # must call status first return self._clean