# HG changeset patch # User FUJIWARA Katsunori # Date 2016-03-29 14:59:32 # Node ID 1ace17e1e16082a96467819d93933ffb8585ff1f # Parent d0210a35c81a315392cb0264291ac441791dea55 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') %