discovery: move cl.hasnode outside of the for-loop...
discovery: move cl.hasnode outside of the for-loop
IIUC, resolving attributes for changelog can lead to some overhead. So this
patch moves that to outside of a for-loop.
Differential Revision:
https://phab.mercurial-scm.org/D6147