[PATCH] phabricator: migrate [phabricator.auth] to [auth]

Yuya Nishihara yuya at tcha.org
Sat May 12 22:45:42 EDT 2018


On Sat, 12 May 2018 00:36:58 -0400, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1526099641 14400
> #      Sat May 12 00:34:01 2018 -0400
> # Node ID 6c6d0679de6cca2d740874812d87a649f8d8dde8
> # Parent  b9e6b71dc27246d1f4d6437edfdc9788188aa306
> phabricator: migrate [phabricator.auth] to [auth]

> +printed_token_warning = False
> +
> +def readlegacytoken(repo, url):
> +    """Transitional support for old phabricator tokens.
>  
> -    Currently read from [phabricator] config section. In the future, it might
> -    make sense to read from .arcconfig and .arcrc as well.
> +    Remove before the 4.7 release.
>      """
> -    url = repo.ui.config('phabricator', 'url')
> -    if not url:
> -        raise error.Abort(_('config %s.%s is required')
> -                          % ('phabricator', 'url'))
> +    global printed_token_warning
> +    token = repo.ui.config('phabricator.auth', 'token')

???

The token variable is set to None later.


More information about the Mercurial-devel mailing list