mirror of
https://github.com/frej/fast-export.git
synced 2025-11-01 08:55: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,8 +111,7 @@ def get_filechanges(repo,revision,parents,files,mleft):
|
||||
# for many files comparing checksums is expensive so only do it for
|
||||
# merges where we really need it due to hg's revlog logic
|
||||
modified,removed=[],[]
|
||||
for p in parents:
|
||||
mright=repo[p].manifest()
|
||||
mright=repo[parents[0]].manifest()
|
||||
modified,removed=split_dict(mleft,mright,modified,removed)
|
||||
modified.sort()
|
||||
removed.sort()
|
||||
|
||||
Reference in New Issue
Block a user