# HG changeset patch # User Sean Farley # Date 1376512458 18000 # Node ID 367e95bba6e84acc9ce220783cc5e6a8c7fd946e # Parent 6ac735fbea502624e03cd4c585a99b6a3ec71958 commitablectx: move _manifest from workingctx diff -r 6ac735fbea50 -r 367e95bba6e8 mercurial/context.py --- a/mercurial/context.py Wed Aug 14 15:30:17 2013 -0500 +++ b/mercurial/context.py Wed Aug 14 15:34:18 2013 -0500 @@ -901,19 +901,6 @@ 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 @@ 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: