Mercurial > hg
diff hgext/sparse.py @ 33293:c9cbf4de27ba
sparse: rename command to debugsparse
Sparse checkout is still highly experimental and not protected
by BC guarantees yet. We also haven't had a discussion on the UX.
To discourage use, we rename the sparse command to debugsparse.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 01 Jul 2017 10:29:27 -0700 |
parents | 1e9fd2c35ae3 |
children | a5921ad2eb99 |
line wrap: on
line diff
--- a/hgext/sparse.py Thu Jul 06 10:54:23 2017 -0700 +++ b/hgext/sparse.py Sat Jul 01 10:29:27 2017 -0700 @@ -335,7 +335,7 @@ # Prevent adding files that are outside the sparse checkout editfuncs = ['normal', 'add', 'normallookup', 'copy', 'remove', 'merge'] - hint = _('include file with `hg sparse --include <pattern>` or use ' + + hint = _('include file with `hg debugsparse --include <pattern>` or use ' + '`hg add -s <file>` to include file directory while adding') for func in editfuncs: def _wrapper(orig, self, *args): @@ -622,7 +622,7 @@ repo.signaturecache = {} repo.__class__ = SparseRepo -@command('^sparse', [ +@command('^debugsparse', [ ('I', 'include', False, _('include files in the sparse checkout')), ('X', 'exclude', False, _('exclude files in the sparse checkout')), ('d', 'delete', False, _('delete an include/exclude rule')), @@ -635,7 +635,7 @@ ('', 'reset', False, _('makes the repo full again')), ] + commands.templateopts, _('[--OPTION] PATTERN...')) -def sparse(ui, repo, *pats, **opts): +def debugsparse(ui, repo, *pats, **opts): """make the current checkout sparse, or edit the existing checkout The sparse command is used to make the current checkout sparse.