Mercurial > hg-git
changeset 247:3c01e07b0252
look for renamed files only in files modified by the commit
author | Abderrahim Kitouni <a.kitouni@gmail.com> |
---|---|
date | Sat, 15 Aug 2009 22:41:45 +0100 |
parents | a3d54c38f214 |
children | bfe6fd2fdb9b |
files | git_handler.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/git_handler.py Mon Aug 10 16:07:13 2009 +0100 +++ b/git_handler.py Sat Aug 15 22:41:45 2009 +0100 @@ -306,7 +306,9 @@ extra_message += "branch : " + ctx.branch() + "\n" renames = [] - for f in ctx: + for f in ctx.files(): + if f not in ctx.manifest(): + continue rename = ctx.filectx(f).renamed() if rename: renames.append((rename[0], f))