diff hgext/largefiles/reposetup.py @ 15796:3e5b6045ccfc

largefiles: factor out a copyalltostore() function
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Sun, 08 Jan 2012 14:33:10 +0100
parents 0d91211dd12f
children bf502ccc46d7
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py	Sat Jan 07 19:11:31 2012 +0100
+++ b/hgext/largefiles/reposetup.py	Sun Jan 08 14:33:10 2012 +0100
@@ -256,12 +256,7 @@
         # cache.
         def commitctx(self, *args, **kwargs):
             node = super(lfiles_repo, self).commitctx(*args, **kwargs)
-            ctx = self[node]
-            for filename in ctx.files():
-                if lfutil.isstandin(filename) and filename in ctx.manifest():
-                    realfile = lfutil.splitstandin(filename)
-                    lfutil.copytostore(self, ctx.node(), realfile)
-
+            lfutil.copyalltostore(self, node)
             return node
 
         # Before commit, largefile standins have not had their