hgext/largefiles/overrides.py
changeset 16232 877aea86fb73
parent 16120 47ee41fcf42b
parent 16231 ce292f1379ba
child 16245 a18ad914aa21
equal deleted inserted replaced
16229:5cb2693e1a60 16232:877aea86fb73
   155         for f in remove:
   155         for f in remove:
   156             if not after:
   156             if not after:
   157                 # If this is being called by addremove, notify the user that we
   157                 # If this is being called by addremove, notify the user that we
   158                 # are removing the file.
   158                 # are removing the file.
   159                 if getattr(repo, "_isaddremove", False):
   159                 if getattr(repo, "_isaddremove", False):
   160                     ui.status(_('removing %s\n' % f))
   160                     ui.status(_('removing %s\n') % f)
   161                 if os.path.exists(repo.wjoin(f)):
   161                 if os.path.exists(repo.wjoin(f)):
   162                     util.unlinkpath(repo.wjoin(f))
   162                     util.unlinkpath(repo.wjoin(f))
   163             lfdirstate.remove(f)
   163             lfdirstate.remove(f)
   164         lfdirstate.write()
   164         lfdirstate.write()
   165         forget = [lfutil.standin(f) for f in forget]
   165         forget = [lfutil.standin(f) for f in forget]
   680         heads = lfutil.getcurrentheads(repo)
   680         heads = lfutil.getcurrentheads(repo)
   681         newheads = set(heads).difference(set(oldheads))
   681         newheads = set(heads).difference(set(oldheads))
   682         for head in newheads:
   682         for head in newheads:
   683             (cached, missing) = lfcommands.cachelfiles(ui, repo, head)
   683             (cached, missing) = lfcommands.cachelfiles(ui, repo, head)
   684             numcached += len(cached)
   684             numcached += len(cached)
   685         ui.status(_("%d largefiles cached\n" % numcached))
   685         ui.status(_("%d largefiles cached\n") % numcached)
   686     return result
   686     return result
   687 
   687 
   688 def override_rebase(orig, ui, repo, **opts):
   688 def override_rebase(orig, ui, repo, **opts):
   689     repo._isrebasing = True
   689     repo._isrebasing = True
   690     try:
   690     try: