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