hgext/releasenotes.py
changeset 34736 25b5787e8dde
parent 34404 159a6f7e09a9
child 34780 070ba789f4d0
equal deleted inserted replaced
34735:330d0b582ab3 34736:25b5787e8dde
   575         return checkadmonitions(ui, repo, sections.names(), revs)
   575         return checkadmonitions(ui, repo, sections.names(), revs)
   576 
   576 
   577     incoming = parsenotesfromrevisions(repo, sections.names(), revs)
   577     incoming = parsenotesfromrevisions(repo, sections.names(), revs)
   578 
   578 
   579     if file_ is None:
   579     if file_ is None:
       
   580         ui.pager('releasenotes')
   580         return ui.write(serializenotes(sections, incoming))
   581         return ui.write(serializenotes(sections, incoming))
   581 
   582 
   582     try:
   583     try:
   583         with open(file_, 'rb') as fh:
   584         with open(file_, 'rb') as fh:
   584             notes = parsereleasenotesfile(sections, fh.read())
   585             notes = parsereleasenotesfile(sections, fh.read())