largefiles: use strip() instead of slicing to get rid of EOL of standin
This slicing prevents from replacing SHA-1 by another (= longer hash
value) in the future.
--- a/hgext/largefiles/basestore.py Mon Mar 27 09:44:36 2017 +0900
+++ b/hgext/largefiles/basestore.py Mon Mar 27 09:44:36 2017 +0900
@@ -130,7 +130,7 @@
key = (filename, fctx.filenode())
if key not in verified:
verified.add(key)
- expectedhash = fctx.data()[0:40]
+ expectedhash = fctx.data().strip()
filestocheck.append((cset, filename, expectedhash))
failed = self._verifyfiles(contents, filestocheck)