Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 31493:06d3c40fc3e7
graphlog: pass function arguments without expansion
It's annoying on Python 3 because keys must be unicode type. Let's stop using
**opts expansion when not necessary.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 14 Mar 2017 18:16:13 +0900 |
parents | 707f9fd2dcad |
children | 9b3577796291 |
comparison
equal
deleted
inserted
replaced
31492:cad95575dc46 | 31493:06d3c40fc3e7 |
---|---|
2210 edges = edgefn(type, char, lines, state, rev, parents) | 2210 edges = edgefn(type, char, lines, state, rev, parents) |
2211 for type, char, lines, coldata in edges: | 2211 for type, char, lines, coldata in edges: |
2212 graphmod.ascii(ui, state, type, char, lines, coldata) | 2212 graphmod.ascii(ui, state, type, char, lines, coldata) |
2213 displayer.close() | 2213 displayer.close() |
2214 | 2214 |
2215 def graphlog(ui, repo, *pats, **opts): | 2215 def graphlog(ui, repo, pats, opts): |
2216 # Parameters are identical to log command ones | 2216 # Parameters are identical to log command ones |
2217 revs, expr, filematcher = getgraphlogrevs(repo, pats, opts) | 2217 revs, expr, filematcher = getgraphlogrevs(repo, pats, opts) |
2218 revdag = graphmod.dagwalker(repo, revs) | 2218 revdag = graphmod.dagwalker(repo, revs) |
2219 | 2219 |
2220 getrenamed = None | 2220 getrenamed = None |