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