diff git_handler.py @ 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 c6d268886405
children bfe6fd2fdb9b
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))