# HG changeset patch # User Sean Farley # Date 2013-09-21 03:07:58 # Node ID 02a8612ddec2b91b3c31897a3d99e5abe7f8ef80 # Parent 8a2637cf1130313c3113673057f81b0687f3601b 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. diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -999,6 +999,9 @@ class committablectx(basectx): def _date(self): return util.makedate() + def subrev(self, subpath): + return None + def user(self): return self._user or self._repo.ui.username() def date(self):