[PATCH 2 of 2 v4] schemes: add expand-scheme command, resolving a scheme to its canonical form

Yuya Nishihara yuya at tcha.org
Thu Feb 4 14:32:11 UTC 2016


On Tue, 02 Feb 2016 14:48:12 -0600, Jason R. Coombs wrote:
> # HG changeset patch
> # User Jason R. Coombs <jaraco at jaraco.com>
> # Date 1454097224 18000
> #      Fri Jan 29 14:53:44 2016 -0500
> # Node ID fe9845c4ecc59c3f98e86ee3dd9820549cc6b827
> # Parent  57b444b3ae576506bfcda88a50f80ee9dcf688cb
> schemes: add expand-scheme command, resolving a scheme to its canonical form

> diff --git a/contrib/debugcmdserver.py b/contrib/debugcmdserver.py
> old mode 100755
> new mode 100644
...

This commit seems damaged.
Can you revert these permission changes?

> +cmdtable = {}
> +command = cmdutil.command(cmdtable)
> +
> + at command('debugexpandscheme', norepo=True)
> +def expandscheme(ui, url, **opts):
> +    """given a repo path, provide the scheme-expanded path
> +    """
> +    repo = hg._peerlookup(url)
> +    if isinstance(repo, ShortRepository):
> +        url = repo.resolve(ui, url)
> +    ui.status(url + '\n')

One nit. Perhaps it should call ui.write() because we'll probably want to see
the expanded path even with "-q" option.


More information about the Mercurial-devel mailing list