Mercurial > hg
comparison hgext/mq.py @ 47733:4b7eb01db10b
mq: replace `normallookup` call with newer API
This align MQ behavior with what what `scmutil.movedirstate` does. (it should
probably use `scmutil.movedirstate` itself.
Differential Revision: https://phab.mercurial-scm.org/D11175
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 18 Jul 2021 22:50:02 +0200 |
parents | d905eff405d1 |
children | 8c73818c67dd |
comparison
equal
deleted
inserted
replaced
47732:dc610e325302 | 47733:4b7eb01db10b |
---|---|
2049 mm.append(m[i]) | 2049 mm.append(m[i]) |
2050 del m[i] | 2050 del m[i] |
2051 for f in m: | 2051 for f in m: |
2052 repo.dirstate.update_file_p1(f, p1_tracked=True) | 2052 repo.dirstate.update_file_p1(f, p1_tracked=True) |
2053 for f in mm: | 2053 for f in mm: |
2054 repo.dirstate.normallookup(f) | 2054 repo.dirstate.update_file_p1(f, p1_tracked=True) |
2055 for f in forget: | 2055 for f in forget: |
2056 repo.dirstate.drop(f) | 2056 repo.dirstate.drop(f) |
2057 | 2057 |
2058 user = ph.user or ctx.user() | 2058 user = ph.user or ctx.user() |
2059 | 2059 |