D2567: lfs: use %d to encode int, not str()

2018-03-02 Thread durin42 (Augie Fackler)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGdcb6fbaa43a8: lfs: use %d to encode int, not str() 
(authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2567?vs=6390=6396

REVISION DETAIL
  https://phab.mercurial-scm.org/D2567

AFFECTED FILES
  hgext/lfs/wrapper.py

CHANGE DETAILS

diff --git a/hgext/lfs/wrapper.py b/hgext/lfs/wrapper.py
--- a/hgext/lfs/wrapper.py
+++ b/hgext/lfs/wrapper.py
@@ -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.



To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D2567: lfs: use %d to encode int, not str()

2018-03-02 Thread durin42 (Augie Fackler)
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2567

AFFECTED FILES
  hgext/lfs/wrapper.py

CHANGE DETAILS

diff --git a/hgext/lfs/wrapper.py b/hgext/lfs/wrapper.py
--- a/hgext/lfs/wrapper.py
+++ b/hgext/lfs/wrapper.py
@@ -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.



To: durin42, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel