##// END OF EJS Templates
dispatch: change indentation level in _dispatch()...
Arun Kulshreshtha -
r30005:dfd97e60 default
parent child Browse files
Show More
@@ -844,6 +844,7 b' def _dispatch(req):'
844 elif not cmd:
844 elif not cmd:
845 return commands.help_(ui, 'shortlist')
845 return commands.help_(ui, 'shortlist')
846
846
847 if True:
847 repo = None
848 repo = None
848 cmdpats = args[:]
849 cmdpats = args[:]
849 if not _cmdattr(ui, cmd, func, 'norepo'):
850 if not _cmdattr(ui, cmd, func, 'norepo'):
@@ -860,8 +861,10 b' def _dispatch(req):'
860 try:
861 try:
861 repo = hg.repository(ui, path=path)
862 repo = hg.repository(ui, path=path)
862 if not repo.local():
863 if not repo.local():
863 raise error.Abort(_("repository '%s' is not local") % path)
864 raise error.Abort(_("repository '%s' is not local")
864 repo.ui.setconfig("bundle", "mainreporoot", repo.root, 'repo')
865 % path)
866 repo.ui.setconfig("bundle", "mainreporoot", repo.root,
867 'repo')
865 except error.RequirementError:
868 except error.RequirementError:
866 raise
869 raise
867 except error.RepoError:
870 except error.RepoError:
@@ -877,8 +880,8 b' def _dispatch(req):'
877 req.args = ['--repository', guess] + fullargs
880 req.args = ['--repository', guess] + fullargs
878 return _dispatch(req)
881 return _dispatch(req)
879 if not path:
882 if not path:
880 raise error.RepoError(_("no repository found in '%s'"
883 raise error.RepoError(_("no repository found in"
881 " (.hg not found)")
884 " '%s' (.hg not found)")
882 % os.getcwd())
885 % os.getcwd())
883 raise
886 raise
884 if repo:
887 if repo:
General Comments 0
You need to be logged in to leave comments. Login now