module Hoe::MercurialHelpers

def get_repo_paths

## Read any remote repo paths known by the current repo and return them as a hash.
def get_repo_paths
	paths = {}
	pathspec = read_command_output( 'hg', 'paths' )
	pathspec.split.each_slice( 3 ) do |name, _, url|
		paths[ name ] = url
	end
	return paths
end