add cmdutil.remoteui
remoteui sorts out the issues of getting ssh config options from the
local repo into the remote one while not copying other options like hooks.
transplant: forbid transplant to nonempty repositories with no working directory.
Partially undoes
d3fb413667e5.