# HG changeset patch # User Laurent Charignon # Date 2015-12-29 18:21:39 # Node ID 56caab876bd848dde6a1a15a59c09fa2cbc28b2d # Parent 20589d3bda6deb5a063a474a09fae9293f46b3bf 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 diff --git a/mercurial/repair.py b/mercurial/repair.py --- a/mercurial/repair.py +++ b/mercurial/repair.py @@ -74,7 +74,8 @@ def _collectbrokencsets(repo, files, str return s def strip(ui, repo, nodelist, backup=True, topic='backup'): - + # This function operates within a transaction of its own, but does + # not take any lock on the repo. # Simple way to maintain backwards compatibility for this # argument. if backup in ['none', 'strip']: