hgext/largefiles/reposetup.py
changeset 15796 3e5b6045ccfc
parent 15794 0d91211dd12f
child 15982 bf502ccc46d7
equal deleted inserted replaced
15795:8bed8551d535 15796:3e5b6045ccfc
   254 
   254 
   255         # As part of committing, copy all of the largefiles into the
   255         # As part of committing, copy all of the largefiles into the
   256         # cache.
   256         # cache.
   257         def commitctx(self, *args, **kwargs):
   257         def commitctx(self, *args, **kwargs):
   258             node = super(lfiles_repo, self).commitctx(*args, **kwargs)
   258             node = super(lfiles_repo, self).commitctx(*args, **kwargs)
   259             ctx = self[node]
   259             lfutil.copyalltostore(self, node)
   260             for filename in ctx.files():
       
   261                 if lfutil.isstandin(filename) and filename in ctx.manifest():
       
   262                     realfile = lfutil.splitstandin(filename)
       
   263                     lfutil.copytostore(self, ctx.node(), realfile)
       
   264 
       
   265             return node
   260             return node
   266 
   261 
   267         # Before commit, largefile standins have not had their
   262         # Before commit, largefile standins have not had their
   268         # contents updated to reflect the hash of their largefile.
   263         # contents updated to reflect the hash of their largefile.
   269         # Do that here.
   264         # Do that here.