##// END OF EJS Templates
remotefilelog: fix {file_copies} template keyword...
Martin von Zweigbergk -
r41228:2338eab5 default
parent child Browse files
Show More
@@ -680,9 +680,10 b' def getrenamedfn(repo, endrev=None):'
680 for ancestor in fctx.ancestors():
680 for ancestor in fctx.ancestors():
681 if ancestor.path() == fn:
681 if ancestor.path() == fn:
682 renamed = ancestor.renamed()
682 renamed = ancestor.renamed()
683 rcache[fn][ancestor.rev()] = renamed
683 rcache[fn][ancestor.rev()] = renamed and renamed[0]
684
684
685 return fctx.renamed()
685 renamed = fctx.renamed()
686 return renamed and renamed[0]
686 except error.LookupError:
687 except error.LookupError:
687 return None
688 return None
688
689
@@ -108,7 +108,7 b' Trace renames'
108 $ hg mv x z
108 $ hg mv x z
109 $ hg commit -m move
109 $ hg commit -m move
110 $ hg log -f z -T '{desc} {file_copies}\n' -G
110 $ hg log -f z -T '{desc} {file_copies}\n' -G
111 @ move z (x\x14\x06\xe7A\x18bv\x94&\x84\x17I\x1f\x01\x8aJ\x881R\xf0) (esc)
111 @ move z (x)
112 :
112 :
113 o x
113 o x
114
114
General Comments 0
You need to be logged in to leave comments. Login now