Show More
@@ -814,6 +814,7 b' def dispatch(args):' | |||||
814 | ('d', 'debug', None, 'debug'), |
|
814 | ('d', 'debug', None, 'debug'), | |
815 | ('q', 'quiet', None, 'quiet'), |
|
815 | ('q', 'quiet', None, 'quiet'), | |
816 | ('p', 'profile', None, 'profile'), |
|
816 | ('p', 'profile', None, 'profile'), | |
|
817 | ('R', 'repository', "", 'repository root directory'), | |||
817 | ('y', 'noninteractive', None, 'run non-interactively'), |
|
818 | ('y', 'noninteractive', None, 'run non-interactively'), | |
818 | ('', 'version', None, 'output version information and exit'), |
|
819 | ('', 'version', None, 'output version information and exit'), | |
819 | ] |
|
820 | ] | |
@@ -852,7 +853,8 b' def dispatch(args):' | |||||
852 |
|
853 | |||
853 | try: |
|
854 | try: | |
854 | if cmd not in norepo.split(): |
|
855 | if cmd not in norepo.split(): | |
855 |
|
|
856 | path = options["repository"] or "" | |
|
857 | repo = hg.repository(ui=u, path=path) | |||
856 | d = lambda: i[0](u, repo, *args, **cmdoptions) |
|
858 | d = lambda: i[0](u, repo, *args, **cmdoptions) | |
857 | else: |
|
859 | else: | |
858 | d = lambda: i[0](u, *args, **cmdoptions) |
|
860 | d = lambda: i[0](u, *args, **cmdoptions) |
General Comments 0
You need to be logged in to leave comments.
Login now