Comments
Patch
@@ -824,23 +824,10 @@
class commitablectx(basectx):
"""A commitablectx object provides common functionality for a context that
wants the ability to commit, e.g. workingctx or memctx."""
def __init__(self, repo, text="", user=None, date=None, extra=None,
changes=None):
- pass
-
-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):
self._repo = repo
self._rev = None
self._node = None
self._text = text
if date:
@@ -867,10 +854,23 @@
raise util.Abort(_('branch name not in UTF-8!'))
self._extra['branch'] = branch
if self._extra['branch'] == '':
self._extra['branch'] = 'default'
+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 __str__(self):
return str(self._parents[0]) + "+"
def __nonzero__(self):
return True