comparison hgext/sparse.py @ 49358:05da1f1612db

sparse: drop the useless wrapping of `dirstate.set_untracked` The code of the wrapper only act in the case where the file is not tracked, so this has not effect for `untracked`. In addition the message explicitly mention `add` of a file and no test are breaking if we drop this. So we drop this for simplicity and cleanup
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 10 Jun 2022 23:29:04 +0200
parents 5b7a10ddb42f
children bd3519dc6741
comparison
equal deleted inserted replaced
49357:5b7a10ddb42f 49358:05da1f1612db
213 """ 213 """
214 214
215 # Prevent adding files that are outside the sparse checkout 215 # Prevent adding files that are outside the sparse checkout
216 editfuncs = [ 216 editfuncs = [
217 b'set_tracked', 217 b'set_tracked',
218 b'set_untracked',
219 b'copy', 218 b'copy',
220 ] 219 ]
221 hint = _( 220 hint = _(
222 b'include file with `hg debugsparse --include <pattern>` or use ' 221 b'include file with `hg debugsparse --include <pattern>` or use '
223 + b'`hg add -s <file>` to include file directory while adding' 222 + b'`hg add -s <file>` to include file directory while adding'