mercurial/commands.py
changeset 24189 8b4b9ee6001a
parent 24171 9cb1f82a2571
child 24191 8fe5fc8d7b8e
--- a/mercurial/commands.py	Tue Feb 24 14:12:13 2015 +0100
+++ b/mercurial/commands.py	Fri Feb 06 11:04:55 2015 -0800
@@ -4478,6 +4478,10 @@
     Returns 0 on success.
 
     """
+    if opts.get('follow') and opts.get('rev'):
+        opts['rev'] = [revset.formatspec('reverse(::%lr)', opts.get('rev'))]
+        del opts['follow']
+
     if opts.get('graph'):
         return cmdutil.graphlog(ui, repo, *pats, **opts)