##// END OF EJS Templates
obsolete: use context manager for transaction in createmarkers()...
Martin von Zweigbergk -
r35590:8b729856 default
parent child Browse files
Show More
@@ -1081,8 +1081,7 b' def createmarkers(repo, relations, flag='
1081 saveeffectflag = repo.ui.configbool('experimental',
1081 saveeffectflag = repo.ui.configbool('experimental',
1082 'evolution.effect-flags')
1082 'evolution.effect-flags')
1083
1083
1084 tr = repo.transaction('add-obsolescence-marker')
1084 with repo.transaction('add-obsolescence-marker') as tr:
1085 try:
1086 markerargs = []
1085 markerargs = []
1087 for rel in relations:
1086 for rel in relations:
1088 prec = rel[0]
1087 prec = rel[0]
@@ -1123,6 +1122,3 b' def createmarkers(repo, relations, flag='
1123 date=date, metadata=localmetadata,
1122 date=date, metadata=localmetadata,
1124 ui=repo.ui)
1123 ui=repo.ui)
1125 repo.filteredrevcache.clear()
1124 repo.filteredrevcache.clear()
1126 tr.close()
1127 finally:
1128 tr.release()
General Comments 0
You need to be logged in to leave comments. Login now