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