--- a/tests/test-log.t Mon Jul 28 19:48:59 2014 -0400
+++ b/tests/test-log.t Tue Jul 22 22:40:16 2014 -0700
@@ -78,12 +78,52 @@
summary: c
--f, directory
+-f, non-existent directory
$ hg log -f dir
abort: cannot follow file not in parent revision: "dir"
[255]
+-f, directory
+
+ $ hg up -q 3
+ $ hg log -f dir
+ changeset: 2:f8954cd4dc1f
+ user: test
+ date: Thu Jan 01 00:00:03 1970 +0000
+ summary: c
+
+-f, directory with --patch
+
+ $ hg log -f dir -p
+ changeset: 2:f8954cd4dc1f
+ user: test
+ date: Thu Jan 01 00:00:03 1970 +0000
+ summary: c
+
+ diff -r d89b0a12d229 -r f8954cd4dc1f dir/b
+ --- /dev/null* (glob)
+ +++ b/dir/b* (glob)
+ @@ -0,0 +1,1 @@
+ +a
+
+
+-f, pattern
+
+ $ hg log -f -I 'dir**' -p
+ changeset: 2:f8954cd4dc1f
+ user: test
+ date: Thu Jan 01 00:00:03 1970 +0000
+ summary: c
+
+ diff -r d89b0a12d229 -r f8954cd4dc1f dir/b
+ --- /dev/null* (glob)
+ +++ b/dir/b* (glob)
+ @@ -0,0 +1,1 @@
+ +a
+
+ $ hg up -q 4
+
-f, a wrong style
$ hg log -f -l1 --style something