equal
deleted
inserted
replaced
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) |