narrowrevlog: add a TODO around remotefilelog moving to core
We should clean this up considerably when remotefilelog lands, which
we expect to try and accomplish in the near-ish future.
Differential Revision: https://phab.mercurial-scm.org/D2189
--- a/hgext/narrow/narrowrevlog.py Mon Feb 12 14:12:28 2018 -0500
+++ b/hgext/narrow/narrowrevlog.py Mon Feb 12 14:15:52 2018 -0500
@@ -156,6 +156,10 @@
# rename-checking logic when on remotefilelog. This
# might be incorrect on other non-revlog-based storage
# engines, but for now this seems to be fine.
+ #
+ # TODO: when remotefilelog is in core, improve this to
+ # explicitly look for remotefilelog instead of cheating
+ # with a hasattr check.
if util.safehasattr(self, 'node'):
node = self.node(rev)
# Because renamed() is overridden above to