##// END OF EJS Templates
destutil: show message and hint at updating to the closed head as warning
FUJIWARA Katsunori -
r28684:1ace17e1 default
parent child Browse files
Show More
@@ -397,15 +397,15 b' def _statusotherbranchheads(ui, repo):'
397 # ========= ==========
397 # ========= ==========
398 otherheads = repo.revs('%ln - parents()', heads)
398 otherheads = repo.revs('%ln - parents()', heads)
399 if repo['.'].closesbranch():
399 if repo['.'].closesbranch():
400 ui.status(_('no open descendant heads on branch "%s", '
400 ui.warn(_('no open descendant heads on branch "%s", '
401 'updating to a closed head\n') %
401 'updating to a closed head\n') %
402 (currentbranch))
402 (currentbranch))
403 if otherheads:
403 if otherheads:
404 ui.status(_('(committing will reopen the head, '
404 ui.warn(_('(committing will reopen the head, '
405 'use `hg heads .` to see %i other heads)\n') %
405 'use `hg heads .` to see %i other heads)\n') %
406 (len(otherheads)))
406 (len(otherheads)))
407 else:
407 else:
408 ui.status(_('(committing will reopen branch "%s")\n') %
408 ui.warn(_('(committing will reopen branch "%s")\n') %
409 (currentbranch))
409 (currentbranch))
410 elif otherheads:
410 elif otherheads:
411 ui.status(_('%i other heads for branch "%s"\n') %
411 ui.status(_('%i other heads for branch "%s"\n') %
General Comments 0
You need to be logged in to leave comments. Login now