# HG changeset patch # User Anton Shestakov # Date 1621250372 -28800 # Node ID 4c7e430c3e386bc6126fea07b6bd3606113f54a5 # Parent 8bffab1e7c4ff21a3f6d39517c4b5db301cb38c5 evolve: add labels to messages about leaving and deleting bookmarks diff -r 8bffab1e7c4f -r 4c7e430c3e38 hgext3rd/evolve/cmdrewrite.py --- a/hgext3rd/evolve/cmdrewrite.py Mon May 17 19:11:06 2021 +0800 +++ b/hgext3rd/evolve/cmdrewrite.py Mon May 17 19:19:32 2021 +0800 @@ -1176,7 +1176,8 @@ bmupdate = rewriteutil.bookmarksupdater(repo, ctx.node(), tr) bookactive = repo._activebookmark if bookactive is not None: - repo.ui.status(_(b"(leaving bookmark %s)\n") % repo._activebookmark) + b = ui.label(repo._activebookmark, b'bookmarks') + ui.status(_(b"(leaving bookmark %s)\n") % b) bookmarksmod.deactivate(repo) # Prepare the working directory diff -r 8bffab1e7c4f -r 4c7e430c3e38 hgext3rd/evolve/rewriteutil.py --- a/hgext3rd/evolve/rewriteutil.py Mon May 17 19:11:06 2021 +0800 +++ b/hgext3rd/evolve/rewriteutil.py Mon May 17 19:19:32 2021 +0800 @@ -172,7 +172,8 @@ repo._bookmarks.applychanges(repo, tr, bmchanges) tr.close() for bookmark in sorted(bookmarks): - repo.ui.write(_(b"bookmark '%s' deleted\n") % bookmark) + b = repo.ui.label(bookmark, b'bookmarks') + repo.ui.write(_(b"bookmark '%s' deleted\n") % b) finally: lockmod.release(tr, lock, wlock)