Mercurial > hg
comparison hgext/largefiles/lfutil.py @ 47700:9217ab0ecdb8
largefile: use `update_file` instead of `remove` in `synclfdirstate`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11142
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 19 Jul 2021 03:20:28 +0200 |
parents | 034979d24c7b |
children | 95b864a670df |
comparison
equal
deleted
inserted
replaced
47699:034979d24c7b | 47700:9217ab0ecdb8 |
---|---|
562 else: | 562 else: |
563 lfdirstate.normal(lfile) | 563 lfdirstate.normal(lfile) |
564 elif state == b'm': | 564 elif state == b'm': |
565 lfdirstate.normallookup(lfile) | 565 lfdirstate.normallookup(lfile) |
566 elif state == b'r': | 566 elif state == b'r': |
567 lfdirstate.remove(lfile) | 567 lfdirstate.update_file(lfile, p1_tracked=True, wc_tracked=False) |
568 elif state == b'a': | 568 elif state == b'a': |
569 lfdirstate.add(lfile) | 569 lfdirstate.add(lfile) |
570 | 570 |
571 | 571 |
572 def markcommitted(orig, ctx, node): | 572 def markcommitted(orig, ctx, node): |