diff --git a/hgext/remotefilelog/__init__.py b/hgext/remotefilelog/__init__.py --- a/hgext/remotefilelog/__init__.py +++ b/hgext/remotefilelog/__init__.py @@ -680,9 +680,10 @@ for ancestor in fctx.ancestors(): if ancestor.path() == fn: renamed = ancestor.renamed() - rcache[fn][ancestor.rev()] = renamed + rcache[fn][ancestor.rev()] = renamed and renamed[0] - return fctx.renamed() + renamed = fctx.renamed() + return renamed and renamed[0] except error.LookupError: return None diff --git a/tests/test-remotefilelog-log.t b/tests/test-remotefilelog-log.t --- a/tests/test-remotefilelog-log.t +++ b/tests/test-remotefilelog-log.t @@ -108,7 +108,7 @@ $ hg mv x z $ hg commit -m move $ hg log -f z -T '{desc} {file_copies}\n' -G - @ move z (x\x14\x06\xe7A\x18bv\x94&\x84\x17I\x1f\x01\x8aJ\x881R\xf0) (esc) + @ move z (x) : o x