comparison mercurial/debugcommands.py @ 34645:75979c8d4572

codemod: use pycompat.iswindows This is done by: sed -i "s/pycompat\.osname == 'nt'/pycompat.iswindows/" **/*.py sed -i "s/pycompat\.osname != 'nt'/not pycompat.iswindows/" **/*.py sed -i 's/pycompat.osname == "nt"/pycompat.iswindows/' **/*.py Differential Revision: https://phab.mercurial-scm.org/D1034
author Jun Wu <quark@fb.com>
date Thu, 12 Oct 2017 23:30:46 -0700
parents 12c42bcd4133
children 7ee2d859f720 88572b7e50fd
comparison
equal deleted inserted replaced
34644:c0a6c19690ff 34645:75979c8d4572
2070 that server is used. See :hg:`help urls` for more information. 2070 that server is used. See :hg:`help urls` for more information.
2071 2071
2072 If the update succeeds, retry the original operation. Otherwise, the cause 2072 If the update succeeds, retry the original operation. Otherwise, the cause
2073 of the SSL error is likely another issue. 2073 of the SSL error is likely another issue.
2074 ''' 2074 '''
2075 if pycompat.osname != 'nt': 2075 if not pycompat.iswindows:
2076 raise error.Abort(_('certificate chain building is only possible on ' 2076 raise error.Abort(_('certificate chain building is only possible on '
2077 'Windows')) 2077 'Windows'))
2078 2078
2079 if not source: 2079 if not source:
2080 if not repo: 2080 if not repo: