mercurial/context.py
changeset 19664 61dcb2aa7378
parent 19663 0af73d7869a6
child 19665 cb0c94ef1ebe
equal deleted inserted replaced
19663:0af73d7869a6 19664:61dcb2aa7378
   819         # hard for renames
   819         # hard for renames
   820         c = self._filelog.children(self._filenode)
   820         c = self._filelog.children(self._filenode)
   821         return [filectx(self._repo, self._path, fileid=x,
   821         return [filectx(self._repo, self._path, fileid=x,
   822                         filelog=self._filelog) for x in c]
   822                         filelog=self._filelog) for x in c]
   823 
   823 
   824 class workingctx(basectx):
   824 class commitablectx(basectx):
       
   825     """A commitablectx object provides common functionality for a context that
       
   826     wants the ability to commit, e.g. workingctx or memctx."""
       
   827     def __init__(self, repo, text="", user=None, date=None, extra=None,
       
   828                  changes=None):
       
   829         pass
       
   830 
       
   831 class workingctx(commitablectx):
   825     """A workingctx object makes access to data related to
   832     """A workingctx object makes access to data related to
   826     the current working directory convenient.
   833     the current working directory convenient.
   827     date - any valid date string or (unixtime, offset), or None.
   834     date - any valid date string or (unixtime, offset), or None.
   828     user - username string, or None.
   835     user - username string, or None.
   829     extra - a dictionary of extra values, or None.
   836     extra - a dictionary of extra values, or None.