diff tests/test-largefiles-cache.t @ 23619:70afc58c32d3 stable

largefiles: fix a spurious missing file warning with forget (issue4053) If an uncommitted and deleted file was forgotten, a warning would be emitted, even though the operation was successful. See the previous patch for 'remove -A' for the exact circumstances, and details about the cause.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 21 Dec 2014 15:06:54 -0500
parents 9dd5dfeaab4c
children d8e0c591781c
line wrap: on
line diff
--- a/tests/test-largefiles-cache.t	Sun Dec 21 15:04:13 2014 -0500
+++ b/tests/test-largefiles-cache.t	Sun Dec 21 15:06:54 2014 -0500
@@ -136,7 +136,8 @@
 #endif
 
 Test issue 4053 (remove --after on a deleted, uncommitted file shouldn't say
-it is missing, but a remove on a nonexistant unknown file still should)
+it is missing, but a remove on a nonexistant unknown file still should.  Same
+for a forget.)
 
   $ cd src
   $ touch x
@@ -146,3 +147,9 @@
   ENOENT: * (glob)
   not removing y: file is untracked
   [1]
+  $ hg add y
+  $ mv y z
+  $ hg forget y z ENOENT
+  ENOENT: * (glob)
+  not removing z: file is already untracked
+  [1]