changeset 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 20589d3bda6d
children 1c66497261b2
files mercurial/repair.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/repair.py	Tue Dec 29 15:02:13 2015 +0000
+++ b/mercurial/repair.py	Tue Dec 29 10:21:39 2015 -0800
@@ -74,7 +74,8 @@
     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']: