##// END OF EJS Templates
largefiles: replace use of synclfdirstate with drop...
Pulkit Goyal -
r48458:f0cf5604 default
parent child Browse files
Show More
@@ -565,20 +565,19 b' def updatelfiles('
565 # largefile processing might be slow and be interrupted - be prepared
565 # largefile processing might be slow and be interrupted - be prepared
566 lfdirstate.write()
566 lfdirstate.write()
567
567
568 with lfdirstate.parentchange():
568 if lfiles:
569 if lfiles:
569 lfiles = [f for f in lfiles if f not in dropped]
570 lfiles = [f for f in lfiles if f not in dropped]
571
572 for f in dropped:
573 repo.wvfs.unlinkpath(lfutil.standin(f))
574
570
575 # This needs to happen for dropped files, otherwise they stay in
571 for f in dropped:
576 # the M state.
572 repo.wvfs.unlinkpath(lfutil.standin(f))
577 lfutil.synclfdirstate(repo, lfdirstate, f, normallookup)
573 # This needs to happen for dropped files, otherwise they stay in
574 # the M state.
575 lfdirstate._drop(f)
578
576
579 statuswriter(_(b'getting changed largefiles\n'))
577 statuswriter(_(b'getting changed largefiles\n'))
580 cachelfiles(ui, repo, None, lfiles)
578 cachelfiles(ui, repo, None, lfiles)
581
579
580 with lfdirstate.parentchange():
582 for lfile in lfiles:
581 for lfile in lfiles:
583 update1 = 0
582 update1 = 0
584
583
General Comments 0
You need to be logged in to leave comments. Login now