graphlog: do not bypass commands.log so that -fr works
authorYuya Nishihara <yuya@tcha.org>
Wed, 04 Mar 2015 21:47:07 +0900
changeset 24200 8e1f1673aa9a
parent 24199 4047982904f8
child 24201 77ef059b3317
graphlog: do not bypass commands.log so that -fr works Since 8b4b9ee6001a, opts dict can be modified in commands.log() before calling cmdutil.graphlog().
hgext/graphlog.py
tests/test-glog.t
--- a/hgext/graphlog.py	Wed Jan 21 14:45:24 2015 -0800
+++ b/hgext/graphlog.py	Wed Mar 04 21:47:07 2015 +0900
@@ -54,4 +54,5 @@
     Nodes printed as an @ character are parents of the working
     directory.
     """
-    return cmdutil.graphlog(ui, repo, *pats, **opts)
+    opts['graph'] = True
+    return commands.log(ui, repo, *pats, **opts)
--- a/tests/test-glog.t	Wed Jan 21 14:45:24 2015 -0800
+++ b/tests/test-glog.t	Wed Mar 04 21:47:07 2015 +0900
@@ -2243,6 +2243,14 @@
         ('symbol', 'rev')
         ('symbol', '6'))))
 
+Test --follow with --rev of graphlog extension
+
+  $ hg --config extensions.graphlog= glog -qfr1
+  o  1:216d4c92cf98
+  |
+  o  0:f8035bb17114
+  
+
 Test subdir
 
   $ hg up -q 3