Show More
@@ -320,6 +320,9 b' def dispatch(ui, args):' | |||||
320 | raise util.Abort(_("repository '%s' is not local") % path) |
|
320 | raise util.Abort(_("repository '%s' is not local") % path) | |
321 | except hg.RepoError: |
|
321 | except hg.RepoError: | |
322 | if cmd not in commands.optionalrepo.split(): |
|
322 | if cmd not in commands.optionalrepo.split(): | |
|
323 | if not path: | |||
|
324 | raise hg.RepoError(_("There is no Mercurial repository here" | |||
|
325 | " (.hg not found)")) | |||
323 | raise |
|
326 | raise | |
324 | d = lambda: func(ui, repo, *args, **cmdoptions) |
|
327 | d = lambda: func(ui, repo, *args, **cmdoptions) | |
325 | else: |
|
328 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now