Example #1
0
def decompose_url(url):
	pos = url.index(":")
	repo_name = url[0:pos]
	path = rpath.absolute(url[pos + 1:])
	return (repo_name, path)
Example #2
0
def compose_url(repo_name, *path):
	return "{0}:{1}".format(repo_name, rpath.absolute(rpath.join(*path)))