Mercurial > hg
changeset 28684:1ace17e1e160
destutil: show message and hint at updating to the closed head as warning
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Tue, 29 Mar 2016 23:59:32 +0900 |
parents | d0210a35c81a |
children | 6c4d23fe611c |
files | mercurial/destutil.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/destutil.py Tue Mar 29 23:59:32 2016 +0900 +++ b/mercurial/destutil.py Tue Mar 29 23:59:32 2016 +0900 @@ -397,15 +397,15 @@ # ========= ========== 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') %