lfs: use %d to encode int, not str()
Differential Revision: https://phab.mercurial-scm.org/D2567
--- a/hgext/lfs/wrapper.py Fri Mar 02 11:07:07 2018 -0500
+++ b/hgext/lfs/wrapper.py Fri Mar 02 11:07:25 2018 -0500
@@ -90,7 +90,7 @@
# replace contents with metadata
longoid = 'sha256:%s' % oid
- metadata = pointer.gitlfspointer(oid=longoid, size=str(len(text)))
+ metadata = pointer.gitlfspointer(oid=longoid, size='%d' % len(text))
# by default, we expect the content to be binary. however, LFS could also
# be used for non-binary content. add a special entry for non-binary data.