changegroup: pass state into _revisiondeltanarrow
After this, the method no longer accesses self and can be split
into a standalone function.
Differential Revision: https://phab.mercurial-scm.org/D4195
#require docutils gettext $ $TESTDIR/check-gendoc sv checking for parse errors