Skip to content

Commit

Permalink
Add support for older topic format
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Contreras <[email protected]>
  • Loading branch information
felipec committed May 10, 2023
1 parent 2219b58 commit 5ea6ba5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-remote-hg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ea6ba5

Please sign in to comment.