mirror of
https://github.com/frej/fast-export.git
synced 2025-11-01 00:45:47 +01:00
Compare changes only with the first parent
It's not necessary to check both parents. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
@@ -111,9 +111,8 @@ def get_filechanges(repo,revision,parents,files,mleft):
|
|||||||
# for many files comparing checksums is expensive so only do it for
|
# for many files comparing checksums is expensive so only do it for
|
||||||
# merges where we really need it due to hg's revlog logic
|
# merges where we really need it due to hg's revlog logic
|
||||||
modified,removed=[],[]
|
modified,removed=[],[]
|
||||||
for p in parents:
|
mright=repo[parents[0]].manifest()
|
||||||
mright=repo[p].manifest()
|
modified,removed=split_dict(mleft,mright,modified,removed)
|
||||||
modified,removed=split_dict(mleft,mright,modified,removed)
|
|
||||||
modified.sort()
|
modified.sort()
|
||||||
removed.sort()
|
removed.sort()
|
||||||
return modified,removed
|
return modified,removed
|
||||||
|
|||||||
Reference in New Issue
Block a user