diff 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
line wrap: on
line diff
--- a/tests/test-subrepo-recursion.t	Tue Jan 17 19:10:58 2012 -0500
+++ b/tests/test-subrepo-recursion.t	Tue Jan 17 19:10:59 2012 -0500
@@ -197,12 +197,6 @@
   A foo/bar/z2.txt
 This is expected to forget the file, but is currently broken
   $ hg forget foo/bar/z2.txt
-  not removing foo/bar/z2.txt: file is already untracked
-  [1]
-  $ hg status -S
-  A foo/bar/z2.txt
-When fixed, remove the next two commands
-  $ hg forget -R foo/bar foo/bar/z2.txt
   $ hg status -S
   ? foo/bar/z2.txt
   $ rm foo/bar/z2.txt