diff -r 57875cf423c9 -r 2372284d9457 hgext/infinitepush/common.py --- a/hgext/infinitepush/common.py Sat Oct 05 10:29:34 2019 -0400 +++ b/hgext/infinitepush/common.py Sun Oct 06 09:45:02 2019 -0400 @@ -15,9 +15,12 @@ pycompat, ) + def isremotebooksenabled(ui): - return ('remotenames' in extensions._extensions and - ui.configbool('remotenames', 'bookmarks')) + return 'remotenames' in extensions._extensions and ui.configbool( + 'remotenames', 'bookmarks' + ) + def downloadbundle(repo, unknownbinhead): index = repo.bundlestore.index @@ -28,6 +31,7 @@ bundleraw = store.read(bundleid) return _makebundlefromraw(bundleraw) + def _makebundlefromraw(data): fp = None fd, bundlefile = pycompat.mkstemp()