Show More
@@ -2844,6 +2844,13 b' def dispatch(args):' | |||||
2844 |
|
2844 | |||
2845 | try: |
|
2845 | try: | |
2846 | try: |
|
2846 | try: | |
|
2847 | path = options["repository"] | |||
|
2848 | if path: | |||
|
2849 | repo = hg.repository(u, path=path) | |||
|
2850 | else: | |||
|
2851 | repo = None | |||
|
2852 | path = "" | |||
|
2853 | ||||
2847 | if options['help']: |
|
2854 | if options['help']: | |
2848 | help_(u, cmd, options['version']) |
|
2855 | help_(u, cmd, options['version']) | |
2849 | sys.exit(0) |
|
2856 | sys.exit(0) | |
@@ -2862,8 +2869,8 b' def dispatch(args):' | |||||
2862 | (options['cwd'], inst.strerror)) |
|
2869 | (options['cwd'], inst.strerror)) | |
2863 |
|
2870 | |||
2864 | if cmd not in norepo.split(): |
|
2871 | if cmd not in norepo.split(): | |
2865 | path = options["repository"] or "" |
|
2872 | if not repo: | |
2866 | repo = hg.repository(u, path=path) |
|
2873 | repo = hg.repository(u, path=path) | |
2867 | u = repo.ui |
|
2874 | u = repo.ui | |
2868 | for x in external: |
|
2875 | for x in external: | |
2869 | if hasattr(x, 'reposetup'): |
|
2876 | if hasattr(x, 'reposetup'): |
General Comments 0
You need to be logged in to leave comments.
Login now