Show More
@@ -2863,11 +2863,12 b' def clone(ui, source, dest=None, **opts)' | |||||
2863 | # main repo (destination and sources) |
|
2863 | # main repo (destination and sources) | |
2864 | if dest is None: |
|
2864 | if dest is None: | |
2865 | dest = hg.defaultdest(source) |
|
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 | # patches repo (source only) |
|
2869 | # patches repo (source only) | |
2869 | if opts.get(b'patches'): |
|
2870 | if opts.get(b'patches'): | |
2870 |
patchespath = ui |
|
2871 | __, patchespath, __ = urlutil.get_clone_path(ui, opts.get(b'patches')) | |
2871 | else: |
|
2872 | else: | |
2872 | patchespath = patchdir(sr) |
|
2873 | patchespath = patchdir(sr) | |
2873 | try: |
|
2874 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now