##// END OF EJS Templates
Allow repo lock to be passed in to localrepo.commit for performance
mason@suse.com -
r1807:f1f43ea2 default
parent child Browse files
Show More
@@ -371,7 +371,7 b' class localrepository(object):'
371 self.dirstate.setparents(n, nullid)
371 self.dirstate.setparents(n, nullid)
372
372
373 def commit(self, files=None, text="", user=None, date=None,
373 def commit(self, files=None, text="", user=None, date=None,
374 match=util.always, force=False, wlock=None):
374 match=util.always, force=False, lock=None, wlock=None):
375 commit = []
375 commit = []
376 remove = []
376 remove = []
377 changed = []
377 changed = []
@@ -409,7 +409,8 b' class localrepository(object):'
409
409
410 if not wlock:
410 if not wlock:
411 wlock = self.wlock()
411 wlock = self.wlock()
412 l = self.lock()
412 if not lock:
413 lock = self.lock()
413 tr = self.transaction()
414 tr = self.transaction()
414
415
415 # check in files
416 # check in files
General Comments 0
You need to be logged in to leave comments. Login now