mercurial/filemerge.py
changeset 49028 db93041e5b1c
parent 48982 9dfbea54b680
child 49167 7af798e497f5
equal deleted inserted replaced
49027:0f0e3830c099 49028:db93041e5b1c
   846     if ctx.node() is None:
   846     if ctx.node() is None:
   847         ctx = ctx.p1()
   847         ctx = ctx.p1()
   848 
   848 
   849     props = {b'ctx': ctx}
   849     props = {b'ctx': ctx}
   850     templateresult = template.renderdefault(props)
   850     templateresult = template.renderdefault(props)
   851     input.label_detail = templateresult.splitlines()[0]  # split for safety
   851     input.label_detail = stringutil.firstline(templateresult)  # avoid '\n'
   852 
   852 
   853 
   853 
   854 def _populate_label_details(repo, inputs, tool=None):
   854 def _populate_label_details(repo, inputs, tool=None):
   855     """Populates the label details using the conflict marker template."""
   855     """Populates the label details using the conflict marker template."""
   856     ui = repo.ui
   856     ui = repo.ui