hgext/largefiles/lfcommands.py
changeset 49960 7a8bfc05b691
parent 49959 c166b212bdee
child 50017 1a2360f7bb35
equal deleted inserted replaced
49959:c166b212bdee 49960:7a8bfc05b691
   515 
   515 
   516         if filelist is not None:
   516         if filelist is not None:
   517             filelist = set(filelist)
   517             filelist = set(filelist)
   518             lfiles = [f for f in lfiles if f in filelist]
   518             lfiles = [f for f in lfiles if f in filelist]
   519 
   519 
   520         with lfdirstate.parentchange(repo):
   520         with lfdirstate.changing_parents(repo):
   521             update = {}
   521             update = {}
   522             dropped = set()
   522             dropped = set()
   523             updated, removed = 0, 0
   523             updated, removed = 0, 0
   524             wvfs = repo.wvfs
   524             wvfs = repo.wvfs
   525             wctx = repo[None]
   525             wctx = repo[None]
   578                 lfdirstate._map.reset_state(f)
   578                 lfdirstate._map.reset_state(f)
   579 
   579 
   580             statuswriter(_(b'getting changed largefiles\n'))
   580             statuswriter(_(b'getting changed largefiles\n'))
   581             cachelfiles(ui, repo, None, lfiles)
   581             cachelfiles(ui, repo, None, lfiles)
   582 
   582 
   583         with lfdirstate.parentchange(repo):
   583         with lfdirstate.changing_parents(repo):
   584             for lfile in lfiles:
   584             for lfile in lfiles:
   585                 update1 = 0
   585                 update1 = 0
   586 
   586 
   587                 expecthash = update.get(lfile)
   587                 expecthash = update.get(lfile)
   588                 if expecthash:
   588                 if expecthash: