Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 32192:964c6be36590
py3: make sure opts are passed and used correctly in help command
opts are converted back to bytes in help.help_() where they are used.
Before that it's ensured that we have a bytes value for keep variable.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 28 Apr 2017 00:49:30 +0530 |
parents | d90ffee93df6 |
children | f1aaa100f2a5 |
comparison
equal
deleted
inserted
replaced
32191:d90ffee93df6 | 32192:964c6be36590 |
---|---|
2757 topic. | 2757 topic. |
2758 | 2758 |
2759 Returns 0 if successful. | 2759 Returns 0 if successful. |
2760 """ | 2760 """ |
2761 | 2761 |
2762 keep = opts.get('system') or [] | 2762 keep = opts.get(r'system') or [] |
2763 if len(keep) == 0: | 2763 if len(keep) == 0: |
2764 if pycompat.sysplatform.startswith('win'): | 2764 if pycompat.sysplatform.startswith('win'): |
2765 keep.append('windows') | 2765 keep.append('windows') |
2766 elif pycompat.sysplatform == 'OpenVMS': | 2766 elif pycompat.sysplatform == 'OpenVMS': |
2767 keep.append('vms') | 2767 keep.append('vms') |