Mercurial > hg
comparison hgext/sparse.py @ 35192:d8d06a930d60
py3: use byteskwargs in sparse.py
This removes several dozen failures in Python 3.
Differential Revision: https://phab.mercurial-scm.org/D1482
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 20 Nov 2017 23:23:10 -0800 |
parents | e1c56486d1aa |
children | 7625b4f7db70 |
comparison
equal
deleted
inserted
replaced
35191:a1d2fc32bb99 | 35192:d8d06a930d60 |
---|---|
80 dirstate, | 80 dirstate, |
81 error, | 81 error, |
82 extensions, | 82 extensions, |
83 hg, | 83 hg, |
84 match as matchmod, | 84 match as matchmod, |
85 pycompat, | |
85 registrar, | 86 registrar, |
86 sparse, | 87 sparse, |
87 util, | 88 util, |
88 ) | 89 ) |
89 | 90 |
284 --clear-rules removes all local include and exclude rules, while leaving | 285 --clear-rules removes all local include and exclude rules, while leaving |
285 any enabled profiles in place. | 286 any enabled profiles in place. |
286 | 287 |
287 Returns 0 if editing the sparse checkout succeeds. | 288 Returns 0 if editing the sparse checkout succeeds. |
288 """ | 289 """ |
290 opts = pycompat.byteskwargs(opts) | |
289 include = opts.get('include') | 291 include = opts.get('include') |
290 exclude = opts.get('exclude') | 292 exclude = opts.get('exclude') |
291 force = opts.get('force') | 293 force = opts.get('force') |
292 enableprofile = opts.get('enable_profile') | 294 enableprofile = opts.get('enable_profile') |
293 disableprofile = opts.get('disable_profile') | 295 disableprofile = opts.get('disable_profile') |