From 5ea6ba58a18c2ae2ea7628ef87072fabb46bbe67 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Tue, 9 May 2023 20:27:35 -0600 Subject: [PATCH] Add support for older topic format Signed-off-by: Felipe Contreras --- git-remote-hg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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