Mercurial > hg
changeset 24200:8e1f1673aa9a
graphlog: do not bypass commands.log so that -fr works
Since 8b4b9ee6001a, opts dict can be modified in commands.log() before calling
cmdutil.graphlog().
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 04 Mar 2015 21:47:07 +0900 |
parents | 4047982904f8 |
children | 77ef059b3317 |
files | hgext/graphlog.py tests/test-glog.t |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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