diff mercurial/context.py @ 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 5693c834bcb4
children 36993b52d016
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):