[PATCH 21 of 48 RFC] commitablectx: move description from workingctx
Sean Farley
sean.michael.farley at gmail.com
Thu Sep 5 15:07:15 CDT 2013
# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1376514570 18000
# Wed Aug 14 16:09:30 2013 -0500
# Node ID c02054b035da251af5b6bdfda8a0e45c3e8293fc
# Parent 79a93450bc29d7b2b6113b84c5f561d5c9cc2758
commitablectx: move description from workingctx
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -963,10 +963,12 @@
def user(self):
return self._user or self._repo.ui.username()
def date(self):
return self._date
+ def description(self):
+ return self._text
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.
@@ -990,12 +992,10 @@
p = self._repo.dirstate.parents()
if p[1] == nullid:
p = p[:-1]
return [changectx(self._repo, x) for x in p]
- def description(self):
- return self._text
def files(self):
return sorted(self._status[0] + self._status[1] + self._status[2])
def modified(self):
return self._status[0]
More information about the Mercurial-devel
mailing list