comparison mercurial/repair.py @ 27553:56caab876bd8

repair: improves documentation of strip regarding locks This patch adds a comment making it clear that we should hold a lock before calling repair.strip. The wording is the same than what we have for obsolete.createmarkers
author Laurent Charignon <lcharignon@fb.com>
date Tue, 29 Dec 2015 10:21:39 -0800
parents 5f2e4eb08e41
children 0da102e4f203
comparison
equal deleted inserted replaced
27552:20589d3bda6d 27553:56caab876bd8
72 collectone(repo.file(fname)) 72 collectone(repo.file(fname))
73 73
74 return s 74 return s
75 75
76 def strip(ui, repo, nodelist, backup=True, topic='backup'): 76 def strip(ui, repo, nodelist, backup=True, topic='backup'):
77 77 # This function operates within a transaction of its own, but does
78 # not take any lock on the repo.
78 # Simple way to maintain backwards compatibility for this 79 # Simple way to maintain backwards compatibility for this
79 # argument. 80 # argument.
80 if backup in ['none', 'strip']: 81 if backup in ['none', 'strip']:
81 backup = False 82 backup = False
82 83