comparison mercurial/context.py @ 43147:54e943b28101

sidedatacopies: move various copies related function to the copies modules We will need to access these logic form the copies module. So we move them from their higher level module to the lower level `copies` module. We cannot use them from their top level module as it would create cycles. Differential Revision: https://phab.mercurial-scm.org/D6954
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 06 Oct 2019 23:36:51 -0400
parents 0171483b082f
children 6ada8a274b9c
comparison
equal deleted inserted replaced
43146:0171483b082f 43147:54e943b28101
544 elif source != b'compatibility': 544 elif source != b'compatibility':
545 # filelog mode, ignore any changelog content 545 # filelog mode, ignore any changelog content
546 filesadded = None 546 filesadded = None
547 if filesadded is None: 547 if filesadded is None:
548 if compute_on_none: 548 if compute_on_none:
549 filesadded = scmutil.computechangesetfilesadded(self) 549 filesadded = copies.computechangesetfilesadded(self)
550 else: 550 else:
551 filesadded = [] 551 filesadded = []
552 return filesadded 552 return filesadded
553 553
554 def filesremoved(self): 554 def filesremoved(self):
563 elif source != b'compatibility': 563 elif source != b'compatibility':
564 # filelog mode, ignore any changelog content 564 # filelog mode, ignore any changelog content
565 filesremoved = None 565 filesremoved = None
566 if filesremoved is None: 566 if filesremoved is None:
567 if compute_on_none: 567 if compute_on_none:
568 filesremoved = scmutil.computechangesetfilesremoved(self) 568 filesremoved = copies.computechangesetfilesremoved(self)
569 else: 569 else:
570 filesremoved = [] 570 filesremoved = []
571 return filesremoved 571 return filesremoved
572 572
573 @propertycache 573 @propertycache