mirror of
				https://github.com/frej/fast-export.git
				synced 2025-10-31 16:35:48 +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 |       # 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() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user