changeset 24719:11e8fec00234

committablectx: override manifestnode() to return None wctx.manifestnode() crashed before because it has no _changeset. Instead of crashing, just return None like wctx.node().
author Yuya Nishihara <yuya@tcha.org>
date Thu, 09 Apr 2015 22:18:55 +0900
parents a4191e0c728f
children c560d8c68791
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Sat Apr 11 16:01:42 2015 +0900
+++ b/mercurial/context.py	Thu Apr 09 22:18:55 2015 +0900
@@ -1191,6 +1191,8 @@
     def subrev(self, subpath):
         return None
 
+    def manifestnode(self):
+        return None
     def user(self):
         return self._user or self._repo.ui.username()
     def date(self):