infinitepush: extract getsrcrepo to a utility module
Infinitepush has a function in backupcommands.py for accessing the srcrepo of
shared repos. This is useful in other extensions, so extract it to a utility
module.
Differential Revision: https://phab.mercurial-scm.org/D1603