Mercurial > hg-stable
changeset 36632:dcb6fbaa43a8
lfs: use %d to encode int, not str()
Differential Revision: https://phab.mercurial-scm.org/D2567
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 02 Mar 2018 11:07:25 -0500 |
parents | e30be4d2ac60 |
children | f6b9f9ddd0de |
files | hgext/lfs/wrapper.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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.