diff tests/test-issue660.t @ 19510:8b190adb7ee3 stable

revert: make backup when unforgetting a file (issue3423) This skips the backup if it would be a duplicate.
author Matt Mackall <mpm@selenic.com>
date Fri, 26 Jul 2013 17:08:05 -0500
parents 9910f60a37ee
children 2fc86d92c4a9
line wrap: on
line diff
--- a/tests/test-issue660.t	Fri Jul 26 15:42:10 2013 -0500
+++ b/tests/test-issue660.t	Fri Jul 26 17:08:05 2013 -0500
@@ -73,6 +73,15 @@
 
   $ hg st
 
+Issue3423:
+
+  $ hg forget a
+  $ echo zed > a
+  $ hg revert a
+  $ hg st
+  ? a.orig
+  $ rm a.orig
+
 addremove:
 
   $ rm -r a b