hgext/fastexport.py
changeset 48116 5ced12cfa41b
parent 44821 edffab2cf0ea
child 48875 6000f5b25c9b
equal deleted inserted replaced
48115:b067d22dc6ad 48116:5ced12cfa41b
    13 from mercurial.i18n import _
    13 from mercurial.i18n import _
    14 from mercurial.node import hex, nullrev
    14 from mercurial.node import hex, nullrev
    15 from mercurial.utils import stringutil
    15 from mercurial.utils import stringutil
    16 from mercurial import (
    16 from mercurial import (
    17     error,
    17     error,
       
    18     logcmdutil,
    18     pycompat,
    19     pycompat,
    19     registrar,
    20     registrar,
    20     scmutil,
    21     scmutil,
    21 )
    22 )
    22 from .convert import convcmd
    23 from .convert import convcmd
   180 
   181 
   181     revs += tuple(opts.get(b"rev", []))
   182     revs += tuple(opts.get(b"rev", []))
   182     if not revs:
   183     if not revs:
   183         revs = scmutil.revrange(repo, [b":"])
   184         revs = scmutil.revrange(repo, [b":"])
   184     else:
   185     else:
   185         revs = scmutil.revrange(repo, revs)
   186         revs = logcmdutil.revrange(repo, revs)
   186     if not revs:
   187     if not revs:
   187         raise error.Abort(_(b"no revisions matched"))
   188         raise error.Abort(_(b"no revisions matched"))
   188     authorfile = opts.get(b"authormap")
   189     authorfile = opts.get(b"authormap")
   189     if authorfile:
   190     if authorfile:
   190         authormap = convcmd.readauthormap(ui, authorfile)
   191         authormap = convcmd.readauthormap(ui, authorfile)