Mercurial > hg > hg-git
comparison 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 |
comparison
equal
deleted
inserted
replaced
246:a3d54c38f214 | 247:3c01e07b0252 |
---|---|
304 if not ctx.branch() == 'default': | 304 if not ctx.branch() == 'default': |
305 add_extras = True | 305 add_extras = True |
306 extra_message += "branch : " + ctx.branch() + "\n" | 306 extra_message += "branch : " + ctx.branch() + "\n" |
307 | 307 |
308 renames = [] | 308 renames = [] |
309 for f in ctx: | 309 for f in ctx.files(): |
310 if f not in ctx.manifest(): | |
311 continue | |
310 rename = ctx.filectx(f).renamed() | 312 rename = ctx.filectx(f).renamed() |
311 if rename: | 313 if rename: |
312 renames.append((rename[0], f)) | 314 renames.append((rename[0], f)) |
313 | 315 |
314 if renames: | 316 if renames: |