diff --git a/git-remote-hg b/git-remote-hg index ca9cac0..eb2e0ad 100755 --- a/git-remote-hg +++ b/git-remote-hg @@ -652,7 +652,8 @@ def do_list(parser): items = orig.branchmap().iteritems() for branch, heads in items: - branch, sep, topic = branch.rpartition(b'//') + sep = b':' if b':' in branch else b'//' + branch, sep, topic = branch.rpartition(sep) if not sep: branch, topic = topic, None