comparison mercurial/obsolete.py @ 34388:ddcef6d0b0ef

obsolete: clean createmarkers part about operation I will add another experiment in createmarkers, add a comment and some blank lines for aesthetic sake. Differential Revision: https://phab.mercurial-scm.org/D532
author Boris Feld <boris.feld@octobus.net>
date Thu, 06 Jul 2017 14:46:07 +0200
parents 6b724caa878d
children b6692ba7d5b0
comparison
equal deleted inserted replaced
34387:c4594d38b2da 34388:ddcef6d0b0ef
1026 # prepare metadata 1026 # prepare metadata
1027 if metadata is None: 1027 if metadata is None:
1028 metadata = {} 1028 metadata = {}
1029 if 'user' not in metadata: 1029 if 'user' not in metadata:
1030 metadata['user'] = repo.ui.username() 1030 metadata['user'] = repo.ui.username()
1031
1032 # Operation metadata handling
1031 useoperation = repo.ui.configbool('experimental', 1033 useoperation = repo.ui.configbool('experimental',
1032 'stabilization.track-operation') 1034 'stabilization.track-operation')
1033 if useoperation and operation: 1035 if useoperation and operation:
1034 metadata['operation'] = operation 1036 metadata['operation'] = operation
1037
1035 tr = repo.transaction('add-obsolescence-marker') 1038 tr = repo.transaction('add-obsolescence-marker')
1036 try: 1039 try:
1037 markerargs = [] 1040 markerargs = []
1038 for rel in relations: 1041 for rel in relations:
1039 prec = rel[0] 1042 prec = rel[0]