graphlog: do not bypass commands.log so that -fr works
Since
8b4b9ee6001a, opts dict can be modified in commands.log() before calling
cmdutil.graphlog().
--- 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