diff tests/test-revert @ 2042:a514c7509fa9

small changes to revert command. fix bug 93: work with files that are in target manifest but not dirstate.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Mon, 03 Apr 2006 10:02:09 -0700
parents c9226bcc288d
children 968f036f93a4
line wrap: on
line diff
--- a/tests/test-revert	Mon Apr 03 14:56:00 2006 +0200
+++ b/tests/test-revert	Mon Apr 03 10:02:09 2006 -0700
@@ -37,7 +37,21 @@
 echo %% should say file not managed
 echo q > q
 hg revert q
+rm q
 echo %% should say file not found
 hg revert notfound
+hg rm a
+hg commit -m "second" -d "1000000 0"
+echo z > z
+hg add z
+hg st
+echo %% should add a, forget z
+hg revert -r0
+echo %% should forget a
+hg revert -rtip
+rm -f a *.orig
+echo %% should silently add a
+hg revert -r0 a
+hg st a
 
 true