Mercurial > evolve
changeset 5923:4c7e430c3e38
evolve: add labels to messages about leaving and deleting bookmarks
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 17 May 2021 19:19:32 +0800 |
parents | 8bffab1e7c4f |
children | 16f3fb304285 |
files | hgext3rd/evolve/cmdrewrite.py hgext3rd/evolve/rewriteutil.py |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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)