changeset 32305:911057981ba4

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.
author Jun Wu <quark@fb.com>
date Wed, 17 May 2017 10:48:56 -0700
parents 37bcb4665529
children 2d19664e257d
files tests/drawdag.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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