# HG changeset patch # User Jun Wu # Date 1495043336 25200 # 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 -r 37bcb4665529 -r 911057981ba4 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