Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 36719:390d16ea7c76
py3: use pycompat.bytestr instead of str
Differential Revision: https://phab.mercurial-scm.org/D2648
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 04 Mar 2018 22:33:59 +0530 |
parents | 7dc1a21d57cc |
children | ff541b8cdee0 |
comparison
equal
deleted
inserted
replaced
36718:59802fa590db | 36719:390d16ea7c76 |
---|---|
1195 bundletype = opts.get('type', 'bzip2').lower() | 1195 bundletype = opts.get('type', 'bzip2').lower() |
1196 try: | 1196 try: |
1197 bcompression, cgversion, params = exchange.parsebundlespec( | 1197 bcompression, cgversion, params = exchange.parsebundlespec( |
1198 repo, bundletype, strict=False) | 1198 repo, bundletype, strict=False) |
1199 except error.UnsupportedBundleSpecification as e: | 1199 except error.UnsupportedBundleSpecification as e: |
1200 raise error.Abort(str(e), | 1200 raise error.Abort(pycompat.bytestr(e), |
1201 hint=_("see 'hg help bundlespec' for supported " | 1201 hint=_("see 'hg help bundlespec' for supported " |
1202 "values for --type")) | 1202 "values for --type")) |
1203 | 1203 |
1204 # Packed bundles are a pseudo bundle format for now. | 1204 # Packed bundles are a pseudo bundle format for now. |
1205 if cgversion == 's1': | 1205 if cgversion == 's1': |