def unsplit_svn_url(tup):
    """
    re-join a subversion url which was split by the split_svn_url function
    """
    repo, prefix, project, branch, suffix, peg = tuple(tup)
    res = [repo or '^',
           prefix or '/',
           ]
    if project:
        res.extend([project, '/'])
    if branch:
        res.extend([branch, '/'])
    if suffix:
        res.append(suffix)
    if peg:
        res.extend(['@', str(peg)])
    return ''.join(res)