Mercurial > hg
comparison mercurial/templatekw.py @ 41772:52d4cb162902
templatekw: migrate to new method for getting copy info
Differential Revision: https://phab.mercurial-scm.org/D6012
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 26 Mar 2018 10:41:42 -0700 |
parents | 36b62a522814 |
children | e9b9ee9af4a9 |
comparison
equal
deleted
inserted
replaced
41771:1312afae2d51 | 41772:52d4cb162902 |
---|---|
127 return rcache[fn][rev] | 127 return rcache[fn][rev] |
128 | 128 |
129 # If linkrev != rev (i.e. rev not found in rcache) fallback to | 129 # If linkrev != rev (i.e. rev not found in rcache) fallback to |
130 # filectx logic. | 130 # filectx logic. |
131 try: | 131 try: |
132 renamed = repo[rev][fn].renamed() | 132 return repo[rev][fn].copysource() |
133 return renamed and renamed[0] | |
134 except error.LookupError: | 133 except error.LookupError: |
135 return None | 134 return None |
136 | 135 |
137 return getrenamed | 136 return getrenamed |
138 | 137 |