# HG changeset patch # User Jun Wu # Date 2017-05-17 17:48:56 # Node ID 911057981ba4305013d9097885ad51762e8cee15 # Parent 37bcb4665529f5cc59b8dffb1014ac0cab37492c 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. diff --git a/tests/drawdag.py b/tests/drawdag.py --- a/tests/drawdag.py +++ b/tests/drawdag.py @@ -214,6 +214,9 @@ class simplefilectx(object): def data(self): return self._data + def filenode(self): + return None + def path(self): return self._path