# HG changeset patch # User Sean Farley # Date 2013-08-14 20:34:18 # Node ID 367e95bba6e84acc9ce220783cc5e6a8c7fd946e # Parent 6ac735fbea502624e03cd4c585a99b6a3ec71958 commitablectx: move _manifest from workingctx diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -901,19 +901,6 @@ class commitablectx(basectx): def _flagfunc(self): return self._repo.dirstate.flagfunc(self._buildflagfunc) -class workingctx(commitablectx): - """A workingctx object makes access to data related to - the current working directory convenient. - date - any valid date string or (unixtime, offset), or None. - user - username string, or None. - extra - a dictionary of extra values, or None. - changes - a list of file lists as returned by localrepo.status() - or None to use the repository status. - """ - def __init__(self, repo, text="", user=None, date=None, extra=None, - changes=None): - super(workingctx, self).__init__(repo, text, user, date, extra, changes) - @propertycache def _manifest(self): """generate a manifest corresponding to the working directory""" @@ -946,6 +933,19 @@ class workingctx(commitablectx): return man +class workingctx(commitablectx): + """A workingctx object makes access to data related to + the current working directory convenient. + date - any valid date string or (unixtime, offset), or None. + user - username string, or None. + extra - a dictionary of extra values, or None. + changes - a list of file lists as returned by localrepo.status() + or None to use the repository status. + """ + def __init__(self, repo, text="", user=None, date=None, extra=None, + changes=None): + super(workingctx, self).__init__(repo, text, user, date, extra, changes) + def __iter__(self): d = self._repo.dirstate for f in d: