mirror of
				https://github.com/frej/fast-export.git
				synced 2025-10-31 08:35:46 +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 | ||||
|       # merges where we really need it due to hg's revlog logic | ||||
|       modified,removed=[],[] | ||||
|       for p in parents: | ||||
|         mright=repo[p].manifest() | ||||
|         modified,removed=split_dict(mleft,mright,modified,removed) | ||||
|       mright=repo[parents[0]].manifest() | ||||
|       modified,removed=split_dict(mleft,mright,modified,removed) | ||||
|       modified.sort() | ||||
|       removed.sort() | ||||
|   return modified,removed | ||||
|   | ||||
		Reference in New Issue
	
	Block a user