diff tests/test-remove.t @ 17848:66f0c78350ab stable

remove: don't return error on directories with tracked files Spotted by Sergey <sergemp@mail.ru>
author Matt Mackall <mpm@selenic.com>
date Mon, 22 Oct 2012 16:06:47 -0500
parents f2719b387380
children 3125af2d99d2
line wrap: on
line diff
--- a/tests/test-remove.t	Sat Oct 20 21:43:46 2012 -0400
+++ b/tests/test-remove.t	Mon Oct 22 16:06:47 2012 -0500
@@ -265,4 +265,17 @@
   nothing changed
   [1]
 
-  $ cd ..
+handling of untracked directories and missing files
+
+  $ mkdir d1
+  $ echo a > d1/a
+  $ hg rm --after d1
+  not removing d1: no tracked files
+  [1]
+  $ hg add d1/a
+  $ rm d1/a
+  $ hg rm --after d1
+  removing d1/a
+  $ hg rm --after nosuch
+  nosuch: No such file or directory
+  [1]