# HG changeset patch # User Sean Farley # Date 2013-08-15 18:42:56 # Node ID 79792c8ea6dab5bc54f3c13357531c63a984cb4a # Parent bad0bd99ac9673dd9960cf5675c3b7c318eff5a9 commitablefilectx: move children from workingfilectx diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -1226,6 +1226,9 @@ class commitablefilectx(basefilectx): return [filectx(self._repo, p, fileid=n, filelog=l) for p, n, l in pl if n != nullid] + def children(self): + return [] + class workingfilectx(commitablefilectx): """A workingfilectx object makes access to data related to a particular file in the working directory convenient.""" @@ -1244,9 +1247,6 @@ class workingfilectx(commitablefilectx): return None return rp, self._changectx._parents[0]._manifest.get(rp, nullid) - def children(self): - return [] - def size(self): return os.lstat(self._repo.wjoin(self._path)).st_size def date(self):