hgext/mq.py
changeset 30519 20a42325fdef
parent 30489 0ae83ede68c5
child 30879 5fbf1da938a6
equal deleted inserted replaced
30518:a8b17859684a 30519:20a42325fdef
    85     hg,
    85     hg,
    86     localrepo,
    86     localrepo,
    87     lock as lockmod,
    87     lock as lockmod,
    88     patch as patchmod,
    88     patch as patchmod,
    89     phases,
    89     phases,
       
    90     pycompat,
    90     registrar,
    91     registrar,
    91     revset,
    92     revset,
    92     scmutil,
    93     scmutil,
    93     subrepo,
    94     subrepo,
    94     util,
    95     util,
  3521         repopath = args[0]
  3522         repopath = args[0]
  3522         if not hg.islocal(repopath):
  3523         if not hg.islocal(repopath):
  3523             raise error.Abort(_('only a local queue repository '
  3524             raise error.Abort(_('only a local queue repository '
  3524                                'may be initialized'))
  3525                                'may be initialized'))
  3525     else:
  3526     else:
  3526         repopath = cmdutil.findrepo(os.getcwd())
  3527         repopath = cmdutil.findrepo(pycompat.getcwd())
  3527         if not repopath:
  3528         if not repopath:
  3528             raise error.Abort(_('there is no Mercurial repository here '
  3529             raise error.Abort(_('there is no Mercurial repository here '
  3529                                '(.hg not found)'))
  3530                                '(.hg not found)'))
  3530     repo = hg.repository(ui, repopath)
  3531     repo = hg.repository(ui, repopath)
  3531     return qinit(ui, repo, True)
  3532     return qinit(ui, repo, True)