hgext/largefiles/lfutil.py
changeset 31740 a40e979b9d97
parent 31739 4e446d31a744
child 32309 16a5cb4eedb7
--- a/hgext/largefiles/lfutil.py	Sat Apr 01 02:32:49 2017 +0900
+++ b/hgext/largefiles/lfutil.py	Sat Apr 01 02:32:49 2017 +0900
@@ -174,7 +174,7 @@
             fctx = pctx[standin(lfile)]
         except LookupError:
             fctx = None
-        if not fctx or fctx.data().strip() != hashfile(repo.wjoin(lfile)):
+        if not fctx or readasstandin(fctx) != hashfile(repo.wjoin(lfile)):
             modified.append(lfile)
         else:
             clean.append(lfile)
@@ -528,7 +528,7 @@
                     files.add(f)
         for fn in files:
             if isstandin(fn) and fn in ctx:
-                addfunc(fn, ctx[fn].data().strip())
+                addfunc(fn, readasstandin(ctx[fn]))
     repo.ui.progress(_('finding outgoing largefiles'), None)
 
 def updatestandinsbymatch(repo, match):