##// END OF EJS Templates
with: use context manager in largefiles commit
Bryan O'Sullivan -
r27842:002108b2 default
parent child Browse files
Show More
@@ -263,15 +263,12 b' def reposetup(ui, repo):'
263 263 force=False, editor=False, extra={}):
264 264 orig = super(lfilesrepo, self).commit
265 265
266 wlock = self.wlock()
267 try:
266 with self.wlock():
268 267 lfcommithook = self._lfcommithooks[-1]
269 268 match = lfcommithook(self, match)
270 269 result = orig(text=text, user=user, date=date, match=match,
271 270 force=force, editor=editor, extra=extra)
272 271 return result
273 finally:
274 wlock.release()
275 272
276 273 def push(self, remote, force=False, revs=None, newbranch=False):
277 274 if remote.local():
General Comments 0
You need to be logged in to leave comments. Login now