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