remotefilelog: move most functions in onetimeclientsetup() to top level...
remotefilelog: move most functions in onetimeclientsetup() to top level
This is how most extensions seem to do it. It makes sure we don't
accidentally depend on the captured ui instance.
Differential Revision:
https://phab.mercurial-scm.org/D6333