tests/test-annotate.t
changeset 15829 2c480532f36e
parent 15528 a84698badf0b
child 16913 f2719b387380
--- a/tests/test-annotate.t	Tue Jan 10 13:48:42 2012 -0600
+++ b/tests/test-annotate.t	Tue Jan 10 10:18:19 2012 +0200
@@ -255,6 +255,18 @@
   abort: nosuchfile: no such file in rev e9e6b4fa872f
   [255]
 
+annotate file without '\n' on last line
+
+  $ printf "" > c
+  $ hg ci -A -m test -u nobody -d '1 0'
+  adding c
+  $ hg annotate c
+  $ printf "a\nb" > c
+  $ hg ci -m test
+  $ hg annotate c
+  [0-9]+: a (re)
+  [0-9]+: b (re)
+
 Test annotate with whitespace options
 
   $ cd ..