##// END OF EJS Templates
with: use context manager in subrepo storeclean
Bryan O'Sullivan -
r27844:469b86c4 default
parent child Browse files
Show More
@@ -631,11 +631,8 b' class hgsubrepo(abstractsubrepo):'
631 self._initrepo(r, state[0], create)
631 self._initrepo(r, state[0], create)
632
632
633 def storeclean(self, path):
633 def storeclean(self, path):
634 lock = self._repo.lock()
634 with self._repo.lock():
635 try:
636 return self._storeclean(path)
635 return self._storeclean(path)
637 finally:
638 lock.release()
639
636
640 def _storeclean(self, path):
637 def _storeclean(self, path):
641 clean = True
638 clean = True
General Comments 0
You need to be logged in to leave comments. Login now