hgext/mq.py
changeset 39818 24e493ec2229
parent 39049 b53ec524420b
child 39895 1a184b727aff
equal deleted inserted replaced
39817:94c25f694ec3 39818:24e493ec2229
  3583         repopath = args[0]
  3583         repopath = args[0]
  3584         if not hg.islocal(repopath):
  3584         if not hg.islocal(repopath):
  3585             raise error.Abort(_('only a local queue repository '
  3585             raise error.Abort(_('only a local queue repository '
  3586                                'may be initialized'))
  3586                                'may be initialized'))
  3587     else:
  3587     else:
  3588         repopath = cmdutil.findrepo(pycompat.getcwd())
  3588         repopath = cmdutil.findrepo(encoding.getcwd())
  3589         if not repopath:
  3589         if not repopath:
  3590             raise error.Abort(_('there is no Mercurial repository here '
  3590             raise error.Abort(_('there is no Mercurial repository here '
  3591                                '(.hg not found)'))
  3591                                '(.hg not found)'))
  3592     repo = hg.repository(ui, repopath)
  3592     repo = hg.repository(ui, repopath)
  3593     return qinit(ui, repo, True)
  3593     return qinit(ui, repo, True)