drawdag: provide filenode for its dummy filectx
authorJun Wu <quark@fb.com>
Wed, 17 May 2017 10:48:56 -0700
changeset 32305 911057981ba4
parent 32304 37bcb4665529
child 32306 2d19664e257d
drawdag: provide filenode for its dummy filectx basefctx has filenode, which will be used in a future fast path of skipping flag processor during repo._filecommit. This patch adds filenode to drawdag's faked filectx so we don't need to use hasattr in localrepo.py.
tests/drawdag.py
--- a/tests/drawdag.py	Sat May 13 21:30:02 2017 -0400
+++ b/tests/drawdag.py	Wed May 17 10:48:56 2017 -0700
@@ -214,6 +214,9 @@
     def data(self):
         return self._data
 
+    def filenode(self):
+        return None
+
     def path(self):
         return self._path