Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 49741:2aaa5d1e57e9
path: pass `path` to `peer` in `hg init`
We directly use the `path` object to build the `peer` object.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 02 Dec 2022 16:34:00 +0100 |
parents | f3b685d9e899 |
children | f65656572e25 |
comparison
equal
deleted
inserted
replaced
49740:53ad92b20556 | 49741:2aaa5d1e57e9 |
---|---|
4421 See :hg:`help urls` for more information. | 4421 See :hg:`help urls` for more information. |
4422 | 4422 |
4423 Returns 0 on success. | 4423 Returns 0 on success. |
4424 """ | 4424 """ |
4425 opts = pycompat.byteskwargs(opts) | 4425 opts = pycompat.byteskwargs(opts) |
4426 path = urlutil.get_clone_path(ui, dest)[1] | 4426 path = urlutil.get_clone_path_obj(ui, dest) |
4427 peer = hg.peer(ui, opts, path, create=True) | 4427 peer = hg.peer(ui, opts, path, create=True) |
4428 peer.close() | 4428 peer.close() |
4429 | 4429 |
4430 | 4430 |
4431 @command( | 4431 @command( |