tests/test-grep.t
changeset 37447 067e8d1178a2
parent 37133 a2a6755a3def
child 37449 a0d71618074f
--- a/tests/test-grep.t	Fri Apr 06 13:11:40 2018 -0700
+++ b/tests/test-grep.t	Sun Mar 25 18:27:43 2018 +0900
@@ -237,6 +237,17 @@
   $ hg grep -f port
   [1]
 
+Test wdir
+(at least, this shouldn't crash)
+
+  $ hg up -q
+  $ echo wport >> port2
+  $ hg stat
+  M port2
+  $ hg grep -r 'wdir()' port
+  abort: data/port2.i@303030303030: no node!
+  [255]
+
   $ cd ..
   $ hg init t2
   $ cd t2