mercurial/commands.py
branchstable
changeset 12382 28ddf67198b2
parent 12129 07ac2a560fce
child 12383 f1e8d6f6e682
child 12385 9a93f4fb141b
--- a/mercurial/commands.py	Thu Sep 23 01:51:17 2010 +0200
+++ b/mercurial/commands.py	Thu Sep 23 01:23:16 2010 +0200
@@ -2533,7 +2533,11 @@
 
         revmatchfn = None
         if opts.get('patch') or opts.get('stat'):
-            revmatchfn = cmdutil.match(repo, fns, default='path')
+            if opts.get('follow') or opts.get('follow_first'):
+                # note: this might be wrong when following through merges
+                revmatchfn = cmdutil.match(repo, fns, default='path')
+            else:
+                revmatchfn = matchfn
 
         displayer.show(ctx, copies=copies, matchfn=revmatchfn)