Mercurial > hg
diff hgext/infinitepush/common.py @ 43077:687b865b95ad
formatting: byteify all mercurial/ and hgext/ string literals
Done with
python3.7 contrib/byteify-strings.py -i $(hg files 'set:mercurial/**.py - mercurial/thirdparty/** + hgext/**.py - hgext/fsmonitor/pywatchman/** - mercurial/__init__.py')
black -l 80 -t py33 -S $(hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**" - hgext/fsmonitor/pywatchman/**')
# skip-blame mass-reformatting only
Differential Revision: https://phab.mercurial-scm.org/D6972
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 06 Oct 2019 09:48:39 -0400 |
parents | 2372284d9457 |
children | 9f70512ae2cf |
line wrap: on
line diff
--- a/hgext/infinitepush/common.py Sun Oct 06 09:45:02 2019 -0400 +++ b/hgext/infinitepush/common.py Sun Oct 06 09:48:39 2019 -0400 @@ -17,8 +17,8 @@ def isremotebooksenabled(ui): - return 'remotenames' in extensions._extensions and ui.configbool( - 'remotenames', 'bookmarks' + return b'remotenames' in extensions._extensions and ui.configbool( + b'remotenames', b'bookmarks' ) @@ -27,7 +27,7 @@ store = repo.bundlestore.store bundleid = index.getbundle(hex(unknownbinhead)) if bundleid is None: - raise error.Abort('%s head is not known' % hex(unknownbinhead)) + raise error.Abort(b'%s head is not known' % hex(unknownbinhead)) bundleraw = store.read(bundleid) return _makebundlefromraw(bundleraw)