equal
deleted
inserted
replaced
22 from mercurial.node import hex |
22 from mercurial.node import hex |
23 from mercurial import ( |
23 from mercurial import ( |
24 cmdutil, |
24 cmdutil, |
25 config, |
25 config, |
26 error, |
26 error, |
|
27 logcmdutil, |
27 minirst, |
28 minirst, |
28 pycompat, |
29 pycompat, |
29 registrar, |
30 registrar, |
30 scmutil, |
|
31 util, |
31 util, |
32 ) |
32 ) |
33 from mercurial.utils import ( |
33 from mercurial.utils import ( |
34 procutil, |
34 procutil, |
35 stringutil, |
35 stringutil, |
674 |
674 |
675 if opts.get(b'list'): |
675 if opts.get(b'list'): |
676 return _getadmonitionlist(ui, sections) |
676 return _getadmonitionlist(ui, sections) |
677 |
677 |
678 rev = opts.get(b'rev') |
678 rev = opts.get(b'rev') |
679 revs = scmutil.revrange(repo, [rev or b'not public()']) |
679 revs = logcmdutil.revrange(repo, [rev or b'not public()']) |
680 if opts.get(b'check'): |
680 if opts.get(b'check'): |
681 return checkadmonitions(ui, repo, sections.names(), revs) |
681 return checkadmonitions(ui, repo, sections.names(), revs) |
682 |
682 |
683 incoming = parsenotesfromrevisions(repo, sections.names(), revs) |
683 incoming = parsenotesfromrevisions(repo, sections.names(), revs) |
684 |
684 |