##// END OF EJS Templates
mq: use the new `get_clone_path` to get the remote url...
marmoute -
r47697:ae4c0f27 default
parent child Browse files
Show More
@@ -2863,11 +2863,12 b' def clone(ui, source, dest=None, **opts)'
2863 2863 # main repo (destination and sources)
2864 2864 if dest is None:
2865 2865 dest = hg.defaultdest(source)
2866 sr = hg.peer(ui, opts, ui.expandpath(source))
2866 __, source_path, __ = urlutil.get_clone_path(ui, source)
2867 sr = hg.peer(ui, opts, source_path)
2867 2868
2868 2869 # patches repo (source only)
2869 2870 if opts.get(b'patches'):
2870 patchespath = ui.expandpath(opts.get(b'patches'))
2871 __, patchespath, __ = urlutil.get_clone_path(ui, opts.get(b'patches'))
2871 2872 else:
2872 2873 patchespath = patchdir(sr)
2873 2874 try:
General Comments 0
You need to be logged in to leave comments. Login now