forget: fix subrepo recursion for explicit path handling
When support for handling explicit paths in subrepos was added to the forget
command (
95174c381525), subrepo recursion wasn't taken into account. This
change fixes that by pulling the majority of the logic of commands.forget into
cmdutil.forget, which can then be called from both there and subrepo.forget.
add: fix subrepo recursion for explicit path handling
When support for handling explicit paths in subrepos was added to the add
command (
9e99d2bbb1b1), subrepo recursion wasn't taken into account. This
change adds an explicitonly argument to cmdutil.add to allow controlling which
levels of recursion should include only explicit paths versus all matched
paths.
tests: add subrepo recursion tests for add/forget with explicit paths
When support for handling add/forget of explicit paths within subrepos was
added (
9e99d2bbb1b1/
95174c381525), nested subrepos weren't handled properly.
This change adds test coverage to expose the broken behavior, which will be
fixed in later patches.
bookmarks: backout locking change in
12dea4d998ec
Repo lock only applies to data in .hg/store/