[PATCH 2 of 2 V2] destutil: show message and hint at updating to the closed head as warning

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Tue Mar 29 11:05:10 EDT 2016


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1459263572 -32400
#      Tue Mar 29 23:59:32 2016 +0900
# Node ID 037bc0be9a74daadbfc969e6c28188b084c00d2d
# Parent  9a1bfcecab7ef10171214e1a73c8bd77313178e0
destutil: show message and hint at updating to the closed head as warning

diff --git a/mercurial/destutil.py b/mercurial/destutil.py
--- a/mercurial/destutil.py
+++ b/mercurial/destutil.py
@@ -397,15 +397,15 @@ def _statusotherbranchheads(ui, repo):
         #  ========= ==========
         otherheads = repo.revs('%ln - parents()', heads)
         if repo['.'].closesbranch():
-            ui.status(_('no open descendant heads on branch "%s", '
+            ui.warn(_('no open descendant heads on branch "%s", '
                         'updating to a closed head\n') %
                       (currentbranch))
             if otherheads:
-                ui.status(_('(committing will reopen the head, '
+                ui.warn(_('(committing will reopen the head, '
                             'use `hg heads .` to see %i other heads)\n') %
                           (len(otherheads)))
             else:
-                ui.status(_('(committing will reopen branch "%s")\n') %
+                ui.warn(_('(committing will reopen branch "%s")\n') %
                           (currentbranch))
         elif otherheads:
             ui.status(_('%i other heads for branch "%s"\n') %


More information about the Mercurial-devel mailing list