Mercurial > hg-stable
diff tests/test-glog.t @ 35548:b14c8bcfbad9
log: drop unused expr from return value of getlogrevs()
Future patches will move some processing of the --follow option out of
_makelogrevset(), where the returned 'expr' value will be less consistent
with the 'revs'. So let's remove it from the public interface.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 22 Oct 2017 22:49:11 +0900 |
parents | a7f7eff4ec08 |
children | 99a25bde65a3 |
line wrap: on
line diff
--- a/tests/test-glog.t Thu Jan 04 12:00:18 2018 +0900 +++ b/tests/test-glog.t Sun Oct 22 22:49:11 2017 +0900 @@ -90,10 +90,16 @@ > revsetlang, > ) > + > def logrevset(repo, pats, opts): + > revs = cmdutil._logrevs(repo, opts) + > if not revs: + > return None + > return cmdutil._makelogrevset(repo, pats, opts, revs)[0] + > > def uisetup(ui): > def printrevset(orig, ui, repo, *pats, **opts): > if opts.get('print_revset'): - > expr = cmdutil.getlogrevs(repo, pats, opts)[1] + > expr = logrevset(repo, pats, opts) > if expr: > tree = revsetlang.parse(expr) > else: