Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/context.py @ 21587:02a8612ddec2
committablectx: add subrev method to return None
This allows a future patch to use object oriented style to remove an if
statement in the status method.
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Fri, 20 Sep 2013 22:07:58 -0500 |
parents | 8a2637cf1130 |
children | 2945fdc38aad |
comparison
equal
deleted
inserted
replaced
21586:8a2637cf1130 | 21587:02a8612ddec2 |
---|---|
997 | 997 |
998 @propertycache | 998 @propertycache |
999 def _date(self): | 999 def _date(self): |
1000 return util.makedate() | 1000 return util.makedate() |
1001 | 1001 |
1002 def subrev(self, subpath): | |
1003 return None | |
1004 | |
1002 def user(self): | 1005 def user(self): |
1003 return self._user or self._repo.ui.username() | 1006 return self._user or self._repo.ui.username() |
1004 def date(self): | 1007 def date(self): |
1005 return self._date | 1008 return self._date |
1006 def description(self): | 1009 def description(self): |