# HG changeset patch # User Sean Farley # Date 1376515340 18000 # Node ID 36cd2a7fa3f747db2ee8aff1ccc40d1cce0cc890 # Parent 6336f35ed77d19e8c597f068f15e7b7fbceb2e77 commitablectx: move unknown from workingctx diff -r 6336f35ed77d -r 36cd2a7fa3f7 mercurial/context.py --- a/mercurial/context.py Wed Aug 14 16:21:55 2013 -0500 +++ b/mercurial/context.py Wed Aug 14 16:22:20 2013 -0500 @@ -978,6 +978,9 @@ return self._status[2] def deleted(self): return self._status[3] + def unknown(self): + assert self._unknown is not None # must call status first + return self._unknown class workingctx(commitablectx): """A workingctx object makes access to data related to @@ -1005,9 +1008,6 @@ p = p[:-1] return [changectx(self._repo, x) for x in p] - 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