Mercurial > public > mercurial-scm > hg-stable
diff mercurial/logcmdutil.py @ 38200:ec37df9042f9
templatekw: make getrenamed() return only filename, not nodeid
No callers cared about the nodeid and I want to make getrenamed() not
look up the node (although it's currently free, I hope to store copy
info in changesets and not include the nodeid).
Differential Revision: https://phab.mercurial-scm.org/D3666
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 26 Mar 2018 10:49:01 -0700 |
parents | 3fe1c9263024 |
children | f2f9bacf0587 |
line wrap: on
line diff
--- a/mercurial/logcmdutil.py Sat May 26 12:38:07 2018 +0900 +++ b/mercurial/logcmdutil.py Mon Mar 26 10:49:01 2018 -0700 @@ -865,7 +865,7 @@ for fn in ctx.files(): rename = getrenamed(fn, ctx.rev()) if rename: - copies.append((fn, rename[0])) + copies.append((fn, rename)) edges = edgefn(type, char, state, rev, parents) firstedge = next(edges) width = firstedge[2] @@ -893,7 +893,7 @@ for fn in ctx.files(): rename = getrenamed(fn, rev) if rename: - copies.append((fn, rename[0])) + copies.append((fn, rename)) displayer.show(ctx, copies=copies) displayer.flush(ctx) displayer.close()