Mercurial > public > mercurial-scm > hg-stable
diff tests/test-subrepo.t @ 15474:95174c381525
forget: support forgetting explicit paths in subrepos
Change the behavior of the forget command such that explicit paths in
subrepos are handled by forgetting the file in the subrepo. This eliminates the
previous behavior where if you called "hg forget" for an explicit path in a
subrepo, it would state that the file is already untracked.
author | David M. Carr <david@carrclan.us> |
---|---|
date | Wed, 09 Nov 2011 19:46:51 -0500 |
parents | d90b0b30464b |
children | 2371f4aea665 d6d7b56ec346 |
line wrap: on
line diff
--- a/tests/test-subrepo.t Wed Nov 09 19:46:49 2011 -0500 +++ b/tests/test-subrepo.t Wed Nov 09 19:46:51 2011 -0500 @@ -1006,12 +1006,12 @@ committing subrepository s Test behavior of forget for explicit path in subrepo: -Forgetting an explicit path in a subrepo currently gives a file untracked warn +Forgetting an explicit path in a subrepo untracks the file $ echo c19 > s/f19 $ hg add s/f19 $ hg st -S A s/f19 $ hg forget s/f19 - not removing s/f19: file is already untracked - [1] + $ hg st -S + ? s/f19 $ rm s/f19