committablectx: add subrev method to return None
authorSean Farley <sean.michael.farley@gmail.com>
Fri, 20 Sep 2013 22:07:58 -0500
changeset 21587 02a8612ddec2
parent 21586 8a2637cf1130
child 21588 4944c488f738
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.
mercurial/context.py
--- a/mercurial/context.py	Fri Sep 20 21:55:42 2013 -0500
+++ b/mercurial/context.py	Fri Sep 20 22:07:58 2013 -0500
@@ -999,6 +999,9 @@
     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):