hgext/releasenotes.py
changeset 48128 5ced12cfa41b
parent 47842 8843de648aed
child 48966 6000f5b25c9b
--- a/hgext/releasenotes.py	Tue Sep 28 09:08:43 2021 -0700
+++ b/hgext/releasenotes.py	Tue Sep 28 08:47:11 2021 -0700
@@ -24,10 +24,10 @@
     cmdutil,
     config,
     error,
+    logcmdutil,
     minirst,
     pycompat,
     registrar,
-    scmutil,
     util,
 )
 from mercurial.utils import (
@@ -676,7 +676,7 @@
         return _getadmonitionlist(ui, sections)
 
     rev = opts.get(b'rev')
-    revs = scmutil.revrange(repo, [rev or b'not public()'])
+    revs = logcmdutil.revrange(repo, [rev or b'not public()'])
     if opts.get(b'check'):
         return checkadmonitions(ui, repo, sections.names(), revs)