comparison tests/test-subrepo-recursion.t @ 15912:2bd54ffaa27e

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.
author David M. Carr <david@carrclan.us>
date Tue, 17 Jan 2012 19:10:59 -0500
parents c654eac03452
children f11eee00c652 b254f827b7a6
comparison
equal deleted inserted replaced
15911:c654eac03452 15912:2bd54ffaa27e
195 $ hg add foo/bar/z2.txt 195 $ hg add foo/bar/z2.txt
196 $ hg status -S 196 $ hg status -S
197 A foo/bar/z2.txt 197 A foo/bar/z2.txt
198 This is expected to forget the file, but is currently broken 198 This is expected to forget the file, but is currently broken
199 $ hg forget foo/bar/z2.txt 199 $ hg forget foo/bar/z2.txt
200 not removing foo/bar/z2.txt: file is already untracked
201 [1]
202 $ hg status -S
203 A foo/bar/z2.txt
204 When fixed, remove the next two commands
205 $ hg forget -R foo/bar foo/bar/z2.txt
206 $ hg status -S 200 $ hg status -S
207 ? foo/bar/z2.txt 201 ? foo/bar/z2.txt
208 $ rm foo/bar/z2.txt 202 $ rm foo/bar/z2.txt
209 203
210 Log with the relationships between repo and its subrepo: 204 Log with the relationships between repo and its subrepo: