##// END OF EJS Templates
phabricator: print deprecation warning only once...
Joerg Sonnenberger -
r36835:98cbfbbe default
parent child Browse files
Show More
@@ -99,13 +99,17 b' def urlencodenested(params):'
99 process('', params)
99 process('', params)
100 return util.urlreq.urlencode(flatparams)
100 return util.urlreq.urlencode(flatparams)
101
101
102 printed_token_warning = False
103
102 def readlegacytoken(repo):
104 def readlegacytoken(repo):
103 """Transitional support for old phabricator tokens.
105 """Transitional support for old phabricator tokens.
104
106
105 Remove before the 4.6 release.
107 Remove before the 4.6 release.
106 """
108 """
109 global printed_token_warning
107 token = repo.ui.config('phabricator', 'token')
110 token = repo.ui.config('phabricator', 'token')
108 if token:
111 if token and not printed_token_warning:
112 printed_token_warning = True
109 repo.ui.warn(_('phabricator.token is deprecated - please '
113 repo.ui.warn(_('phabricator.token is deprecated - please '
110 'migrate to the phabricator.auth section.\n'))
114 'migrate to the phabricator.auth section.\n'))
111 return token
115 return token
General Comments 0
You need to be logged in to leave comments. Login now