##// END OF EJS Templates
fakemergerecord: take wlock to write the merge state...
Pierre-Yves David -
r29754:b303b381 default
parent child Browse files
Show More
@@ -16,6 +16,7 b' command = cmdutil.command(cmdtable)'
16 [('X', 'mandatory', None, 'add a fake mandatory record'),
16 [('X', 'mandatory', None, 'add a fake mandatory record'),
17 ('x', 'advisory', None, 'add a fake advisory record')], '')
17 ('x', 'advisory', None, 'add a fake advisory record')], '')
18 def fakemergerecord(ui, repo, *pats, **opts):
18 def fakemergerecord(ui, repo, *pats, **opts):
19 with repo.wlock():
19 ms = merge.mergestate.read(repo)
20 ms = merge.mergestate.read(repo)
20 records = ms._makerecords()
21 records = ms._makerecords()
21 if opts.get('mandatory'):
22 if opts.get('mandatory'):
General Comments 0
You need to be logged in to leave comments. Login now