Mercurial > hg
comparison hgext/releasenotes.py @ 35003:e68dd1909af3
py3: handle keyword arguments in hgext/releasenotes.py
Differential Revision: https://phab.mercurial-scm.org/D1322
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 23 Oct 2017 00:05:04 +0530 |
parents | 288fad8c55f9 |
children | 658ed9c7442b |
comparison
equal
deleted
inserted
replaced
35002:1a07f9187831 | 35003:e68dd1909af3 |
---|---|
23 from mercurial import ( | 23 from mercurial import ( |
24 config, | 24 config, |
25 error, | 25 error, |
26 minirst, | 26 minirst, |
27 node, | 27 node, |
28 pycompat, | |
28 registrar, | 29 registrar, |
29 scmutil, | 30 scmutil, |
30 util, | 31 util, |
31 ) | 32 ) |
32 | 33 |
568 | 569 |
569 The -l/--list option, presents the user with a list of existing available | 570 The -l/--list option, presents the user with a list of existing available |
570 admonitions along with their title. This also includes the custom | 571 admonitions along with their title. This also includes the custom |
571 admonitions (if any). | 572 admonitions (if any). |
572 """ | 573 """ |
574 | |
575 opts = pycompat.byteskwargs(opts) | |
573 sections = releasenotessections(ui, repo) | 576 sections = releasenotessections(ui, repo) |
574 | 577 |
575 listflag = opts.get('list') | 578 listflag = opts.get('list') |
576 | 579 |
577 if listflag and opts.get('rev'): | 580 if listflag and opts.get('rev'): |