remotefilelog: remove strkwargs()
authorGregory Szorc <gregory.szorc@gmail.com>
Thu, 14 Feb 2019 13:16:36 -0800
changeset 41696 3d5543599df8
parent 41695 e37bd7ccfee3
child 41697 e21183db2259
remotefilelog: remove strkwargs() The previous commit activated previously unused code paths on Python 3 and revealed that we were calling strkwargs() on a dict that already had str keys. The only caller of _forceprefetch() is _adjustlinknode() a few lines up and the static commonlogkwargs dict features str keys. Differential Revision: https://phab.mercurial-scm.org/D5958
hgext/remotefilelog/remotefilectx.py
--- a/hgext/remotefilelog/remotefilectx.py	Wed Feb 13 16:31:20 2019 -0800
+++ b/hgext/remotefilelog/remotefilectx.py	Thu Feb 14 13:16:36 2019 -0800
@@ -15,7 +15,6 @@
     context,
     error,
     phases,
-    pycompat,
     util,
 )
 from . import shallowutil
@@ -316,7 +315,7 @@
         finally:
             elapsed = time.time() - start
             repo.ui.log('linkrevfixup', logmsg + '\n', elapsed=elapsed * 1000,
-                        **pycompat.strkwargs(commonlogkwargs))
+                        **commonlogkwargs)
 
     def _verifylinknode(self, revs, linknode):
         """